X_1:=(CLOSE+HIGH+OPEN)/3;
X_2:=EMA(X_1,4);
X_3:=crOSS(CLOSE,X_2);
X_4:=CROSS(X_2,CLOSE);
X_5:=REF(X_4,2);
X_6:=REF(OPEN,2)>REF(CLOSE,2);
X_7:=CLOSE>OPEN;
X_8:=CLOSE>REF(OPEN,2);
XG:X_3 AND X_5 AND X_6 AND X_7 AND X_8;
X_1:=(CLOSE+HIGH+OPEN)/3;
X_2:=EMA(X_1,4);
X_3:=crOSS(CLOSE,X_2);
X_4:=CROSS(X_2,CLOSE);
X_5:=REF(X_4,2);
X_6:=REF(OPEN,2)>REF(CLOSE,2);
X_7:=CLOSE>OPEN;
X_8:=CLOSE>REF(OPEN,2);
XG:X_3 AND X_5 AND X_6 AND X_7 AND X_8;