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 tony_28217, Today, 07:04 PM
      0 responses
      3 views
      0 likes
      Last Post tony_28217  
      Started by flybuzz, Today, 10:33 AM
      1 response
      9 views
      0 likes
      Last Post flybuzz
      by flybuzz
       
      Started by spencerp92, 10-10-2023, 09:56 AM
      4 responses
      304 views
      0 likes
      Last Post flybuzz
      by flybuzz
       
      Started by samish18, Yesterday, 10:13 AM
      1 response
      25 views
      0 likes
      Last Post NinjaTrader_Eduardo  
      Started by Austiner87, Today, 05:02 PM
      0 responses
      7 views
      0 likes
      Last Post Austiner87  
      Working...
      X