class OpenPosition

Parents

RawOpenPosition

Brief

The class provides access to information about an open position

Public Methods

getCloseRate

Gets the price at which the position can be closed at the moment

getGrossPL

Gets the current profit or loss of the position in the account currency

getLimitOrderID

Gets the identifier of the associated limit order (profit limit level)

getLimitRate

Gets the price of the associated limit order (profit limit level)

getNetPL

Gets the amount of the current position profit/loss including commissions, interest, and dividends

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

getStopMove

Gets the pips left until the stop is moved

getStopOrderID

Gets the identifier of the associated stop order (loss limit level)

getStopRate

Gets the price of the associated stop order (loss limit level)

getUsedMargin

Gets the amount of funds currently committed to maintain the position, expressed in the account currency

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

back