Support Board
Date/Time: Mon, 03 Feb 2025 17:05:54 +0000
Post From: ACSIL Delay processing until all data is downloaded?
[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? |