DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
X1:=ABS(MA(C,10)/MA(C,20)-1)<0.01;
X2:=ABS(MA(C,5)/MA(C,10)-1)<0.01;
X3:=ABS(MA(C,5)/MA(C,20)-1)<0.01;
X4:=MA(C,5)>REF(MA(C,5),1) AND X1 AND X2 AND X3;
X5:=EVERY(DIF>0,10) AND REF(MACD<0,1);
X6:=MACD>0 AND C>REF(C,1) AND H/C<1.015;
X7:=C>MA(C,5) AND REF(MACD>0,5);
X8:=REF(COUNT(MACD<0,5)>=2,1) AND C>O;
X4 AND X5 AND X6 AND X7 AND X8;