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;