Documentation

OrdersTotal

Returns the number of orders.

int  OrdersTotal();

Return Value

Value of the int type.

Note

Do not confuse current pending orders with positions, which are also displayed on the "Trade" tab of the "Toolbox" of the client terminal. An order is a request to conduct a transaction, while a position is a result of one or more deals.

For each symbol, at any given moment of time, only one position can be open, while there can be several pending orders for the same symbol.

See also

OrderSelect(), OrderGetTicket(), Order Properties