The PositionManager type exposes the following members.

Constructors

  NameDescription
PositionManagerOverloaded.

Methods

  NameDescription
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.
CloseAllPositionsOverloaded.
ClosePositionOverloaded.
Equals
Determines whether the specified Object is equal to the current Object.
(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.)
GetOpenPositionsOverloaded.
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.)
OpenPositionOverloaded.
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
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
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

  NameDescription
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.

See Also