Problem with a loop - page 2

 
Similar to
static bool AllowAlert = true ;

if ( AlertCondition==true && AllowAlert==true ) //note the "==true" is not necessary but shown for clarity
  {
   Alert("Nice weather we are having");
   AlowAlert=false ;
  } // no more Alerts until
  
if ( AlertCondition==false )
  { 
   AlowAlert=true ;
  }
 

I don't know which variables to print/check because the indicator shows the correct results. It is only the alert what makes the problem. I removed the "displayAlert"-bool to concentrate only on the Time0-problem but I have no idea where the error is. The buffers are ok, the colors are at the right place, only the alert causes problems.

I changed it to this but the same as before. An alert after every minute... :(

        if (Time0!=Time[0])                                   
        {
          Alert("High Volume ",Symbol());                                      
          Time0=Time[0];
        }