Calcualtion of total closed lots script-indicator

 

Hello,

I'm looking for a script/indicator that tells me how much lots I've already traded.. Is there any such script/indicator..?!

 
 
Alain Verleyen:

The code base is not well searchable....
 
Mohamed Mohamady:

Hello,

I'm looking for a script/indicator that tells me how much lots I've already traded.. Is there any such script/indicator..?!

   double Lot = 0;
   for(int x=OrdersHistoryTotal()-1;x>=0;x--)
      {
         if ( OrderSelect(x,SELECT_BY_POS,MODE_HISTORY))
            Lot += OrderLots();
      }
   Print(Lot);