DIFG:EMA(CLOSE,21)-EMA(CLOSE,34)NODRAW;
DEAG:EMA(DIFG,8)NODRAW;
macdD:20*(DIFG-DEAG)COLORSTICK;
MARDD:=SMA(MacDD,2,1);
STICKLINE(MACDD>REF(MACDD,1) AND MACDD<0,MACDD,0,0,0)COLORMAGENTA;
STICKLINE(MACDD
STICKLINE(MACDD>REF(MACDD,1) AND MACDD>0,MACDD,0,0,0)COLORRED;
STICKLINE(MACDD0,MACDD,0,0,0)COLORCYAN;
STICKLINE(MACDD>MARDD,MACDD,MARDD,1,0),COLORRED;
STICKLINE(MACDD