AA:=MA(CLOSE,27);
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=LLV(LOW,34);
VAR3:=HHV(HIGH,34);
VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,13);
VAR5:=REF(CLOSE,1);
VAR6:=SMA(MAX(CLOSE-VAR5,0),7,1)/SMA(ABS(CLOSE-VAR5),7,1)*100;
VAR7:=EMA((CLOSE-LLV(CLOSE,55))/(HHV(CLOSE,55)-LLV(LOW,55))*100,7);
VAR8:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,5);
VAR9:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,20);
FILTER(CROSS(VAR8,VAR9) AND VAR9< 30 ,5)AND VAR7>REF(VAR7,1)AND C< AA AND C>O AND VAR4>REF(VAR4,1);