my strategy/indicator has COBC = false and additional daily series via Add(PeriodType.Day, 1).
How can you handle problem that indicator returns yesterday's close via Closes[1][0] for back-testing on historical data. But for live running I must use Closes[1][1] for yesterday's close.
It means with Closes[1][1] are all my back-tested results 1 day delayed. And vice versa with Closes[1][0] a get today's close instead of yesterday's on real-time data
Thanks for advice
Peter
Comment