Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SetStopLoss Filling at Different Target

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

    SetStopLoss Filling at Different Target

    I am using the following statement in my Initialize event:

    Code:
    SetStopLoss(CalculationMode.Ticks, 6);
    The instrument I am using is the ES. For the most part, stops occur correctly at 6 ticks but occasionally, I get stopped out at 5 ticks - my understanding is that a limit order is used for the stop, correct? In this case, I wouldn't think that slippage is an issue. Please advise.

    #2
    Hello,

    Thanks for the note.

    A limit order is used by default however the limit work in the opposite direction. Meaning that anything above your stop is ok and will fill, anything below your stop by an extreme amount would not. This setting for how far down the limit is placed is hard coded and it is set at set amount of ticks of the instrument below(or above if your short) the stop. Its set far enough away that in all scenario you should get your stop filled when it hit.

    -Brett
    BrettNinjaTrader Product Management

    Comment


      #3
      Brett,

      Thanks for answering but I am totally confused by your answer - I just don't understand what you are saying - is there any way you can rephrase or give an example or a reference to docs? I apologize.

      Thank you

      Comment


        #4
        Hello,

        There are two things at play here.

        A) The limit order when the stop gets hit works the opposite direction that you are thinking It makes sure you get that price or better, a better price would be above your stop price.

        B) The limit order of the stop is offsetted to be several ticks lower then the stop price. This way you still get a fill on your stop if the market gaps down on you.

        -Brett
        BrettNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        52 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        142 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        160 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        96 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        276 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X