Thank you for your response.
The code would use FirstTickOfBar and a bool to check the next bar. You can find an example below, and information on FirstTickOfBar at the following link: http://www.ninjatrader.com/support/h...ttickofbar.htm
#region Variables private bool checkNBar = false; #endregion protected override void Initialize() { } protected override void OnBarUpdate() { if (Range()[0] > 0.15); { checkNBar = true; } if(checkNBar && FirstTickOfBar) { EnterLong("Long open"); checkNBar = false; } }
Leave a comment: