股旁网解答:
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
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);