OrderLots - Trade Functions - MQL4 Reference

MQL4 Reference Trade Functions OrderLots

OrderLots

Returns amount of lots of the selected order.

double  OrderLots();

Returned value

Amount of lots (trade volume) of the selected order.

Note

The order must be previously selected by the OrderSelect() function.

Example:

  if(OrderSelect(10,SELECT_BY_POS)==true)
    Print("lots for the order 10 ",OrderLots());
  else
    Print("OrderSelect returned error of ",GetLastError());