Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 23:12:34 +0000



Post From: Time and Sales question

[2017-06-06 18:20:34]
User103949 - Posts: 78
Let me describe my procedure in more details. I agree that chart update interval does not matter.

First of all i noticed that only ticks missing are within one second.

I used a SCDateTimeMS to keep track of the latest tick from last call of time and sales. The reason is because according to document from SC.

"It is identical to and supports the same member functions as SCDateTime Variables, The difference is that all comparisons to this type of variable are done to the millisecond rather than to the second."

Let me use an example to explain what happened in my code. Assume the latest tick from my last call to time and sales is

19:20:30.1 1229

Then I will use a SCDateTimeMS variable to record 19:20:30.1.

And after next call to times and sales return the following 5 ticks,

19:20:30.0 1231
19:20:30.1 1230
19:20:30.2 1232
19:20:30.3 1231
19:20:31 1232

In my code, i will compared the timestamps to the last record 19:20:30.1 and keep the ticks after that , in this case i should capture three ticks

19:20:30.2 1232
19:20:30.3 1231
19:20:31 1232

However in my code i only caught the one tick 19:20:31 1232.

So my question is, are those ticks within one second even with different miliseconds are stored with same time stamp internally?