VAR1:=REF(CLOSE,1); VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(Abs(CLOSE-VAR1),7,1)*100; FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5)