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 argusthome, 03-08-2026, 10:06 AM
|
0 responses
88 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
48 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
30 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
34 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
68 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment