Position
<< Click to Display Table of Contents >> Position |
Represents position related information that pertains to an instance of a strategy.
Tips: •For multi-instrument scripts, please see Positions object which holds an array of all instrument positions managed by the strategy's account •For a real-world Account Position, please see PositionAccount. |
Account |
An Account object which corresponds to the position |
Gets the average entry price of the strategy position |
|
Gets the unrealized PnL |
|
An Instrument value representing the instrument of an order |
|
Gets the current market position
Possible values: MarketPosition.Flat MarketPosition.Long MarketPosition.Short |
|
Gets the current position size |
|
ToString() |
A string representation of a position |
protected override void OnBarUpdate() |