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
Code://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 kujista, Today, 05:44 AM
|
0 responses
5 views
0 likes
|
Last Post
by kujista
Today, 05:44 AM
|
||
Started by ZenCortexCLICK, Today, 04:58 AM
|
0 responses
5 views
0 likes
|
Last Post Today, 04:58 AM | ||
Started by sidlercom80, 10-28-2023, 08:49 AM
|
172 responses
2,281 views
0 likes
|
Last Post
by sidlercom80
Today, 04:40 AM
|
||
Started by Irukandji, Yesterday, 02:53 AM
|
2 responses
18 views
0 likes
|
Last Post
by Irukandji
Today, 03:55 AM
|
||
Started by adeelshahzad, Today, 03:54 AM
|
0 responses
8 views
0 likes
|
Last Post
by adeelshahzad
Today, 03:54 AM
|
Comment