The Position type exposes the following members.
The number of bars before this position will be closed automatically. If this value is less than zero, the position will not be automatically closed.
The number of bars the position has been or was open for.
The commission costs paid so far for this position.
The current size of this position.
The PositionStats object representing the current state of the position.
Gets the value of this position.
A string that can be used to store additional user-defined data related to the position.
A user-definable description for the order.
The weighted average of the entry price for the shares or contracts that currently make up this position.
The TransactionType used to open or add to this position.
Error information for the position. This will be null if the order to open the position was successfully submitted.
The position exit price, as a weighted average.
The TransactionType used to close this position or reduce its size.
Gets the exposure for this position.
The position gross entry price, as a weighted average.
The gross size of this position.
The unique ID for the position.
The PositionInfo object for this position. This property is for internal use and does not usually need to be used in trading system code.
The amount of interest earned or paid on this position.
The maximum size of this position.
The pending orders for this position.
Indicates whether ClosePosition has been called for this position. If this is true, then additional orders may not be submitted for the position.
The profit target for the position.
The type of profit target for the position.
The realized profit for this position.
The position state (pending, open, or closed). A pending position is a position where the order to open it has been submitted but not filled.
The stop loss for the position.
The type of stop loss for the position.
The symbol this position was established for.
An object that can be used to store additional user-defined data related to the position. Note that this field will not be saved between different live trading sessions. The CustomString field will be saved between sessions.
The list of trades, or orders that have been filled, for this position.
The position type (long or short).
Gets the unrealized profit for a position.