The function returns the requested property of an open position, pre-selected using PositionGetSymbol or PositionSelect. The position property must be of the double type. There are 2 variants of the function.
[out] Variable of the double type, accepting the value of the requested property.
Value of the double type. If the function fails, 0 is returned.
For each symbol, at any given moment of time, only one position can be open, which is the result of one or more deals. Do not confuse positions with current pending orders, which are also displayed on the "Trade" tab of the "Toolbox" of the client terminal.
To ensure receipt of fresh data about a position, it is recommended to call PositionSelect() right before referring to them.