PDA

View Full Version : Use of Order Entry APIs in multi-instrument environment


lclifner
10-11-2007, 03:44 PM
This question is related to the question I had on using WMA in a multi-instrument environment.

I have two instruments that I am tracking in my Ninja Script. When I get a tick update from either instrument, I would like to be able to enter orders for one or both instruments.

The default for EnterLong() is to use the BarsInProgress indexed instrument.

Is it possible to use EnterLong() on the non-current instrument? That is, can I do:
EnterLong()[0] to enter a default long order on my primary instrument
EnterLong()[1] to enter a default long order on my secondary instrument
??

What is the correct syntax for doing that?

Thanks!

NinjaTrader_Josh
10-11-2007, 03:59 PM
I believe in NT6 you can only enter trades on the primary bars series. I believe NT6.5 will allow.

NinjaTrader_Ray
10-11-2007, 05:58 PM
Correct, NT6.5 will allow this.