Documentation

PositionsTotal

Returns the number of open positions.

int  PositionsTotal();

Return Value

Value of int type.

Note

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 current pending orders with positions, which are also displayed on the "Trade" tab of the "Toolbox" of the client terminal.

The total number of positions on a trade account cannot exceed the total number of financial instruments.

See also

PositionGetSymbol(), PositionSelect(), Position Properties