I have converted my strategy NT7 to NT8, I do not get enough depth of time.
The strategy triggers orders at a certain time, but in NT8 it does not use the seconds
NT7
#region Variables // Wizard generated variables private int timeToEntry = 123050; protected override void OnBarUpdate() if(ToTime(Time[0]) >= timeToEntry
NT8
protected override void OnStateChange() { if (State == State.SetDefaults) { Hours = 12; Minutes = 30; Seconds = 50; protected override void OnBarUpdate() { if (BarsInProgress != 0) return; if(CurrentBar < 20) return; if ((Times[0][0].TimeOfDay >= new TimeSpan (Hours, Minutes, Seconds))
(or Tick and CalculateOnBarClose = false; )
The information in https://ninjatrader.com/support/helpGuides/nt8/
it is not concrete with respect to the subject
the rest of the strategy works the same as in NT7
thank you very much NT team
Comment