hi everyone how to compare the last Count higher with the other Count higher ? MA50 = Average[50](close) DecreaseMA50 = MA50 < MA50[1] Count = 0 WHILE DecreaseMA50[Count] DO Count = Count + 1 WEND RETURN Count Best Reguards,