the count does not stop

 
int TotalBuy=0 

for(int ii=0; ii<OrdersTotal(); ii++){
      if(OrderSelect(ii, SELECT_BY_POS, MODE_TRADES)==true){
         if(OrderType()==OP_BUY && OrderSymbol()==Symbol()){
            TotalBuy++;           
            } 
         }
   }
  Comment("Compras actuales: ", TotalBuy);

Hi, I want to make a current buys counter, but the counter does not stop. (it's supposed to only increase +1 for every buy, but it does not... although there are 3 buys, the counter carries like 10)

 
The posted code does not compile. Fix it and it will do exactly what want.
Reason: