Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trailing stop loss

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

    Trailing stop loss

    Hi, is it possible to use a settrailstop(tik,numTik) in order to put the stop loss in a price in which if hit is going to give me a profit?
    Such as: avg entry: 100, price now: 105, stop loss: 103
    Thanks

    #2
    Hello AlessioCianini12,

    Thanks for your post.

    If you are using the Strategy Builder, the answer would be no. You could create a set that monitors your price to your exit level and when the exit level is hit to then exit using ExitLong() or ExitShort().

    If you are using Ninjascript then yes you could move the SetTrailStop(). I think a better use here though would be to use SetStopLoss() in stead of setTrailStop().

    The SetTrailStop() method moves the stop position as the trade goes into profit, so for each tick of profit the stop is adjusted that many ticks.

    Please be sure to review the help guide for a better understand of the setTrailStop and the criteria to use it correctly: https://ninjatrader.com/support/help...ttrailstop.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    47 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X