Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 10:49:57 +0000



[User Discussion] - ACSIL - detect Triggering next historical data download in queue message

View Count: 789

[2020-05-01 00:19:43]
ejtrader - Posts: 688
SC Team - I am trying to capture some data and there are occasional messages like this in the event log - which is causing few issues for my data capture process.

- I am using Denali datafeed - only single instance - 4 instruments data being captured
- Under what circumstances the normal flow of data gets interrupted/triggered?
- Is there any way to capture such events in ACSIL code - (this would allow me to take care of necessary fixes in code as needed).

PS: Please don't mark this as Programming help or user discussion because this is very important for me to capture this.

Thanks

Triggering next historical data download in queue. | 2020-04-30 19:13:58.890
Socket (4) | Socket gracefully closed by remote side. | 2020-04-30 19:13:58.963
Socket (4) | Closed. | 2020-04-30 19:13:58.963
Opened cached Intraday file: T:\SierraChart\Data\NQM20.scid. Thread ID: 36748 | 2020-04-30 19:14:00.663
Opened cached Intraday file: T:\SierraChart\Data\ESM20.scid. Thread ID: 36748 | 2020-04-30 19:14:00.663
Opened cached Intraday file: T:\SierraChart\Data\YMM20.scid. Thread ID: 37424 | 2020-04-30 19:14:00.820
Opened cached Intraday file: T:\SierraChart\Data\MESM20.scid. Thread ID: 36748 | 2020-04-30 19:14:05.666

Date Time Of Last Edit: 2020-05-01 00:25:48
attachmentSCEventlog.txt - Attached On 2020-05-01 00:24:28 UTC - Size: 16.94 KB - 188 views
[2020-05-01 12:42:18]
ejtrader - Posts: 688
When such event happens - there is typically a pop-up message "System Notification Message" about the open tickets etc comes up. Not sure whether these 2 are related or not but it causes some kind of disruption to the T&S data processing through ACSIL. This issue could be related to my internet (which is unlikely the problem). All this is OK - but only looking for some kind of a function to detect such events in ACSIL so that I can put the logic to take care of the processing requirements.

Thanks
[2020-05-01 13:15:55]
ejtrader - Posts: 688
At present - I use this function - when the study is first initialized to take care of download case.

sc.DownloadingHistoricalData

But while the study is running - I don't look for this condition again due to performance consideration. It appears like some event would trigger this downloading of data. Should I have look for this event with each call?

Thanks
[2020-05-03 08:00:36]
Sierra Chart Engineering - Posts: 104368
It sounds like you want to know what is triggering the historical data downloads. This is explained here in relation to Intraday data:
Historical Intraday Data (Missing Data / Download Errors / Viewing More Data): Retrying Downloading of Intraday Data

We also see this in the Message Log which does cause a reconnection to the data feed under certain conditions but this is not a common occurrence:

Sierra Chart account data changed. Requesting updated account information. | 2020-04-30 19:13:47.761



Have a look at these variables and functions:
ACSIL Interface Members - Variables and Arrays: sc.ServerConnectionState

sc.IsChartDataLoadingCompleteForAllCharts()

sc.ChartIsDownloadingHistoricalData()

You really do have to check for the downloading of historical data every time the study function is called if you need to be aware of that.
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: 2020-05-03 08:14:31
[2020-05-03 14:49:33]
ejtrader - Posts: 688
SC Team - Thanks for the reply. Updated the code to make a check about the condition for sc.DownloadingHistoricalData. Would know the result in a day or two if this gives the consistent data expected.

Follow-up Question:

Assuming you ALWAYS append the data to scid file except when "delete and download data" is used. Under NO circumstances other than the event "delete and download data" (Either in the main instance or in subinstance)- you would NEVER overwrite any previously written data in scid files (disconnect/reconnect or any other event other than delete and download data). Would you please confirm.

Thanks
Date Time Of Last Edit: 2020-05-19 21:04:28
[2020-05-06 20:27:16]
ejtrader - Posts: 688
SC Team - Would you please confirm or deny the above in post#5?

Thanks
[2020-05-19 20:13:16]
ejtrader - Posts: 688
SC Team - Could you please confirm - if there is any possibility for you to "overwrite" the previously(already) written data in SCID file other than the circumstance - where "delete and download data" option is used. I am running a study in main instance (which depends mainly on T&S data and on few occasions SCID data) and the sub-instance to collect the tick data. In sub-instance the study is off by couple of trades which I wouldn't expect them to be. Trying to understand potential reason for this. All I need is confirmation of the above statement from post #5.

Thanks

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

Login

Login Page - Create Account