I'm interested in problem of last price in live and backtest when CalculateOnBarClose=false.
If I test strategy in strategy analyzer and call eg Close[0] - it return price of last closed bar - not current one (open but not closed yet) - in live trading it return last price ?
How should I write index of price in order to correctly check condition on closed bar in backtest and in live trade also ? if I use Close[1] in backtest it return price of 2 bars ago, when in live one bar ago ?
Please help me understand this problem.
Andrew

Comment