PositionsAccount
<< Click to Display Table of Contents >> PositionsAccount |
Holds an array of PositionAccount objects that represent positions managed by the strategy's account. This property should only be used when your strategy is executing orders against multiple instruments.
Index value is based on the the array of Bars objects added via the AddDataSeries() method. For example:
First Bars is ES 1 Minute
Secondary Bars is ES 5 Minute
Third Bars is NQ 5 Minute
PositionsAccount[0] == ES position
PositionsAccount[1] == Always a flat position, ES position will always be PositionsAccount[0]
PositionsAccount[2] == NQ position
Tips: •For single instrument scripts, please see PositionAccount object •For Strategy Positions, please see Positions |
An array of PositionAccount objects.
protected override void OnStateChange() |