VAR1:=OPEN>MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE>OPEN AND CLOSE/REF(CLOSE,1)>1.05;
VAR2:=(H-MAX(CLOSE,OPEN))/(MAX(CLOSE,OPEN)-MIN(CLOSE,OPEN));
VAR3:=MIN(CLOSE,OPEN);
VAR4:=MAX(CLOSE,OPEN)-MIN(CLOSE,OPEN);
VAR5:=REF(VAR3,3)<REF(VAR3,2)AND REF(VAR3,2)<REF(VAR3,1);
VAR7:=REF(VAR4,3)>REF(VAR4,2)AND REF(VAR4,2)>REF(VAR4,1);
VAR8:=REF(VAR2,1)>0.9 AND REF(VAR2,2)>0.9 AND REF(VAR2,3)>0.9;
XG:VAR8 AND VAR5 AND VAR7 AND VAR1;