Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 02:25:11 +0000



Post From: sc.OpenChartOrGetChartReference - unexpected weekly and quarterly charts spawned

[2014-07-11 10:14:16]
T44 - Posts: 363
I have a custom study with the following code, which has been worked as expected since Sierra 110x.


int& ChartNumber = sc.PersistVars->i1;
s_ACSOpenChartParameters OpenChartParameters;
OpenChartParameters.PriorChartNumber = ChartNumber;
OpenChartParameters.ChartDataType = DAILY_DATA;
OpenChartParameters.Symbol = p_Symbol;
OpenChartParameters.DaysToLoad = 4380;

ChartNumber = sc.OpenChartOrGetChartReference(OpenChartParameters);

Sierra Chart is 1158. I have made no changes to my chartbook, however on loading the following additional charts are spawned:
RJU14 Quarterly (x2)
GCQ14 Quarterly
NGQ14 Monthly
ESU14 Monthly
CLQ14 Monthly

Closing these charts does not result in them being automatically re-opened, as would usually be the case if they were being called by sc.OpenChartOrGetChartReference.

There are already daily charts with 4380 days to load in this chartbook for the above symbols, so why are new weekly and quarterly charts being created, and why the duplicate entries? This is truly odd.