OnBarUpdate is called for my primary 1 minute dataseries.
During a backtest, when I request the Momentum(Closes[1], 14)[0] in OnBarUpdate, let's say at Tuesday, 26. Nov 15:52, the value for which week will I actually receive ? The value for the current week ? But this should not be available because the week that includes Tuesday, 26 is not yet finished ?
From my print logs it seems however that I receive exactly this value, which would distort the backtest's results, as it would take advantage of a future prediction.
Evil trap ?
Comment