Hi Valeria,
I use the public method TradeDeskEventsSink.OnRowChangedEx to get the events of the table "offers", with the ActiveX control accordingly, which has been installed with the batch file
RunOrder2Go.bat .
When a tick comes, it is counted inside a counter, simple !!!
In my programm, I realize a personnal Time Frame, based solely on the value returned by
the interface ParserAut>>GetValue("Time"), with the two other values for Bid and Ask.
My personnal TF is not fixed on the system clock, but on the value returned by a tick
i.e. : the first tick comes at the moment of the launch of the procedure, its "time" is in this format (sent by the price server) : 41667.20084491 = 2014/01/28 @ 04h49h13 (the current UTC time when I write this post), my programm calculates, in function of the TF requested, its membership.
If the time of the tick is well for the TF, it is collected, and the counter is updated. That's all !
If the time of the tick is over the end of the TF, it will be the first tick of the new TF period, and so on.
NB : at 04h56 UTC, my programm has received 40 ticks, Marketscope says 49 for the TF m1
at 04h57 my programm has received 49 ticks, Marketscope says 37 for the TF m1
at 04h58 my programm has received 35 ticks, Marketscope says 23 for the TF m1
etc...
Bst Rgds,
leTigre30
see the two attached files (TF 1 min, and the received ticks):
- Table for m1 TF