MQL4参考 交易函数 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());