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 CarlTrading, Yesterday, 11:51 AM
|
0 responses
16 views
0 likes
|
Last Post
by CarlTrading
Yesterday, 11:51 AM
|
||
|
Started by CarlTrading, Yesterday, 11:48 AM
|
0 responses
21 views
0 likes
|
Last Post
by CarlTrading
Yesterday, 11:48 AM
|
||
|
Started by CaptainJack, 03-25-2026, 09:53 PM
|
0 responses
16 views
0 likes
|
Last Post
by CaptainJack
03-25-2026, 09:53 PM
|
||
|
Started by CaptainJack, 03-25-2026, 09:51 PM
|
0 responses
13 views
0 likes
|
Last Post
by CaptainJack
03-25-2026, 09:51 PM
|
||
|
Started by Mindset, 03-23-2026, 11:13 AM
|
0 responses
20 views
0 likes
|
Last Post
by Mindset
03-23-2026, 11:13 AM
|

Comment