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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    71 views
    0 likes
    Last Post PaulMohn  
    Working...
    X