Learn NinjaScript: Historical vs Real-Time (State.Historical, IsFirstTickOfBar)
At the end of Calculate Modes, we looked at an arrow-on-condition indicator that behaved differently depending on whether it was running on historical bars or live ticks. The fix in that post was a draw-cleanup pattern — remove the arrow before each OnBarUpdate pass and let the live condition repaint it. Good enough if you…









