Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cancel a StopLoss?

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

    Cancel a StopLoss?

    Greetings,

    When my strategy submits an order it also calculates/sets an initial StopLoss (within "OnBarUpdate"). Since I know it is not possible to both a StopLoss and a TrailStop concurrently for the same position what I'd like to try to do is "cancel" the StopLoss once the price has reached a certain level in my trade's favor. At that point I figure a TrailStop could then be submitted at that point.

    I guess my question is kinda simple--is it possible to "cancel" the StopLoss so as to replace with a TrailStop?

    Thanks in advance.

    #2
    No this is not possible however, you can modify the price of the stop loss and do your own auto trail on it. See the Reference Sample section for modifying stop loss orders.
    RayNinjaTrader Customer Service

    Comment


      #3
      Thank you. I took a look at that and I think I can figure something out with it. Do dynamic changes of the StopLoss like that apply to ALL open positions within the strategy (if a strategy is capable of producing more than 1 open trade position at a time)?

      Comment


        #4
        Applies to the signal name provided. SetStopLoss() have signal name parameters that identify the signals.
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        566 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        330 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
        547 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        548 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X