Hi,
I wonder if anyone could help me out with this one...
I trying to obtain the real-time time & sales data for a symbol, but also the historic data in the event that the application is started in the middle of the session.
The problem I have is this....
Let say that the historic "GetNumTimeSalesBars" returns 100.
I believe this means that I need to request bars -99 to 0.
Ok...I set up a loop to to fetch bars -99 to 0 using "GetTimeSalesBar"
Ok so far...
As this is a real time session, the "OnTimeSalesChanged" event fires off in the middle of my loop and "GetNumTimeSalesRtBars" returns 10 real time bars.
The "GetTimeSalesBar" index is now -110 to 0, having shifted all records to the left to include the new reale time bars
However my "-99 to 0" loop is somewhere in the middle retrieving records which have now shifted, creating gap and duplications...???
As all new real time bars are dynamically added to the end, the process of retrieving historic record during a live session appears to be a moving target.
There appears to be no way to turn-off dynamic updating, as is available in the eSinal application window.
Any help would be appreciated.
Rene'.
I wonder if anyone could help me out with this one...
I trying to obtain the real-time time & sales data for a symbol, but also the historic data in the event that the application is started in the middle of the session.
The problem I have is this....
Let say that the historic "GetNumTimeSalesBars" returns 100.
I believe this means that I need to request bars -99 to 0.
Ok...I set up a loop to to fetch bars -99 to 0 using "GetTimeSalesBar"
Ok so far...
As this is a real time session, the "OnTimeSalesChanged" event fires off in the middle of my loop and "GetNumTimeSalesRtBars" returns 10 real time bars.
The "GetTimeSalesBar" index is now -110 to 0, having shifted all records to the left to include the new reale time bars
However my "-99 to 0" loop is somewhere in the middle retrieving records which have now shifted, creating gap and duplications...???
As all new real time bars are dynamically added to the end, the process of retrieving historic record during a live session appears to be a moving target.
There appears to be no way to turn-off dynamic updating, as is available in the eSinal application window.
Any help would be appreciated.
Rene'.
Comment