Regards
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
OCO group tag mismatch
Collapse
X
-
OCO group tag mismatch
About 5 % of the time the OCO group tags are not identical which leaves an open order after one of the pair is triggered. The error come from GetAtmStrategyUniqueId() being different at the time of OCO group creation in an unmanaged strategy. Any thoughts on this?
RegardsTags: None
-
Hello elliot5,
As this involves NinjaScript coding, this has been moved to the NinjaTrader 8 Strategy Development section the forums.
Are you saving the string id to a variable and using the variable for both orders?
Or are you calling this multiple times for each order to generate different strings?Chelsea B.NinjaTrader Customer Service
-
Chelsea B.NinjaTrader Customer Service
Comment
-
Hello elliot5,
OCO is one cancels others. When two orders are using the same OCO ID these are tied with OCO. If the OCO IDs are different then those orders are not tied with OCO.
Save the full ID to a variable, use this for all orders you want in the OCO grouping.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
566 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
330 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
547 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
548 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment