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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      62 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      134 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      75 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      50 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X