Support Board
Date/Time: Sun, 08 Sep 2024 00:15:32 +0000
Post From: Add callback registration on custom study removed event
[2023-10-17 16:17:58] |
j4ytr4der_ - Posts: 933 |
I wanted to do the same thing when my study is removed, but using the documented function doesn't work for me: if (sc.LastCallToFunction) { // This study is being removed from the chart or the chart is being closed // Insert cleanup code here if(sc.LoadChartDataByDateRange == 1) sc.LoadChartDataByDateRange = 0; MessageLogString.Format("Study removed"); sc.AddMessageToLog(MessageLogString, 0); } When the study is removed, if the chart is set to Use Date Range, I want to change it to Use # of days. Seems like this should be quite simple but, it doesn't do anything. No change in settings, and no MessageLog output. What am I missing? Thanks. Date Time Of Last Edit: 2023-10-17 16:18:25
|