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 ScottWalsh, Today, 06:52 PM
|
4 responses
32 views
0 likes
|
Last Post
by ScottWalsh
Today, 07:40 PM
|
||
Started by olisav57, Today, 07:39 PM
|
0 responses
4 views
0 likes
|
Last Post
by olisav57
Today, 07:39 PM
|
||
Started by trilliantrader, Today, 03:01 PM
|
2 responses
19 views
0 likes
|
Last Post
by helpwanted
Today, 07:25 PM
|
||
Started by cre8able, Today, 07:24 PM
|
0 responses
6 views
0 likes
|
Last Post
by cre8able
Today, 07:24 PM
|
||
Started by Haiasi, Today, 06:53 PM
|
1 response
5 views
0 likes
|
Last Post Today, 07:05 PM |
Comment