I have been testing using Playback Connection, DataSet has tick replay enabled.
When I select an instrument and the Start Date in the Playback controller, it starts the day at midnight, and the first bar has CurrentBar index value of 0.
Example: This occurs for Mar 14, 2023, and I do have market replay data downloaded for Mar 13, 2023, but that historical data is not displayed on the chart.
I am asking when I would be using a live connection to real time market data, and I open a chart and data connection on Sunday evening market open time, i.e. 6 pm new york time, would the chart populate with historical data from the previous trading day (Friday) , note: Data Series, Time Frame, Load data based on Days, 3
? - Is the first bar starting Sunday going to have a CurrentBar value of 0, or will it use all the historical bars in the Data Series, and have a CurrentBar value greater than 0 ?
? - If I have a SMA indicator using a 14 bar lookback, on the first bar from the Sunday open, will that SMA use the 13 barsAgo from Friday's historical data, or do I need to wait until 14 bars have been created starting from Sunday's open time?
I have only 1 BarsArray.
I think I understand that I could use Bars.BarsSinceNewTradingDay to get the count of the quantity of bars from the start of the current session.
Sorry if this is a dumb question, I'm feeling dopey this morning...


Comment