Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Basket order for Interactive Brokers
Collapse
X
-
Hi vjsworld,
Thanks for your post.
This would not be possible. NinjaTrader submits individual orders on a per instrument basis.
However, your strategy can use multiple instruments and submit the individual orders at once for these instruments.
Please take a look at the SampleMultiInstrument script that is included with NinjaTrader to see how this could be done.Last edited by NinjaTrader_ChelseaB; 08-19-2013, 08:03 AM.Chelsea B.NinjaTrader Customer Service
-
If I wanted to do this, would I have to use an IOrder per instrument added (currently using unmanaged orders)? Is there anyway to use one IOrder for multiple instruments to throw them at once (or nearly at once with a loop)? Then filter the onExecution events by BarsInProgress?
Comment
-
Hello vjsworld,
The IOrder is used to manage the order after it has been submitted. It is not required to use an IOrder handle to submit orders. With the unmanaged method you can use SubmitOrder() without an IOrder handle. However, it may be difficult to later manage the order.
With SubmitOrder() you could submit orders by looping over the BarsArray.length.
For example:
This would submit one order for each added data series.Code:for (var i=0; i<=BarsArray.length; i++) { SubmitOrder([B]i[/B], OrderAction.Buy, OrderType.Market, 1, 0, 0, "", "Enter Long"); }Chelsea B.NinjaTrader Customer Service
Comment
-
Here's a free tool for creating basket files from the IB market scanner. May It can help coding Your ninjascript.Originally posted by vjsworld View PostIs it possible to send a basket order to IB from NT strategy. IE: buy these 'x' stocks at market, all from one order send?
https://bas****rderbuilder.wordpress.com/Step 1. Create Your Market Scanner Buying or Selling rules. Eg. stock over 200 days Moving Average and oversold based on the MACD indicator. There are a lot of field and filters You can add to the scanner. You can create complex strategies with different rules and update them daily, weekly or monhly. Eg: every…
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
310 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
200 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
186 views
1 like
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
278 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
229 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment