dif:ema(C,6)-EMA(C,13),COLORBLacK;
DEA:EMA(DIF,4),LINETHICK2,COLORLIMAGENTA;
IF(DEA<REF(DEA,1),DEA,DRAWNULL),LINETHICK2,COLORLIGRAY;
macd:(DIF-DEA)*2,COLORSTICK;
IF(DIF>=DEA,DIF,DRAWNULL),LINETHICK2,COLORWHITE;
DRAWTEXT(crOSS(DIF,DEA) AND DIF<0,DEA-0.1,'买'),COLORBLUE;