0,COLORWHITE;DIFF:=EMA(CLOSE,21)-EMA(CLOSE,34);DEAA:=EMA(DIFF,8);D:=3.8*(DIFF-DEAA);MARDD:=SMA(MACDD,2,1);STICKLINE(MACDD>MARDD,MACDD,MARDD,3.5,0),COLORMAGENTA;STICKLINE(MACDD
=0,0,MACD2,0.5,0),COLORYELLOW;STICKLINE(MACD2>=0 AND MACD2[REF(MACD2,1),0,MACD2,0.5,0),COLORYELLOW;DIF:EMA(CLOSE,12)-EMA(CLOSE,26)COLORRED,LINETHICK2;DEA:EMA(DIF,9)COLORBLUE,LINETHICK2;DRAWTEXT(ISLASTBAR,DIF,' ←DIF'),COLORRED;DRAWTEXT(ISLASTBAR,DEA,' ←DEA'),COLORBLUE;JCC
]