Login Page - Create Account

Support Board


Date/Time: Sun, 29 Dec 2024 00:15:57 +0000



Post From: sc.OpenChartOrGetChartReference

[2016-04-24 01:16:01]
Sierra Chart Engineering - Posts: 104368
We tested opening 100 charts during a single study function call and there were no exceptions and no problems. It all worked perfectly.

Here is the test function. Test it on your side.

There must be some other reason for the problem. It is not merely related to using sc.OpenChartOrGetChartReference.


SCSFExport scsf_OpenLargeNumberCharts(SCStudyInterfaceRef sc)
{

  if (sc.SetDefaults)
  {
    sc.GraphName = "Test: Open Large Number of Charts";

    sc.AutoLoop = 0;
    return;

  }

  for (int ChartIndex = 0 ; ChartIndex < 100; ChartIndex ++)
  {
    s_ACSOpenChartParameters OpenChartParameters;
    OpenChartParameters.ChartDataType = INTRADAY_DATA; //This can also be set to: DAILY_DATA

    OpenChartParameters.Symbol = sc.Symbol;

    OpenChartParameters.IntradayBarPeriodType = IBPT_DAYS_MINS_SECS;
    OpenChartParameters.IntradayBarPeriodLength = 1 + ChartIndex;

    OpenChartParameters.DaysToLoad = 5;

    OpenChartParameters.PriorChartNumber = 0;


    sc.OpenChartOrGetChartReference(OpenChartParameters);
  }

}

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: 2016-04-24 01:32:04