DRAWBAND(MA(C,5),RGB(200,200,0),MA(C,10),RGB(0,50,124));
DRAWBAND(H,RGB(10,180,10),MA(C,5),0);
DRAWKLINE(H,O,L,C);
DIF0:=EMA(C,12)-EMA(C,26); DEA0:=EMA(DIF0,9);
DRAWBAND(DIF0,RGB(96,196,96),DEA0,RGB(0,50,124));
MACD0:=(DIF0-DEA0)*2,COLORSTICK;
STICKLINE(MACD0 REF(MACD0,1)AND MACD0 0,0,MACD0,2,1)COLORCYAN;
STICKLINE(MACD0 REF(MACD0,1)AND MACD0 0,0,MACD0,2,0)COLORRED;
? :=REF(REF(MACD0,1),BARSLAST(CROSS(REF(MACD0,1),MACD0)));
STICKLINE(MACD0 ? ,? ,MACD0,2,0)COLORYELLOW;
STICKLINE(MACD0 ? ,? ,MACD0,2,-1)COLORLIGRAY;
STICKLINE(MACD0 ? AND MACD0 REF(MACD0,1),? ,MACD0,2,1)COLORWHITE;
DIF:DIF0,NODRAW; DEA:DEA0,NODRAW;