DIF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=2*(DIF-DEA);XG:REF(MACD,1)>N AND REF(MACD,1)+M<REF(MACD,2) AND MACD>REF(MACD,1)+M;参数设置:N:MACD波谷值(-3--4)M:前两个MACD的差值,(0.01--0.05)我一般选0.02一用就有惊喜哦