what the code would be look like? can it be done within the strategy builder?? many thx.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
exit strategy
Collapse
X
-
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.Tags: None
-
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
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
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
364 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
567 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
568 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment