- Use of time is verified as the problem. I’ have used this for many years, all of a sudden its a statement killer.
- Code is verified correct.
- Simplified Example:
if
((Position.MarketPosition == MarketPosition.Flat)
&& (Times[0][0].TimeOfDay >= GlobalStart.TimeOfDay)
&& (Times[0][0].TimeOfDay <= TimeStop.TimeOfDay)
&& (Long == true)
&& (UseSMACross == true)
&& (Close[0] > SMA1[0]))
{ EnterLong(Convert.ToInt32(Contracts), @“Long”); }
I have noticed a series of glitches in the latest release. Is this one too?
If the time filters above are commented out, entries fire.
And yes to your first question, both time settings date-wise are within the same 12 hour frame, i.e. after Midnight CST & before 5 PM CST