Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Automatic Stop Loss to Breakeven setup sought
Collapse
X
-
Automatic Stop Loss to Breakeven setup sought
I am trading 2 contracts. I want them both to have a SL of say 40. The 1st one has a TP of 60. The second one has a TP of 80. How do I set it up so that IF the first TP is hit, the 2nd contract Automatically moves to Break-even. Appreciate your help.Tags: None
-
Hello OldGuard60,
This would be achieved with logic to change the price of the stop exit order. The trigger price for the breakeven action would be set to the same distance as the limit profit target order.
Below is a link to an example created with the Strategy Builder.
As well as a link to an examples of unlocked strategies that modify the exit stop price.
I'm also providing a link to a support article with helpful resources on getting started with C# and NinjaScript.
Note, you'll want to set EntriesPerDirection to 2 to allow 2 entry orders.
Chelsea B.NinjaTrader Customer Service
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
475 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
316 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
253 views
1 like
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
340 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
305 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment