DIFF:=(EMA(C,12)-EMA(C,26))/EMA(C,26)*1000,NODRAW;DEA:=EMA(DIFF,9),COLOR000000;DRAWBAND(DIFF+50,RGB(155,50,50),EMA(DIFF+50,9),RGB(0,50,150));IF(C,EMA(DIFF+50,9),DRAWNULL),COLORFFFFFF,LINETHICK1;IF(C,DIFF+50,DRAWNULL),COLORRED,LINETHICK1;IF(DIFF<=REF(DIFF,1),DIFF+50,DRAWNULL),COLORFFF000;:2*(DIFF-DEA)+50,NODRAW;STICKLINE(MACD
[50,50,MACD,2,1),COLORCYAN;STICKLINE(MACD][REF(MACD,1)AND MACD<50>REF(MACD,1)AND MACD>50,50,MACD,2,1),COLORLIMAGENTA;50,DOTLINE,COLORWHITE;20,COLORYELLOW;80,COLORWH
]