The PositionManager type exposes the following members.

Methods

  NameDescription
Public methodAddToPosition
Submits an order to add the specified number of shares or contracts to an existing position.
Public methodCancelOrder
Cancels a pending order.
Public methodCanOpenPosition
Checks if a position can be opened based on the maximum number of open positions.
Public methodCloseAllPositions()()()()
Indiscriminately closes all open positions
Public methodCloseAllPositions(Symbol)
Closes all open positions for the specified symbol.
Public methodClosePosition(String)
Closes a position with a market order.
Public methodClosePosition(String, String)
Closes a position with a market order.
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 methodGetClosedPositions
Gets a list of closed positions.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetOpenPositions()()()()
Gets a list of open positions for all symbols.
Public methodGetOpenPositions(Symbol)
Gets a list of the currently open positions for a given symbol.
Public methodGetPendingOrdersForPosition
Gets the orders that are currently pending for a position.
Public methodGetPendingPositions()()()()
Gets a list of pending positions.
Public methodGetPendingPositions(Symbol)
Gets a list of pending positions for the specified symbol
Public methodGetPosition
Gets the position with the specified ID.
Public methodGetProfitTarget
Returns the profit target for a position.
Public methodGetStopLoss
Returns the stop loss for a position.
Public methodStatic memberGetTradeTypeName
Gets the name of this trade type.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOpenPosition(PositionSettings)
Submits an order to open a position.
Public methodOpenPosition(Symbol, PositionType, OrderType, Double, Int64, String)
Submits an order to open a position.
Public methodRemoveFromPosition
Submits an order to removes the specified number of shares or contracts from an existing position.
Public methodSetProfitTarget
Sets a profit target for the position with the specified ID.
Public methodSetStopLoss
Sets a stop loss for the position with the specified ID.
Public methodSetTrailingStop
Sets a trailing stop for the position with the specified ID.
Public methodSubmitOrder
Submits an order to modify an open position.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)

See Also