I am backtesting a strategy with a secondary Time-frame, and indicator values in historical data are shifted 1 minute compared to RealTime data or historical data with TickReplay ON.
I am using 1 range (primary timeframe) to backtest CL 05-19.
My secondary timeframe is:
AddKagi("CL 05-19", BarsPeriodType.Minute, 1, 3, ReversalType.Tick, MarketDataType.Last);
1. Is there a reason why printed values of any indicator are shifted 1 minute from historical to realtime? (This only happened to me with Kagi so far, Minutes timeframe are OK)
2. I think there is a mistake in the following syntax: AddKagi(stringinstrumentName,Data.BarsPeriodTypebaseBarsPeriodType,intbaseBarsPeriodTypeValue,intreversal,Data.ReversalTypereversalType,Data.MarketDataTypemarketDataType)
should be:
AddKagi(stringinstrumentName,Data.BarsPeriodTypebaseBarsPeriodType,int reversal, int baseBarsPeriodTypeValue,Data.ReversalTypereversalType,Data.MarketDataTypemarketDataType)
Can someone please help?
Comment