The PositionInfo type exposes the following members.


Public methodClone
Creates a copy of this position.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetClosedPosition
Returns a copy of the position with an additional trade to close the position.
Public methodGetCloseStats
Calculates what the position statistics would be if the position was closed at a given price.
Public methodGetCurrentValue
Calculates the value of this position.
Public methodGetExposure
Gets the exposure for this position.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodStatic memberGetPositionTypeText
Provides the textual representation of the PositionType enumeration.
Public methodGetRealizedProfitPct
Gets the percent profit for a position.
Public methodGetTargetPrice
Gets the price at which the position will hit a stop loss or profit target
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUnrealizedProfit
Calculates the unrealized profit for a position.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string representation of this position.
(Overrides Object..::..ToString()()()().)


Public fieldPositionType
The type of position (long or short).
Public fieldTrades
The list of trades (orders that were filled) for this position.


Public propertyBarsHeld
The number of bars the position has been or was open for.
Public propertyCloseDate
The date of the last trade for the position, or MaxValue if the position is not closed, or there are no trades.
Public propertyCurrentStats
The PositionStats object representing the current state of the position.
Public propertyCustomString
A string that can be used to store additional user-defined data related to the position.
Public propertyDescription
A description for the position. This can be specified in the open position order.
Public propertyEntryTransType
The TransactionType used to open or add to this position.
Public propertyExitTransType
The TransactionType used to close this position or reduce its size.
Public propertyOpenDate
The date of the first trade for the position, or MaxValue if there are no trades.
Public propertyPosID
The unique ID for the position.
Public propertyStatList
A list of PositionStats objects corresponding to the statistics after each trade in Trades.
Public propertySymbol
The symbol this position was established for.

See Also