Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Orders erroneously closed on holidays even if ExitOnClose = false

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

    Orders erroneously closed on holidays even if ExitOnClose = false

    I have a multi-instrument strategy that should hold positions for multiple days. But in the strategy analyzer, they get closed at session close of holidays. So far I've tried doing all of the following with no luck:

    1. set ExitOnClose = false
    2. set the main instrument "trading hours" to 24/7
    3. on the Strategy Analyzer set "trading hours" to 24/7

    The above allows orders to be held for multiple days EXCEPT holidays. Holidays always close out the trade. For instance, my ES order closes automatically at 1:15 PM EST 11/24/2017.

    Is this a bug, or is there something I can do to prevent it?

    #2
    Fixed it. Had to close the strategy analyzer and reopen after compiling with ExitOnClose = false. Now works perfect.

    Comment


      #3
      Hello MM345,

      Thank you for the update.

      Typically if you switch the strategy from 1 to another, you can get around reopening the Strategy Analyzer to reflect the change.

      Please let us know if you need further assistance.
      Alan P.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 03-25-2026, 09:53 PM
      0 responses
      9 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 03-25-2026, 09:51 PM
      0 responses
      7 views
      0 likes
      Last Post CaptainJack  
      Started by sjsj2732, 03-23-2026, 04:31 AM
      0 responses
      155 views
      0 likes
      Last Post sjsj2732  
      Started by NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      357 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      393 views
      0 likes
      Last Post argusthome  
      Working...
      X