通达信国外MACD修改源码+图
P:=13;S:=5;M:=3;
DIFF:EMA(C,S)-EMA(C,P);
DEA:EMA(DIFF,M),COLORRED;
MACD:2*(DIFF-DEA),COLORSTICK;
STICKLINE(DEA<=REF(DEA,1)AND DEA>0,0,DEA,1,0 ),COLORFFBEFF;
STICKLINE(DEA>REF(DEA,1)AND DEA>0,0,DEA,1,0 ),COLORMAGENTA;
STICKLINE(DEA>REF(DEA,1)AND DEA<=0,0,DEA,1,0),COLORDBDD9A;
STICKLINE(DEA<=REF(DEA,1)AND DEA<=0,0,DEA,1,0 ),COLORE2BC3A;
R
R/4,POINTDOT,COLORFFFF00;
R/2,POINTDOT,COLORFFFF00;
R/4*3,POINTDOT,COLORFFFF00;
-R/4,POINTDOT,COLORFFFF00;
-R/2,POINTDOT,COLORFFFF00;
-R/4*3,POINTDOT,COLORFFFF00;
-R,COLORYELLOW,COLORLIBLUE;