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 sjsj2732, Yesterday, 04:31 AM
        0 responses
        39 views
        0 likes
        Last Post sjsj2732  
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        290 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        289 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        135 views
        1 like
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        96 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Working...
        X