Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Resetting Stop Loss

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

    Resetting Stop Loss

    I am working on a Strategy that when the trade gets to a certain Profit target I was to reset my StopLoss to minimize the loss on the trade,
    but even though I am calling the SetStopLoss with the parameters I used to set it initially the stop loss does not seem to reset.

    Is there a specific way I should be calling SetStopLoss for this to work?
    Is there code that will verify what the SetStopLoss is set to?

    Thanks

    #2
    Hello ATMtrader0001,

    A Set method cannot be unset. This means it is important to call the Set method with CalculationMode.Ticks to reset this before calling an entry method (not after).

    Below is a link to an example named ProfitChaseStopTrailSetMethodsExample which demonstrates.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Shame. This would be helpful to have. Feature Request?

      Comment


        #4
        Hello ATMtrader0001,

        The point of set methods, is to set these and then have them work for all future orders.. (set it and forget it kind of thing).

        It seems what you are wanting to do is active management of the exit orders.

        If you don't want to "set" these have them continue working for future entries, then don't use use Set methods. Use Exit order methods instead (such as ExitLongStopMarket()), which you can submit at a specific price from OnExecutionUpdate() when the entry order fills.

        To confirm, you want to request that set methods automatically unset themselves?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Yes, I supposed that is what I am saying. Maybe reset/adjust

          I understand the set it and forget it, but if the trade is above a set profit level it would be good to be able to
          reset the Stop Loss to a new level.

          I am looking to code the Managed Order code.

          Comment


            #6
            Hello ATMtrader0001,

            You can always adjust a set method just by calling it again.

            In Post # 2 I'm directing you to call the set method to reset it before calling a new entry, because it will be using it's values from the last entry which may be on the wrong side of the market, or not what was intended.

            Because set methods cannot be unset we recommend resetting these before placing a new entry, by calling the set method one line above the entry and using CalculationMode.Ticks (or basically anything but .Price).

            After the entry fills and the position changes and the orders are working, you can adjust them by calling the set method again using CalculationMode.Price.

            Can I confirm, you read the code in the example I provided you that shows resetting the set method?
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              OK, but if I am currently in an order I cannot reset it.

              Comment


                #8
                Hello ATMtrader0001,

                You are meaning while there is a working stop, you want to place a new entry to increase the existing position quantity and reset the stop before placing the order?

                Use a different signalName for each order and use that entry signal name as the fromEntrySignal for the call to the Set method. This will associate the stop or target to that specific entry.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  Not what I meant. It's already been stated that once you set the Stop Loss you cannot change it for an order.

                  All I was saying that it would be Nice if while in an order you can adjust or reset the Stop Loss for that order.

                  Comment


                    #10
                    Hello ATMtrader0001,

                    "It's already been stated that once you set the Stop Loss you cannot change it for an order."

                    This is incorrect. A working stop loss can be adjusted. The set method cannot be unset for new orders. These are not the same thing. I've stated in post # 6 you can modify the stop price by calling the set method again with a new price.

                    "All I was saying that it would be Nice if while in an order you can adjust or reset the Stop Loss for that order."

                    You can. You just can't unset it.
                    Chelsea B.NinjaTrader Customer Service

                    Comment


                      #11
                      Thank you for the clarification. I will test this,

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by NullPointStrategies, Yesterday, 05:17 AM
                      0 responses
                      62 views
                      0 likes
                      Last Post NullPointStrategies  
                      Started by argusthome, 03-08-2026, 10:06 AM
                      0 responses
                      134 views
                      0 likes
                      Last Post argusthome  
                      Started by NabilKhattabi, 03-06-2026, 11:18 AM
                      0 responses
                      75 views
                      0 likes
                      Last Post NabilKhattabi  
                      Started by Deep42, 03-06-2026, 12:28 AM
                      0 responses
                      45 views
                      0 likes
                      Last Post Deep42
                      by Deep42
                       
                      Started by TheRealMorford, 03-05-2026, 06:15 PM
                      0 responses
                      50 views
                      0 likes
                      Last Post TheRealMorford  
                      Working...
                      X