The Position type exposes the following members.

Methods

  NameDescription
Public methodCloseAtMarket()()()()
Submits a market order to close the position.
Public methodCloseAtMarket(String)
Submits a market order to close the position.
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 methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
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 methodSetProfitTarget
Sets the profit target for this position.
Public methodSetProfitTargetPrice
Sets the profit target for this position, specified as a fixed price.
Public methodSetProfitTargetRatio
Sets the profit target for this position, specified as a percentage gain.
Public methodSetStopLoss
Sets the stop loss for this position.
Public methodSetStopLossPrice
Sets the stop loss for this position, specified as a fixed price.
Public methodSetStopLossRatio
Sets the stop loss for this position, specified as a percentage loss.
Public methodSubmitOrder(OrderSettings)
Submits an order to modify this position.
Public methodSubmitOrder(Int64, TransactionType, OrderType, Double)
Submits an order to modify this position which is valid for one bar.
Public methodSubmitOrder(Int64, TransactionType, OrderType, Double, Int32)
Submits an order to modify this position.
Public methodToString
Outputs a Position object to a string.
(Overrides Object..::..ToString()()()().)

See Also