用数字表示的DIF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIF,9);MACD:(DIF-DEA)*2,COLORSTICK;红面积:SUM(MACD,BARSLAST(MACDvO)*(MACD0),COLOROOOOFF,NODRAW;绿面积:SUM(MACD,BARSLAST(MACDO)*(MACDO),COLORFFFFOO,NODRAW送你个自写的缠中说禅的macd指标我编制的通达信公式是这样的:参数:short默认是12,范围你自己定(下同)long默认是26;mid默认是9;K默认是0,范围0-1,0是显示均线面积,1是显示macd面积MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:=EMA(DIF,MID);MACD:=(DIF-DEA)*2,COLORSTICK;DIFF:=SUM(MA1-MA2,0);SUMMACD:=SUM(MACD,0);W1