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,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORWHITE;