Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 20:04:58 +0000



ACSIL: sc.AddLineUntilFutureIntersection() lines disappear .

View Count: 3465

[2017-02-02 21:35:51]
Zosimus - Posts: 345
I'm using the sc.AddLineUntilFutureIntersection() function to draw horizontal rays from specific points that the study generates based on analysis of the TimeAndSales in real time.
This study doesn't use autolooping (sc.AutoLoop = 0;).
The sc.AddLineUntilFutureIntersection() function works as expected and the lines are drawn until future intersection BUT whenever I make any change to settings of any of the studies that are on the same chart all the lines that were drawn by sc.AddLineUntilFutureIntersection() on this chart disappear. The lines disappear when I click the apply button after making the changes to the settings of any of the studies on this chart.
I use this function in 2 other studies that do use autolooping and no problem there.
Date Time Of Last Edit: 2017-02-02 22:34:50
[2017-02-03 05:57:53]
Sierra Chart Engineering - Posts: 104368
Yes that does make sense. The documentation has been updated to explain this:
sc.AddLineUntilFutureIntersection()

It is expected that a study adds all these lines again when it is fully recalculated.
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-02-03 05:58:31
[2017-02-04 20:15:00]
Zosimus - Posts: 345
Are the properties of the rays generated by the sc.AddLineUntilFutureIntersection() kept when a study is fully recalculated?
The location of those rays in this study is determined by analysis of the TimeAndSales array and therefore cannot be recalculated later (unless I use a 1 tick chart instead of using the the TimeAndSales array directly).
If not then I will get back to my previous solution which is using a Ray Tool that is replaced by a Line Tool on future intersection.
[2017-02-04 22:09:48]
Sierra Chart Engineering - Posts: 104368
No they are not.

We could add a flag to this function to keep the lines until they are deleted, but if we do that, any current user of this function will need to recompile their code on newer versions of Sierra Chart.
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-02-04 22:13:33]
Zosimus - Posts: 345
I have another solution for the time being so adding such a flag is not urgent on my side.

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

Login

Login Page - Create Account