MQL4 Question

 
The code below is supposed to indicate a MA Cross but it does not. Maybe I am wrong.

macurrent=iMA(NULL,0,5,0,MODE_LWMA,PRICE_CLOSE,0);
macurrentslow=iMA(NULL,0,10,0,MODE_LWMA,PRICE_CLOSE,0);
if (MathAbs(macurrentslow-macurrent)==0)
{Comment("CROSS............");}
else{Comment(macurrent,"|",macurrentslow,"|",MathAbs(macurrentslow-macurrent));}
if (MathAbs(macurrentslow-macurrent)==0)
{
Print("Cross");
Alert("CROSS");
}
 
insufficient condition. should be:
if((prevvalue1<prevvalue2 && currentvalue1>=currentvalue2) || (prevvalue1>prevvalue2 && currentvalue1<=currentvalue2)) Alert("Crossing...")
Reason: