DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DEA:=EMA(DIFF,9);
macd:=2*(DIFF-DEA);
东方趋势:=MA(MacD,1);
MACD1:=(DIFF-DEA)*2;
XG:MACD1>REF(MACD1,1) AND 东方趋势>0 AND REF(东方趋势,1)<=0;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DEA:=EMA(DIFF,9);
macd:=2*(DIFF-DEA);
东方趋势:=MA(MacD,1);
MACD1:=(DIFF-DEA)*2;
XG:MACD1>REF(MACD1,1) AND 东方趋势>0 AND REF(东方趋势,1)<=0;