Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how do you reset stop loss

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

    how do you reset stop loss

    i am hunting for examples on how to cancel or reset stop loss so that it does not take effect. i cannot find any. appreciate help.
    the reason is that i want to move from stop loss to trail stop once the trade moves in my favour. as per the docs. the stop loss overrides the trail stop.

    #2
    Hi junkone, have you looked into these reference samples?

    The OnOrderUpdate() and OnExecution() methods are reserved for experienced programmers. Instead of using Set() methods to submit stop-loss and profit target orders, you can submit and update them manually through the use of IOrder and IExecution objects in the OnOrderUpdate() and OnExecution() methods. The OnOrderUpdate()




    Also, here is a link to the CancelOrder() help guide section - http://www.ninjatrader-support.com/H...ncelOrder.html

    Comment


      #3
      ok. here is how i now understand it.
      if the trade is initiated with setstoploss(SIGNALZLR_ENTRY, CalculationMode.Ticks, getTickValue(ATRValue), false);
      the only way to get a handle to the order objects is to monitor using OnOrderUpdate() function.

      what would be the impact in following 2 scenarios
      1. if i cancel the stoploss orders using the handle and call the setstoploss function , would it initiate the stop loss orders again
      2. if i dont cancel the stoploss order and call the setstoploss function, would it modify the existing stop loss orders or will it create a new one.

      Comment


        #4
        Hi, you can learn more about the SetStopLoss() and SetProfitTarget() here - http://www.ninjatrader-support2.com/...ead.php?t=3222

        You cannot cancel the SetStopLoss, if you want to manually manage this please use the Exit methods...

        See also this link for an overview of the different order methods - http://www.ninjatrader-support.com/H...verview36.html

        Please also see this reference sample - http://www.ninjatrader-support2.com/...ead.php?t=7499

        Comment


          #5
          all your docs refer to resetting stop loss. what does that term 'reset' mean and how is it done. i just would appreciate some more clarity. all the links in this thread brings me to a full circle.
          what does resetting stop loss mean.

          Comment


            #6
            Resetting means bringing the value back for use again. If you keep modifying your stop loss it will remain that new value for all of your new orders. You may or may not want to bring this stop loss value back to its original for new orders. Remember, you need to set your stop loss value before you enter a trade. That is what we mean by "resetting".
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

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