XG1:=REF(HHV(C,3)/LLV(C,3)<1.005,1);
A1:=EMA(C,6);
A2:=EMA(C,12);
A3:=MA(C,33);
XG2:=CLOSE>A1 AND A1>A2 AND A2>A3 AND CLOSE>OPEN;
XG:XG1 AND XG2 ;
XG1:=REF(HHV(C,3)/LLV(C,3)<1.005,1);
A1:=EMA(C,6);
A2:=EMA(C,12);
A3:=MA(C,33);
XG2:=CLOSE>A1 AND A1>A2 AND A2>A3 AND CLOSE>OPEN;
XG:XG1 AND XG2 ;