I am using the latest NinjaTrader update. I am running some code and was getting some funny results I was not used to. The ranges where not showing up as they should on my chart while using market replay. I reloaded the ninjascrip and everything appeared as it should and the output looked correct, but as it continues to run, the ranges where not printing correctly or at all. I put in some print lines to try and debug and found that while the market replay is running and I print High[0], the output is showing me Close[0]. If I pause the replay and reload the strategy, the print shows the correct close and high. I am not sure what is going on here?
Your code could be running on Calculate.OnEachTick (or OnPriceChange) and interpreting the forming bar as if it were a finished bar.
Could be tick replay (I don’t know if you running that), probably my first point.