Support Board
Date/Time: Sun, 22 Dec 2024 21:04:35 +0000
Action before study recalculation
View Count: 899
[2015-01-22 19:41:56] |
User53601 - Posts: 105 |
Similarily like an sc.LastCallToFunction is there any posiibility to call a piece of code before the study is recalculated? I want to delete drawings before recalculation. It works fine with sc.LastCallToFunction, when I need to delete drawings before removing the study. Would need similar functionality for the case of recalculation. |
[2015-01-22 21:26:03] |
Sierra Chart Engineering - Posts: 104368 |
You can determine this by looking at sc.UpdateStartIndex. It will be 0 on a recalculation.
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 |
[2015-01-22 22:41:40] |
User53601 - Posts: 105 |
this is what you mean by using sc.UpdateStartIndex? if ( sc.UpdateStartIndex == 0 ) { peace of code executed BEFORE recalculation ? } |
[2015-01-22 23:43:06] |
Sierra Chart Engineering - Posts: 104368 |
Yes. Exactly. This is what we use all the time when necessary to perform certain actions on a recalculation.
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 |
To post a message in this thread, you need to log in with your Sierra Chart account: