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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
47 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
23 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
33 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
51 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment