AR1:=DATE=DATE;
VAR2:=MA(CLOSE,6);
VAR3:=MA(CLOSE,12);
VAR4:=MA(CLOSE,18);
VAR5:=OPEN<VAR2 AND CLOSE>VAR2;
VAR6:=OPEN<VAR3 AND CLOSE>VAR3;
VAR7:=OPEN<VAR4 AND CLOSE>VAR4;
VAR8:=CLOSE/OPEN>=1.02;
VAR9:=vol>HHV(HIGH,10);
VAR12:=VAR2>=REF(VAR2,1);
XG:VAR12 AND VAR5 AND VAR6 AND VAR7 AND VAR8 AND VAR9;