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 kaywai, Today, 06:26 AM
      1 response
      3 views
      0 likes
      Last Post kaywai
      by kaywai
       
      Started by ct, 05-07-2023, 12:31 PM
      6 responses
      202 views
      0 likes
      Last Post wisconsinpat  
      Started by kevinenergy, 02-17-2023, 12:42 PM
      118 responses
      2,779 views
      1 like
      Last Post kevinenergy  
      Started by briansaul, Today, 05:31 AM
      0 responses
      9 views
      0 likes
      Last Post briansaul  
      Started by traderqz, Yesterday, 12:06 AM
      11 responses
      28 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X