VAR1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR2:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR3:=(HIGH-REF(HIGH,1));
VAR4:=(REF(LOW,1)-LOW);
VAR5:=(SUM(IF(((VAR3>0) AND (VAR3>VAR4)),VAR3,0),5));
VAR6:=SUM(IF(((VAR4>0) AND (VAR4>VAR3)),VAR4,0),5);
VAR7:=(((VAR5)*100)/TR);
VAR8:=((VAR6*100)/TR);
VAR18:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100;
VAR19:=(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)*100;
XG:VAR18<-11 AND VAR19<-13 AND VAR1<-7 AND VAR2<-9;