Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 00:48:13 +0000



ACSIL Delay processing until all data is downloaded?

View Count: 742

[2019-11-12 12:37:39]
TechTangle - Posts: 1
I'm in the process of porting my code to Sierra Chart. This is generally going very well and my studies are functional, it has been a pleasure to work directly in C++ without
crossing proprietary language boundaries.

My studies require the instantiation (and termination) of custom networking classes which I would like to finesse to ensure this happens only once and at the correct time.

I have encountered an issue that when a Chart Book is opened and the charts are downloading data history then my study is processing on a partial data history.

I'm using manual looping and would like to delay the processing of the chart data until the history has been brought fully up-to-date with whatever data is available to be
downloaded for a given symbol.

I have tried this, but it doesn't seem to be the answer:

// Do data processing .....

  // sc.ChartIsDownloadingHistoricalData()
// The sc.ChartIsDownloadingHistoricalData() function returns TRUE(1) if the chart the study instance is on,
  // is downloading historical data.This function returns FALSE(0) if historical data is not being downloaded.
  int wait4Data = sc.ChartIsDownloadingHistoricalData(sc.ChartNumber);

  // Wait until any download activity is complete
  if (wait4Data == 0)
  {
... do stuff

}

Is there an approach to accomplish the aim?
[2019-11-21 14:32:24]
Sierra Chart Engineering - Posts: 104368
We apologize for the delay here. We do have a very heavy support load and these types of requests do take time. Why is this not going to work for you?:
sc.ChartIsDownloadingHistoricalData

This is the exact function you would want to use. The study function should be called when the historical data download completes.

There is also this flag you can check:
sc.DownloadingHistoricalData
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: 2019-11-21 14:34:52

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account