VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=3;
VAR6:=DRAWLINE(VAR4>=HHV(VAR4,VAR5),VAR4,VAR4<=LLV(VAR4,VAR5),VAR4,0);
VAR7:=DRAWLINE(VAR4<=LLV(VAR4,VAR5),VAR4,VAR4>=HHV(VAR4,VAR5),VAR4,0);
VAR8:=VAR4=VAR7;
VAR9:=VAR4=VAR6;
VAR10:=VAR4<REF(VAR4,1);
VAR11:=VAR4>REF(VAR4,1);
FILTER(VAR8 AND VAR10,1) AND CLOSE<REF(CLOSE,19);