Support Board
Date/Time: Sun, 22 Dec 2024 16:54:21 +0000
Detecting Termination in a Study
View Count: 845
[2015-01-29 00:22:11] |
User62215 - Posts: 1 |
Hi, Similar to sc.SetDefaults flag which is true for the first call to a study, is there an equivalent event / flag which gets triggered, before a study is detached from a chart, or shut down of SC? Regards Vivek |
[2015-01-29 01:41:22] |
ejtrader - Posts: 688 |
Vivek - you can try the following. This would cover the case - when the study is removed from the chart. if (sc.LastCallToFunction)
{ // Set of Cleanup activities } Date Time Of Last Edit: 2015-01-29 01:42:19
|
[2015-01-29 18:10:19] |
Sierra Chart Engineering - Posts: 104368 |
There is a way to determine when the study is being removed or Sierra Chart is closing. Use: http://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_Variables_And_Arrays.html#scLastCallToFunction 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: 2015-01-29 18:10:58
|
To post a message in this thread, you need to log in with your Sierra Chart account: