改编经典MACD(源码、 副图、 通达信、贴图 )
源码:
DIF:EMA(C,6)-EMA(C,13),COLORBLACK;
DEA:EMA(DIF,4),LINETHICK2,COLORMAGENTA;
IF(DEA REF(DEA,1),DEA,DRAWNULL),LINETHICK2,COLORBLACK;
MACD:(DIF-DEA)*2,COLORSTICK;
IF(DIF =DEA,DIF,DRAWNULL),LINETHICK2,COLORRED;
DRAWTEXT(CROSS(DIF,DEA) AND DIF 0,DEA-0.1,'买'),COLORYELLOW;