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, 05-11-2026, 05:56 AM
    0 responses
    59 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    34 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    197 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    363 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    282 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X