DIF:=EMA(CLOSE,12)-EMA(CLOSE,26),LINETHICK2;
DEA:=EMA(DIF,6),LINETHICK2;
macd:(DIF-DEA)*2,COLORSTICK;
DRAWBAND(DIF,RGB(255,255,0),DEA,RGB(0,255,0));
STICKLINE(MacD>REF(MACD,1),MACD,REF(MACD,1),2,0),COLOR000080;
STICKLINE(MACD>REF(MACD,1),MACD,REF(MACD,1),0.1,0),COLOR0000FF;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,MACD,REF(MACD,1),2,0),COLOR8C008C;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,MACD,REF(MACD,1),0.1,0),COLORFF00FF;
STICKLINE(MACD<REF(MACD,1) AND MACD>0,MACD,REF(MACD,1),2,0),COLOR009D9D;
STICKLINE(MACD<REF(MACD,1) AND MACD>0,MACD,REF(MACD,1),0.1,0),COLOR00FFFF;
STICKLINE(MACD<REF(MACD,1) AND MACD<0,MACD,REF(MACD,1),2,0),COLOR008000;
STICKLINE(MACD<REF(MACD,1) AND MACD<0,MACD,REF(MACD,1),0.1,0),COLOR00FF00;