The PositionManager type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| AddToPosition |
Submits an order to add the specified number of shares or contracts to an existing position.
| |
| CancelOrder |
Cancels a pending order.
| |
| CanOpenPosition |
Checks if a position can be opened based on the maximum number of open positions.
| |
| CloseAllPositions | Overloaded. | |
| ClosePosition | Overloaded. | |
| Equals | (Inherited from Object.) | |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetClosedPositions |
Gets a list of closed positions.
| |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetOpenPositions | Overloaded. | |
| GetPendingOrdersForPosition |
Gets the orders that are currently pending for a position.
| |
| GetPendingPositions |
Gets a list of pending positions.
| |
| GetPosition |
Gets the position with the specified ID.
| |
| GetProfitTarget |
Returns the profit target for a position.
| |
| GetStopLoss |
Returns the stop loss for a position.
| |
| GetTradeTypeName |
Gets the name of this trade type.
| |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| OpenPosition | Overloaded. | |
| RemoveFromPosition |
Submits an order to removes the specified number of shares or contracts from an existing position.
| |
| SetProfitTarget |
Sets a profit target for the position with the specified ID.
| |
| SetStopLoss |
Sets a stop loss for the position with the specified ID.
| |
| SetTrailingStop |
Sets a trailing stop for the position with the specified ID.
| |
| SubmitOrder |
Submits an order to modify an open position.
| |
| ToString | (Inherited from Object.) |