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 Mindset, 04-21-2026, 06:46 AM
|
0 responses
87 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
128 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
65 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
117 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
67 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment