Login Page - Create Account

Support Board


Date/Time: Thu, 28 Mar 2024 14:36:53 +0000



Post From: Data Latency check

[2013-06-01 16:10:12]
Hendrixon - Posts: 130
I'm trying to use acsil to find if my data has latency in the moment I put in a trade.
Someone posted once that he uses sc.CurrentSystemDateTime and sc.DateTimeOfLastFileRecord to find what is his latency.
I started using it as well, but now thinking about it a bit more I'm not sure what I'm actually getting.

sc.DateTimeOfLastFileRecord
What does this SCDateTime member give exactly?
Is it the DateTime of the physical *.scid when it was last modified, or is it the DateTime "time stamp" of the last tick as it should appear in the chart?
The documentation page doesn't give any info.
From the member name I can only assume its the modified file's DateTime which means its not what we need to calculate latency.

Going thru the documentation again, I found this member: sc.LatestDateTimeForLastBar
From the text:
"The sc.LatestDateTimeForLastBar variable is set to the Date-Time, as a SCDateTime value, of the very latest trade from the data feed that is included in the last bar in the chart. The data feed has a resolution down to the second. Or, it is set to the Date-Time of the very latest data file record read into the chart, whichever is greater."[/u]

Does "very latest trade from the data feed" means the Time Stamp of the latest Tick???
This means that sc.LatestDateTimeForLastBar will always be bigger than (or equal to) sc.DateTimeOfLastFileRecord, right?
Bottom line (real latency = sc.CurrentSystemDateTime - sc.LatestDateTimeForLastBar)?


Thanks.
Date Time Of Last Edit: 2013-06-01 16:13:26