DIFF: EMA(CLOSE,12) - EMA(CLOSE,26),colorblue,LINETHICK2;
DEA1:=EMA(DIFF,9);0.10,colorblue,LINETHICK2;
MACD: 2*(DIFF-DEA1)*60,LINETHICK0;
s1:=MACD<REF(MACD,1)AND MACD>0,colorblue;
s2:=MACD<REF(MACD,1)/2 AND MACD<0;
STICKLINE(MACD>=0,MACD,0,8,1),colorred;
STICKLINE(s1,0,MACD,8,1),COLOR00ffff;