Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy: hours to avoid

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Strategy: hours to avoid

    Is there a way to disable the strategy during certain times of the day? For example, market ends at 4pm, would like to stop the strategy at 3.45pm.
    If it trades futures the whole day, to avoid he opening too from 9.15-9.30am

    #2
    Hello twelvester,
    Yes, you can do this by specifying a condition Times[0][0].TimeOfDay != new TimeSpan(hh, mm, ss), hope it helps!

    Comment


      #3
      Hello twelvester,

      Thanks for your post.

      Yes, it is possible to disable the strategy however you would then have to manually re-enable it.

      What we suggest here is not to disable your strategy but instead control when it places orders as well as when it exits all positions and this can be done through the use of the time functions.

      Here is a link to an example strategy of using a time filter to limit trading hours: https://ninjatrader.com/support/help...to_limit_t.htm

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      30 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      47 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X