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
STICKLINE(MACDV<0,0,MACDV,2,0),COLORFFCC33;
STICKLINE(MACDV<0 AND MACDV>REF(MACDV,1),0,MACDV,3,0),coloryellow;