Login Page - Create Account

Support Board


Date/Time: Sat, 05 Jul 2025 11:58:56 +0000



Post From: Issues with charts opened with sc.OpenChartOrGetChartReference()

[2020-12-30 08:14:27]
BrMa - Posts: 80
Dear support,

I found out I need to specify my latest post a little bit more in detail to be more precise.
The chart is marked for recalculation, if the study creating the hidden daily chart is added to a chart
1) for the first time or
2) the hidden chart is NOT saved to the chart book and the chartbook is reopened or
3) the hidden chart was removed from the chart book manually and the chartbook is saved, closed and reopened

In all cases described the hidden chart marks the "calling" chart for recalculation. If the "hidden" chart was saved already, none of the charts is being marked for recalculation.

However - all of this brings up another question that comes up with the chart created by sc.OpenChartOrGetChartReference(): if a futures contract is rolled over, a new daily chart is created by the function based on the latest future but leaving the previous daily chart with its own window unused (of course - it's saved in the chartbook...). This also increases the number of windows over time unnecessarily. I would be willing to close them programmatically and of course I know about sc.CloseChart() but I could not find a way determining the charts in the chartbook programmatically, meeting the "outdated" data... do I miss anything here? If yes, I would be very thankful for a hint...

Thank you!