Will OnBarsReceived be fired and will IsHistoryReady return true ONLY when every single history bar requested has been received? Or, can OnBarsReceived fire and IsHistoryReady return true even if just part of the history has been retrieved so far (while the rest is still on its way from the server)?
The reason I ask is because it will be easier to port my app if I can get some sort of fixed "first bar in time" index, which I can't do if there is a chance that eSignal will insert a few more bars at the front (i.e. before the first (i.e. oldest) historical bar). Having the most recent bars index as always zero causes a few issues I need to work around in the port. In the main eSignal app you can sometimes watch as the history fills in when first loading a symbol. I need a way to know that the history is complete and that there will be no more history coming.
Alternately, possibly adding equivalent functions to the history bars as those that exist for the time and sales data could be helpful. Specifically the GetNumTimeSalesBars and GetNumTimeSalesRtBars. At least with those, I can tell for myself if the number of bars has grown because of new realtime data, or if it is just because more backfill data has arrived.
The reason I ask is because it will be easier to port my app if I can get some sort of fixed "first bar in time" index, which I can't do if there is a chance that eSignal will insert a few more bars at the front (i.e. before the first (i.e. oldest) historical bar). Having the most recent bars index as always zero causes a few issues I need to work around in the port. In the main eSignal app you can sometimes watch as the history fills in when first loading a symbol. I need a way to know that the history is complete and that there will be no more history coming.
Alternately, possibly adding equivalent functions to the history bars as those that exist for the time and sales data could be helpful. Specifically the GetNumTimeSalesBars and GetNumTimeSalesRtBars. At least with those, I can tell for myself if the number of bars has grown because of new realtime data, or if it is just because more backfill data has arrived.
Comment