class OpenPosition
Parents
object
Brief
The class provides access to information about an open position
| Public Methods | |
|---|---|
| OpenPosition | This method is a constructor for the class provides access to information about an open position. It initializes the properties with default values and does not return any values |
| getPL | Gets the current profit or loss of one lot of the position in the account currency |
| getPLPips | Gets the current profit or loss of one lot of the position in pips |
| getGrossPL | Gets the current profit or loss of the position in the account currency |
| getNetPL | Gets the amount of the current position profit/loss including commissions, interest, and dividends |
| getCloseRate | Gets the price at which the position can be closed at the moment |
| getStopRate | Gets the price of the associated stop order (loss limit level) |
| getLimitRate | Gets the price of the associated limit order (profit limit level) |
| getStopOrderID | Gets the identifier of the associated stop order (loss limit level) |
| getLimitOrderID | Gets the identifier of the associated limit order (profit limit level) |
| getUsedMargin | Gets the amount of funds currently committed to maintain the position, expressed in the account currency |
| getStopMove | Gets the pips left until the stop is moved |