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