I have indicators on the chart that number the bars, starting at 0 when the session starts. Makes perfect sense.
But my Ninjascript output is showing bar numbers that are much different. Bar 81 on the chart is referred to as Bar 576 in the output. Both the strategy and the chart are set to the same tick value. I set the strategy to load only 1 day of data but nothing seems to match up.
It seems that the strategy starts counting bars based on the 'days to load' setting in the strategy properties. But this is minimum of 1.
If I load market replay data for 25th June ---> 26th June, move the playhead to the right to the end. Enable the strategy, the bar count is synced up. But as soon as I moved the playhead and start playing it gets messed up again.
Am I missing something simple? Is there a trick to getting the bar numbers to match.

Comment