buy and sell lot in MT4

 
hi can someone help here... how can i look at how many buying and selling lot in MT4... 
 

Hi

Do you mean how many opened buy and sell positions you have? You can count them in simple function and display in logs or on the chart.

For example:

void countOrders(int oMagic,int oType) {
   double buylots=0;
double selllots=0;
 
   for(int i=0;i<OrdersTotal();i++) {
    if(OrderSelect(i,SELECT_BY_POS)) {
       if(OrderType()==OP_BUY){
        buylots+=OrderLots();
        }
        else if (OrderType()==OP_SELL){
        selllots=+OrderLots();
        }
     }
    }
   
   }

Have a nice day