VAR1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR2:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR3:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VAR4:=(VAR1+VAR2+VAR3)/3;
VAR5:=EMA(VAR4,5);
VAR6:=IF(VAR5<=-20,10,0);
VAR6=10 AND FILTER(VAR6=10,5)