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 athexinehowley, Today, 02:39 AM
      0 responses
      8 views
      0 likes
      Last Post athexinehowley  
      Started by dtaylor, Today, 02:24 AM
      0 responses
      7 views
      0 likes
      Last Post dtaylor
      by dtaylor
       
      Started by RosaRichardow, Today, 12:21 AM
      1 response
      7 views
      0 likes
      Last Post marcus2300  
      Started by ETFVoyageur, Today, 12:45 AM
      1 response
      11 views
      0 likes
      Last Post ETFVoyageur  
      Started by TradeSaber, Yesterday, 10:33 PM
      1 response
      13 views
      0 likes
      Last Post TradeSaber  
      Working...
      X