DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2,COLORSTICK;
STICKLINE(MacD>0,0,MACD,-1,0),COLORMAGENTA;
STICKLINE(MACD<0,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);