PDA

View Full Version : Position.Quantity for secondary instrument


stefy
08-02-2010, 09:39 AM
Hi,

I'm working on a multi instrument strategy and I need to print out the quantities of both the primary and the secondary instrument.
For the primary instrument I'm using Position.Quantity, but there is no equivalent in the Positions method to print out the quantity of the secondary instrument. How can I do?

Thanks

NinjaTrader_RyanM
08-02-2010, 09:57 AM
Hello Stefy,

You can use Positions, which holds an array of position information. The second series quantity is accessed with:

Positions[1].Quantity;

http://www.ninjatrader-support.com/HelpGuideV6/Positions.html