Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Clarification on SetTrailStop()

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

    Clarification on SetTrailStop()


    Hi there,

    I'm confused on how SetTrailStop() works, and I'd like to worth through a simple example. Say I do

    SetStopLoss(Ticks, 8);
    EnterLong()
    SetTrailStop(Ticks, 8);

    After this, say the market goes up 20 ticks, and then down by 30 ticks. What will be the action of SetTrailStop in this scenario? What would be the ticks gain/loss?

    Thanks.








    #2
    Originally posted by timmbbo View Post
    Hi there,

    I'm confused on how SetTrailStop() works, and I'd like to worth through a simple example. Say I do

    SetStopLoss(Ticks, 8);
    EnterLong()
    SetTrailStop(Ticks, 8);

    After this, say the market goes up 20 ticks, and then down by 30 ticks. What will be the action of SetTrailStop in this scenario? What would be the ticks gain/loss?

    Thanks.






    Impossible scenario. You cannot use SetTrailStop() and SetStopLoss() together.

    Comment


      #3
      Hello timmbbo,

      Thanks for your post.

      As member koganam advised, you would not be able to employ a setStop and a Trail stop on the same order as in that case only the fixed stop would be utilized. This is clarified in the help guide: "The SetTrailStop() method can NOT be used concurrently with the SetStopLoss() or SetParabolicStop() method for the same position, if any of methods are called for the same position (fromEntrySignal) the SetStopLoss() will always take precedence. You can however, use all three methods in the same strategy if they reference different signal names." (See the first note here: https://ninjatrader.com/support/help...ttrailstop.htm

      If we say that you are not using the SetStopLoss() then in your example, once the entry order has been filled the trail stop would be located 8 ticks away. For each tick of profit that your trade goes, the trail stop would be moved on a profit tick for tick basis, always remaining 8 ticks behind the current price while it moves in profit, when price retraces the trail stop would not change and would take out your order if it retraced 8 ticks from its highest price. In your example the highest profit was +20 ticks, the stop at that point would be located 20-8 = +12 ticks, when price came back to that level the stop would exit the trade.

      There are additional considerations you must understand about the use of the trail stop and they relate to how your strategies "calculate" mode is set. Please be sure to read the last note in the link above for clarification of what calculate mode to use.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      66 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      141 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      76 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      47 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      51 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X