DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD: (DIF-DEA)*2,COLORSTICK;
Z:=MACD.DIF#WEEK;
Y:=MACD.DIF#MONTH;
ZK:=KDJ.K#WEEK;
ZD:=KDJ.D#WEEK;
YK:=KDJ.K#MONTH;
YD:=KDJ.D#MONTH;
IF(Z>0 AND Y0 AND Y>0,DEA,DRAWNULL),COLORRED;
IF(ZK>ZD AND YKYD AND ZK>ZD,DIF,DRAWNULL),COLORRED;