VVV:=V/10000;VV:=EMA(VVV,3);
DIFFV:EMA(VV,12)-EMA(VV,26),COLORWHITE;
DEAV:EMA(DIFFV,9)COLORCYAN;
MACDV:=DIFFV-DEAV,COLORSTICK;
STICKLINE(MACDV>=0 AND MACDV>REF(MACDV,1),0,MACDV,3,0),COLORMAGENTA;
STICKLINE(MACDV>=0 AND MACDV<REF(MACDV,1),0,MACDV,2,1),COLORYELLOW;
STICKLINE(MACDV<0,0,MACDV,2,0),COLORFFCC33;
STICKLINE(MACDV<0 AND MACDV>REF(MACDV,1),0,MACDV,3,0),COLORYELLOW;