Positions
<< Click to Display Table of Contents >> Positions |
Holds an array of Position objects that represent positions managed by the strategy. 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
Positions[0] == ES position
Positions[1] == Always a flat position, ES position will always be Positions[0]
Positions[2] == NQ position
Tips: •For single instrument scripts, please see Position object •For a real-world Account Positions, please see PositionsAccount |
An array of Position objects.
protected override void OnStateChange() |