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!
Comment