Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cancelling a SetTrailStop() Order

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

    Cancelling a SetTrailStop() Order

    Hello.

    Can the following be done in an NT Strategy?

    I have a SetTrailStop() in the OnExecution() section of a strategy.

    If the trade makes $50 in profit, I want to set a BreakEven Stop Loss in the OnUpdate() section (.i.e. SetStopLoss(CalculationMode.Price, Position.AvgPrice).

    At this point, is there any way to cancel the SetTrailStop() that was set in the OnExecution() section?

    I want to cancel the SetTrailStop() and just let the SetStopLoss() run.

    #2
    Hello SilverSurfer1,

    It would not be possible to cancel an order generated with a set method.

    You would need to use exit orders instead, or control the trailing behavior with logic.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello SilverSurfer1,
      It would not be possible to cancel an order generated with a set method.
      https://ninjatrader.com/support/foru...269#post802269
      Hi
      I would want you to implement the feature "cancel an order generated with a set method."
      It seems strange to read that "It would not be possible to cancel an order generated with a set method.".... Really strange.

      Comment


        #4
        Hello AlexMocc,

        Set methods are intended to be Set once and forgotten and left to NinjaTrader to manage. These are not intended to be cancelled and are intended to keep working even for new entries.

        Orders that you want to update or cancel are intended to be Entry and Exit methods (or the unmanaged approach SubmitOrderUnmanaged()).

        I will submit your request for Set methods to be cancelled even though this is not the intended purpose.

        Once I have a tracking ID for this request I will post in this thread for future reference.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

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