Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How are trailing stops handled in NT6?

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

    How are trailing stops handled in NT6?

    Today I wrote my own trailing stop logic since I need to send notifications via email every time the stop gets bumped up and when it finally gets hit. As in the past I have used SampleOnOrderUpdate as a template to handle my own stops - which works fine on many of my existing strategies.

    Now, the 'hand rolled' trailing stop logic is that for each new high the stop gets bumped up so that the stop always is xx ticks away from the highest high since the trade was taken. As soon as a new high is being ticked I simply deduct the stop distance from the highest high and re-assign the stop. It works fine and I have gone through my chart by hand to double check. So far so good...

    Now, the problem is that I see divergences from new 'handrolled' strategy to my baseline strategy which uses a vanilla NT trailing stop via SetTrailStop(). As a matter of fact I see instances where mathematically the stop should have gotten hit but wasn't. So it seems that the default NT implementation seems to work differently. Reading up on the subject matter I learned that many platforms have different ways of handling trailing stops - some FX systems for instance only 'upgrade' the stop once every 15 pips. For the record btw - I'm using this with index futures.

    So the question that goes out to you guys is - how exactly do your trailing stops work? I would like to emulate your logic as closely as possible.

    Thanks,

    Michael

    #2
    I would recommend working with the SetTrailStop and then tracking the trailstop order process visually on the SuperDOM - trailing stops are updated on a tick by tick basis in NinjaTrader - http://www.ninjatrader-support.com/H...TrailStop.html

    Comment


      #3
      Visually monitoring is not going to work for me. I still wonder however - if that is true - why NT does not exit when it should? Again, I verified that my implementation works correctly - it is NT that seems to hold it beyond the HH-->stopDistance. Do you guys use the high (low) or the close to push the stop up (down)?

      Thanks,

      Michael



      Originally posted by NinjaTrader_Bertrand View Post
      I would recommend working with the SetTrailStop and then tracking the trailstop order process visually on the SuperDOM - trailing stops are updated on a tick by tick basis in NinjaTrader - http://www.ninjatrader-support.com/H...TrailStop.html

      Comment


        #4
        Michael, it's using the last price to trail the stop as specified.

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          Michael, it's using the last price to trail the stop as specified.
          Okay, I need a bit more details here. What do you mean by 'last price'? Is it the high of the current candle or the close/high of the previous candle? This should not be a secret guys as we are basing our trading on this stuff, okay? Could be more explicit please?

          Thanks,

          Michael

          Comment


            #6
            It it no 'secret' Michael - if you place a SetTrailStop you can see the stop been updated on a tick by tick basis. I

            f the last price (Close) is a tick higher than the trail stop value, the trail stop will move accordingly and on for each additional tick in profit.

            As I suggested, this can be best seem on the SuperDOM with the order placed and active. If this is not what you're after, please clarify futher - Thanks!

            Comment


              #7
              Cat fight!!! LOL ;-)

              No, that answers it - I never look at the SuperDOM - sorry - I'm a code monkey only - hehe. You guys use the close - I used the high - easy for me to fix now.

              Cheers,

              Michael

              Originally posted by NinjaTrader_Bertrand View Post
              It it no 'secret' Michael - if you place a SetTrailStop you can see the stop been updated on a tick by tick basis. I

              f the last price (Close) is a tick higher than the trail stop value, the trail stop will move accordingly and on for each additional tick in profit.

              As I suggested, this can be best seem on the SuperDOM with the order placed and active. If this is not what you're after, please clarify futher - Thanks!

              Comment


                #8
                Great we figured it out - thanks for reporting back and good weekend!

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                668 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                377 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                110 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                575 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                580 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X