Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stop Start Strategy Cancels Orders & Closes Positions

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

    Stop Start Strategy Cancels Orders & Closes Positions

    Hi

    I am having a real problem with restarting strategies.

    The strategy submits orders using Managed order handling with a stop and a target.

    If I stop the strategy,

    un-triggered orders are canceled, any positions with there stop and target orders are left running. So far I am happy with what happens.

    However my problems come in if I restart the strategy.

    If restart the same strategy without changing anything it will go and close out my open position and cancel stop and target orders. I most definitely dont want this to happen, how do I stop this, i have been told that this is how things are designed, surly there must be a way to override this.

    It has been suggested that what I could do would be to delete the strategy entry from the strategy tab in Control Center and create a new one. This really breaks things, what happens is that the position is closed but the working stop and target orders are left open, so if one of them is now hit you are left with a position you never intended to have and no stop for protection.

    Surly this is not intended behavior?

    All I want to do is if a position with stop and target exists is to leave it alone.

    Thanks

    Mike

    #2
    Hello,

    Did you have another thread open on this? Can you please link to the other thead you opened on this so I can review what has been discussed. As I believe we have already covered on this already.

    Heres the breakdown once again however.


    If, your strategy when you re-enable it. Has the same position and stops as it had when it was last run and submitted the PT and Stop loss. Then the PT and SL would be left alone, or if your SL has been moved up the stop loss would move up by the strategy.

    However, since your strategy is re-enabled at the strategy position no longer has PT and SL submitted because it is flat. The SL and PT will cancel this is expected and explicit design.

    This is internal NT syncing that must occur and cannot be disabled.

    The only idea i have for you is that this resync only occurs on re-enable. Therefor a workaround might be to always delete the strategy and then re-add the strategy. Instead of disable/reenable.
    BrettNinjaTrader Product Management

    Comment


      #3
      Originally posted by upshon View Post
      It has been suggested that what I could do would be to delete the strategy entry from the strategy tab in Control Center and create a new one. This really breaks things, what happens is that the position is closed but the working stop and target orders are left open, so if one of them is now hit you are left with a position you never intended to have and no stop for protection.

      Surly this is not intended behavior?

      All I want to do is if a position with stop and target exists is to leave it alone.
      Hi Brett

      Please see quoted section from my initial post.

      Is there someone I can call to discuss,

      Thanks

      Mike

      Comment


        #4
        Hello,

        We have no phone number for support however I can call out if need be as I have done for you in the past.

        This functionality is here:

        Control Center->Tools->Options->Strategies tab->NinjaScript Tab.

        Please see the order handling section to customize this how you need it to work when deleting the strategy.

        Let me know if I can be of further assistance.
        BrettNinjaTrader Product Management

        Comment


          #5
          Hello,

          Please remove this post as you dont want your phone number posted on the forum. Send me an email to support at ninjatrader dot com and reference this forum post and we will setup a time for me to call you tomarrow would be my next availiable time.
          BrettNinjaTrader Product Management

          Comment


            #6
            Hi Brett

            I Have finally gotten my head around how and why Ninja Cancels orders and it makes sense now.

            Thanks for your help.

            Cheers

            Mike

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            661 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            375 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            110 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            574 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            579 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X