On this post http://ninjatrader.com/support/forum...ead.php?t=3226 I found an explanation (and sample code) describing how to incorporate a time filter into the trading strategy.
If I wanted to restrict trading between say 8am and 11pm, would the line of code below do the trick? (I have assumed a 24 hour clock is used but I could be wrong).
(ToTime(Time[0]) >= 80000 && ToTime(Time[0] <= 230000)
What time zone does the code actually check against? Does it automatically default to the local time of the machine?
Any help/advice much appreciated.
Comment