If I use this code it runs every bar.
protected override void OnBarUpdate() { if (CurrentBar % 10 == 0) ; { if (State == State.Realtime) { Print("THIS IS PRINTING UNDER ON BAR UPDATE..."); } } }
If I use this code after 'else if (State == State.Configured)...
else if (State == State.Realtime) { if(CurrentBar % 10 == 0) { Print("THIS IS PRINTING UNDER STATE.REALTIME."); } }
What am I missing?
Comment