Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

restarting a strategy would cancel all open orders created by the same strategy

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

    restarting a strategy would cancel all open orders created by the same strategy

    I noticed that restarting a strategy (by clicking F5 or checking Enable/Disable button) would cancel all open orders previously entered by the same strategy. Is this kind of behavior normal and designed intentionally? Is it possible to disable it? Cancelling those orders may leave the open position unprotected unless the position is flattened at the same time.

    #2
    clearpicks, this would depend on what items are checked under Tools > Options > Strategies > NinjaScript > Order Handling

    If you uncheck to cancel exit orders on disable you should be good.

    Comment


      #3
      Bertrand,

      Your solution only prevents orders from being cancelled when a strategy is disabled or removed from chart. However next time when I enable it (by checking the "Enable" button in strategy window or simply press "F5" key to reload it, all open orders would be cancelled, which is not the behavior I expected. Do I miss something?

      Comment


        #4
        Clearpicks,

        Are you using Wait until flat or Immediately submit live historical orders for your Strategy Settings from the same Options menu as Bertrand pointed out?
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by clearpicks View Post
          Bertrand,

          Your solution only prevents orders from being cancelled when a strategy is disabled or removed from chart. However next time when I enable it (by checking the "Enable" button in strategy window or simply press "F5" key to reload it, all open orders would be cancelled, which is not the behavior I expected. Do I miss something?
          Try using these settings.
          Attached Files

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          633 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          364 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          567 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          568 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X