DIFF0:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
DEA0:=EMA(DIFF0,9);
macd0:=2*(DIFF0-DEA0);
JQ:=MacD0>REF(MACD0,1)*1.5 AND MACD0>15;
X:=MA(C,3);
AA:=(X-REF(X,1))/REF(X,1)*100;
XG:crOSS(AA,0) AND JQ;
DIFF0:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
DEA0:=EMA(DIFF0,9);
macd0:=2*(DIFF0-DEA0);
JQ:=MacD0>REF(MACD0,1)*1.5 AND MACD0>15;
X:=MA(C,3);
AA:=(X-REF(X,1))/REF(X,1)*100;
XG:crOSS(AA,0) AND JQ;