protected override void OnBarUpdate()
{
if (Position.MarketPosition == MarketPosition.Flat)
{
EnterLong(Convert.ToInt32(DefaultQuantity), Convert.ToString(CurrentBar) + " Long");
}
}
I am new to ninjatrader and I have been trying for hours trying different settings but cannot get EnterLong to work as expected. I would expect it to enter a long position on the first bar update after hitting paly. However it wont enter a position until a full day later on 4/16/24 of running the playback. What am I not understanding about this? How can I get it to enter a long position right when I hit play on the first bar update?
Thanks

Comment