B1:=EMA(C,240);
B2:=EMA(C,520);
B3:=B1-B2;
WDIF:EMA(C,240)+B3,LINETHICK1;
IF(WDIF =REF(WDIF,1),WDIF,DRAWNULL),COLORRED,LINETHICK1;
IF(WDIF =REF(WDIF,1),WDIF,DRAWNULL),COLORBLUE,LINETHICK2;
WDEA:EMA(WDIF,180),COLORGREEN,LINETHICK1;
ZB1:=EMA(C,60);
ZB2:=EMA(C,130);
ZB3:=ZB1-ZB2;
ZDIF:=EMA(C,60)+ZB3,LINETHICK2,COLORF00FF0;
ZDEA:=EMA(ZDIF,45),COLORGREEN,LINETHICK1;
ZMACD:=ZDIF*2-ZDEA;
Z平滑:SMA(ZMACD,3,1);
DRAWBAND(ZMACD,RGB(225,25,55),Z平滑,RGB(25,225,55));
MACD:=WDIF*2-WDEA;
平滑:SMA(MACD,3,1);
DRAWBAND(MACD,RGB(225,255,0),平滑,RGB(61,89,171));
买点:=IF(CROSS(MACD,WDIF),1,0);
DRAWICON(买点,WDIF*1.0,1);
卖点:=IF(CROSS(WDIF,MACD),1,0);
DRAWICON(卖点,WDIF*1.0,2);
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');{www.9m8.cn 九毛八公式指标网}
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORWHITE;