DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
macd:(DIF-DEA)*2,COLORSTICK;
STICKLINE((MacD>REF(MACD,1) AND MACD>0),0,MACD,0.2,0),COLORRED;
STICKLINE((MACD0),0,MACD,0.2,0),COLORFF00FF;
STICKLINE((MACD>REF(MACD,1) AND MACD<0),0,MACD,0.2,0), COLOR00FF00;
STICKLINE((MACD
B1:= MACD>REF(MACD,1) AND REF(MACD,1)
B2:=MACDREF(MACD,2);
DRAWICON(crOSS(DEA,DIF),DEA+0.05,2);
DRAWICON(CROSS(DIF,DEA),DEA-0.05,1);
bbd1:=IF(MACD>=REF(MACD,1),MACD,0);
BBD2:=IF(MACD