DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);:=(DIF-DEA)*2,COLORSTICK;STICKLINE(MACD>0,0,MACD,-1,0),COLORMAGENTA;STICKLINE(MACD<0 MACD,-1,0),COLORBLUE;{下边标天数}HZZ:=BARSLASTCOUNT(MACD>0);HDS:=MOD(HZZ,2);LZZ:=BARSLASTCOUNT(MACD<0);LDS:=MOD(LZZ,2);DRAWNUMBER(HDS,MACD*1.03,HZZ),DRAWABOVE;DRAWNUMBER(LDS,MACD*1.03,LZZ);