The Position type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| CloseAtMarket |
Submits a market order to close the position.
| |
| 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.) | |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| SetProfitTarget |
Sets the profit target for this position.
| |
| SetProfitTargetPrice |
Sets the profit target for this position, specified as a fixed price.
| |
| SetProfitTargetRatio |
Sets the profit target for this position, specified as a percentage gain.
| |
| SetStopLoss |
Sets the stop loss for this position.
| |
| SetStopLossPrice |
Sets the stop loss for this position, specified as a fixed price.
| |
| SetStopLossRatio |
Sets the stop loss for this position, specified as a percentage loss.
| |
| SubmitOrder | Overloaded. | |
| ToString |
Outputs a Position object to a string.
(Overrides Object..::.ToString()()().) |