Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

exit strategy

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

    exit strategy

    hi, i am wondering if i can use ninja script to set a exit strategy like when profit > 3% and trailing stop = 1%? which means the trailing stop will only take effect when profit for this trade is >3%

    what the code would be look like? can it be done within the strategy builder?? many thx.

    #2
    light7801, unfortunately coding something like this would not be possible within the strategy builder. In addition, creating trailing stops in NinjaScript can be somewhat difficult, depending on the complexity. There is a reference sample titled "Modifying the price of stop loss and profit target orders" that will be of assistance. I also found a thread that discusses implementing a trail stop that seems very similar to what you're trying to do.
    AustinNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    633 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X