Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
OCO ID is Global?
Collapse
X
-
Hello,
You could do something along the lines of the following
http://www.ninjatrader.com/support/h...t_fullname.htmCode://at some point before submitting the order make sure Instrument is not null if (Instrument != null) { //while you wouldn't need an OCO for the order used here you can see how you would use the Instrument.FullName to create an OCO ID specific to the instrument. entryOrder = SubmitOrder(0, OrderAction.Buy, OrderType.Market, 1, 0, 0, [B]"1234"+Instrument.FullName[/B], "Enter Long"); }
Additionally you can use http://www.ninjatrader.com/support/h...gyuniqueid.htm to get a unique ID
Please let me know if I can be of further assistance.LanceNinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
148 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
71 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
125 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
79 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment