Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Unmanaged stop/profit orders being hit by wrong order
Collapse
X
-
Unmanaged stop/profit orders being hit by wrong order
How do I link a profit target and stop loss order to to an unmanaged order so that they can't be used to close other active orders? For example, say I submit an unmanaged long order and it gets filled. I create an unmanaged stop and profit order (with same OCO) in OnExecutionUpdate. Say the stop target is only a few ticks below the entry and the profit target is far away. Now, say the market moves up some and I submit another long entry that is filled and I create a stop and profit target in the same way as the first. Now, say the market immediately turns around and hits the stop loss for the second order that was just filled. Instead of the second order being closed, the first order is closed which removes the stop/profit orders for the second order and now the first order's stop/profit remain active until the second order hits one of them. How do I link the stop/profit orders to a specific entry order so other active orders can't use them as an exit?Tags: None
-
Hello lahmannjohn,
Thank you for using NinjaTrader.
Please reach out to our support team at support@ninjatrader[dot]com.
Thank you in advance!
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
558 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 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
545 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment