DIFG:EMA(CLOSE,21)-EMA(CLOSE,34)NODRAW;DEAG:EMA(DIFG,8)NODRAW;D:20*(DIFG-DEAG)COLORSTICK;MARDD:=SMA(MACDD,2,1);STICKLINE(MACDD>REF(MACDD,1) AND MACDD<0>REF(MACDD,1) AND MACDD>0,MACDD,0,0,0)COLORRED;STICKLINE(MACDD
[0,MACDD,0,0,0)COLORCYAN;STICKLINE(MACDD>MARDD,MACDD,MARDD,1,0),COLORRED;STICKLINE(MACDD<MARDD,MACDD,MARDD,1,0),COLORBLUE;
]