I'm trying to develop a simple test strategy to get a grasp on how Strategies work within NinjaTrader.
This is the relevant part of the code:
protected override void OnBarUpdate()
{
if (State == State.Realtime) {
Print("Before: " + Position.ToString());
EnterLong(this.orderSize);
this.orderSize++;
Print("After: " + Position.ToString());
}
}
What am I missing?
Thank you.

Comment