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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      88 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      134 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X