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 NullPointStrategies, Today, 05:17 AM
    0 responses
    46 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    66 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X