HR:=REF(O>C,1) AND C>REF(C,1)*1.001;
F2:=EMA(C,12)-EMA(C,26);
E2:=EMA(F2,9);
D2:=(F2-E2)*2;
A2:=(C+O+H)/3;
X1:=Abs(MA(C,10)/MA(C,20)-1)<0.02;
X2:=ABS(MA(C,5)/MA(C,10)-1)<0.005;
X3:=ABS(MA(C,5)/MA(C,20)-1)<0.02;
XG:=X1 AND X2 AND X3;
X:=C>MA(C,5) AND H>MA(C,10) AND O<=MA(C,5) AND O<=MA(C,10) AND C>MA(C,120);
X4:=REF(C,1)
AND REF(HR,1) AND XG;