Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to supersede Ninja ProfitTargets and StopLosses

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

    How to supersede Ninja ProfitTargets and StopLosses

    I have a strategy that uses NinjaTrader ProfitTargets and StopLosses. When I'm in a DownTrend I'm taking short positions and when in UpTrend taking long positions. The problem I'm having is that when in a short position and the Trend changes to UpTrend I have a Exit Action that will not supersede the StopLoss. My exit names the "From Entry" of the sell order but will not exit until stopped out. How can I make MySellExit supersede the NinjaTrader StopLoss?

    Thanks

    #2
    kenb2004,

    What do you mean by supercede? You want to use your explicit exit instead of your stop loss now? Under such a scenario I would suggest you instead of sending a new explicit exit order, but instead to just modify your stop loss to wherever you desire it to be instead. To modify it, just call SetStopLoss() again with the new price you want it at. Be aware that you will want to reset it back to the original level prior to your next entry.

    Please see this reference sample: http://www.ninjatrader.com/support/f...ead.php?t=3222
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Yes, I want to exit at the first close after the UpTrend signal INSTEAD OF (supersede) waiting to get stopped out by the StopLoss order. I would rather use my "explicit exit instead of changing the stop loss". Is this possible??
      Thanks

      Comment


        #4
        To do that all you would need to do is to just call ExitLong() whenever your conditions to exit are true and it will do so.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Your right ExitLong() does work but what about ExitLongLimit()? Is it possible to make this work INSTEAD OF a StopLoss? Say from current close -1 tick...
          Thanks

          Comment


            #6
            Correct, it is because doing so would violate one of the internal order handling rules as outlined in this article: http://www.ninjatrader.com/support/h...d_approach.htm
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              I'm sorry, I don't understand? You said, "correct" when I asked: "Is it possible to make this (ExitLongLimit()) work INSTEAD OF a StopLoss? Say from current close -1 tick"...and then you said it "would violate one of the internal order handling rules".

              So bottom line I can use an ExitLong() but NOT an ExitLongLimit() to supersede a StopLoss order? Is this correct???

              Comment


                #8
                Correct, ExitLong() will work even if you have a Set() method in place and ExitLongLimit() will not.
                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
                648 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                369 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                109 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                573 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                575 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X