Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 02:25:51 +0000



Hide Retracement Levels for a Price Retracement Drawing using ACSIL

View Count: 1825

[2017-10-25 18:38:09]
kas64h - Posts: 87
Hello,

Please can you tell me how to hide specific Retracement Levels in a Price Retracement Drawing, using ACSIL.
I.E Effectively Check/Uncheck the 'Show' column field for a specific Retracement Level in the Levels Tab of Retracement Properties (as seen in the front end), but using ACSIL.

I can see the LevelColor[], LevelWidth[] and LevelStyle[] s_UseTool Members for controlling Retracement Level Color, Width and Style column fields respectively, but no equivalent for the Show column fields.

Many Thanks
[2017-10-25 19:01:41]
Sierra Chart Engineering - Posts: 104368
We will update the documentation on this. You need to use a value of FLT_MAX for the level to not show it.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2017-11-07 11:31:49
[2017-10-25 20:39:55]
kas64h - Posts: 87
Thank You for your reply.

As you say, using a value of FLT_MAX causes the specific level (and all subsequent levels), to disappear from both the Chart and the Retracement Properties list.

What I was really after was for the level (and all subsequent levels) to still be visible in the Retracement Properties list, but with the specific level's 'Show' field unchecked. Then, the specific level would be gone from the Chart, but all other levels would still be in place on the Chart.

In other words, the same behaviour as if the operation was performed by the user through the front end.

For now at least I'll assume this isn't possible through ACSIL, unless I hear otherwise.

Thank you for your help.
[2017-10-26 02:03:21]
Sierra Chart Engineering - Posts: 104368
No, it is not possible but we will see if we can add this.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2017-10-29 14:47:03]
kas64h - Posts: 87
That would be great if you could add this.
Thanks for your response.
[2017-11-07 11:30:34]
Sierra Chart Engineering - Posts: 104368
We were mistaken about this.


Using a value of FLT_MAX for a particular retracement level only causes that particular level to not be shown.

This has been verified and confirmed to work in the current version.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2017-11-07 11:30:57
[2017-11-07 13:30:48]
kas64h - Posts: 87
Thank you for your reply.

Originally I don't think you were mistaken about this. I can see you've since edited your first post, but as I made reference in my initial response, I tested it too, and setting a retracement level to FLT_MAX did indeed hide it and all subsequent levels from both the chart and the Retracement Properties window.

In the latest release (1635), I can see this behaviour has now changed and is now as you've described in your latest post. I'm assuming it has something to do with the introduction of the LevelShow[] member (which I could see in one of the Sierra Header files), and which has subsequently been backed out (there was an indirect reference to it in the 1635 release notes).

Either way, having now tested it again, I can see setting a particular retracement level to FLT_MAX does indeed hide it from the chart and importantly unchecks the 'Show' field in the Retracement Properties window (rather than completely removing the level from the properties as was previously the case).

This is a vast improvement and as you rightly point out only affects the specific Retracement level and leaves all subsequent levels intact.

Having now tested the current behaviour, two further questions remain:

1) How do I test in code that a specific Retracement level is shown or hidden?

So for example if I loop through a Tool's Retracemnt levels using:

for (float& Retracement : Tool.RetracementLevels)

I can then set:

Retracement = FLT_MAX;

and it will be hidden on the chart and it's show field will be unchecked in the Retracement Properties window.

Perfect so far, but if I subsequently perform the loop iteration, what member property tells me if a specific retracement level is shown or hidden?

The Retracement level is still present in the Tool.RetracementLevels array, which is exactly as it should be, but as far as I can tell, having set its value to FLT_MAX to hide it, I have no way of reading that value later in code to ascertain if it's shown or hidden.

I'm assuming that's why the LevelShow[] member was originally introduced, but I'm guessing it caused problems and was therefore removed.

2) In code, how do I hide (or subsequently show), the Retracement baseline (by which I mean the line connecting the Tool Anchors). In the front end (Retracement Properties window), it's done by checking/unchecking the Show field for the very top level, which is denoted as a Level % of 'Tool'. I can't see how to do this in ACSIL?

Many thanks for the improvements made so far and any further assistance is much appreciated.
[2017-11-08 05:02:42]
Sierra Chart Engineering - Posts: 104368
1.

Perfect so far, but if I subsequently perform the loop iteration, what member property tells me if a specific retracement level is shown or hidden?
There really is no way to determine this. This will have to be looked into later on.


2. This is just not supported through ACSIL.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2017-11-08 05:03:01

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account