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 rocketman7, Today, 09:41 AM
      0 responses
      1 view
      0 likes
      Last Post rocketman7  
      Started by rocketman7, Today, 02:12 AM
      7 responses
      31 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by guillembm, Yesterday, 11:25 AM
      3 responses
      16 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by junkone, 04-21-2024, 07:17 AM
      10 responses
      149 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by tsantospinto, 04-12-2024, 07:04 PM
      6 responses
      101 views
      0 likes
      Last Post tsantospinto  
      Working...
      X