When I enable my strategy on a chart, I do not want it to process historical data. I included "if (State == State.Historical) return;" above OnBarUpdate in the OnStateChange Section.
However, my script still processes historical data. When I load, say 5 days, worth of data it still runs and calculates through all 5 days as if it's running a backtest.
Any ideas as to why it still is processing historical data?

Comment