Let's say you add two data series, a 1 minute and a 5 minute. On bar close, you only run logic if BarsInProgress == 1. One of these logics involves BarsArray[2].GetClose(CurrentBars[2])
In historical data, the 5 minute bar close has already been determined (seeing into the future).
In real time data, the 5 minute bar close is updated for every minute bar as they happen.
The workaround is very simple, only use your fine-grained current bar close for the most recent data. I'm posting this to spark discussion and make sure y'all don't fall for this too.

Comment