SHORT:=12;
LONG:=26;
MID:=9;
ZF:=(C-REF(C,1))/REF(C,1)*100;
DIF:EMA(ZF,SHORT)-EMA(ZF,LONG),COLORWHITE,LINETHICK1;
DEA:EMA(DIF,MID),COLORYELLOW;
macd:DIF-DEA,COLORSTICK;
上升:IF(DEA>REF(DEA,1),DEA,DRAWNULL),COLORRED,LINETHICK2;
下降:IF(DEA<=REF(DEA,1),DEA,DRAWNULL),COLORGREEN,LINETHICK2;