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. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (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 | |
|---|---|---|
| BarCountExit |
The default bar count exit value for positions, or zero for none.
| |
| FixedAmountPerPosition |
The amount to spend when opening a new position.
| |
| 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.
| |
| PercentPerPosition |
The percentage of the account value to assign to each position.
| |
| PositionOverfilledAction |
Specifies the action to take when a position is overfilled.
| |
| ProfitTarget |
The default profit target percentage, or zero for none.
| |
| RestrictOpenOrders |
Specifies whether the Max Open Positions settings should limit the number of position open orders submitted.
| |
| StopLoss |
The default stop loss percentage, or zero for none.
| |
| UseFixedAmountPerPosition |
Determines whether positions should be sized at a fixed value or a percentage of the account value.
|
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.
|