The PositionManager type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| PositionManager | Overloaded. |
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.) |
Properties
| Name | Description | |
|---|---|---|
| Allocation |
Specifies the position size if not specified. This may represent a percentage of account value, a fixed value,
or a fixed number of shares depending on the value of AllocationType.
| |
| AllocationType |
Specifies how position size should be determined (if not specified otherwise).
| |
| BarCountExit |
The default bar count exit value for positions, or zero for none.
| |
| ForceRoundLots |
Get or set whether or not orders sent to the broker around rounded to the nearest 100 shares.
| |
| MaxOpenPositions |
Gets or sets the maximum number of open positions.
| |
| MaxOpenPositionsPerSymbol |
Gets or sets the maximum number of open positions per symbol.
| |
| PositionOverfilledAction |
Specifies the action to take when a position is overfilled.
| |
| ProfitTarget | ||
| ProfitTargetType | ||
| RestrictOpenOrders |
Specifies whether the Max Open Positions settings should limit the number of position open orders submitted.
| |
| StopLoss | ||
| StopLossType |
Events
| Name | Description | |
|---|---|---|
| OrderFilled |
Event called when an order is filled.
| |
| OrderSubmitted |
Event called when an order has been submitted. This is nothing more than a notification
that the broker received the order.
| |
| OrderUpdated |
Event called when an order is updated (ie filled, canceled, etc.)
| |
| PositionOverfilled |
An event that is raised when a position is overfilled.
|