主力净买:= EMA(CLOSE,68) - EMA(CLOSE,170);
选股指标公式:= EMA(主力净买,90);
MACD := 2*(主力净买-选股指标公式);
A:=MACD;{通达信公式-通达信指标www.gs6699.com}
G:=MA(MACD,2);
J:=MA(MACD,3);
ccdss1:=MA(MACD,5);
STICKLINE(CROSS(MA(A,1),G),0.05,0,1,0),COLORWHITE,LINETHICK2;
ccdss2:=IF(YEAR>=2018 AND MONTH>=11 AND DAY>=1,0,1);
ccdss3:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;
BB:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;
CC:=EMA(ccdss3,2);
DD:=EMA(BB,5);
ccssd14:=MAX(EMA(ccdss3,2)-EMA(BB,5),0)*1.2;
ccssd15:=EMA(ccssd14,5);
SS:=EMA(ccssd15,2);
ddd1:=(ccssd15-SS)/10*ccdss2;
ddd2:ccssd15*ccdss2,STICK,COLORFF00FF;
A10:=ddd2,LINETHICK1 ;
B:MA(A10,3),COLORYELLOW,LINETHICK2;
ddd3:=MA(B,2)*2-B;
STICKLINE(B>ddd3,1.5*B,ddd3,3,0),COLOR0000FF;
STICKLINE(B<ddd3,1.5*B,ddd3,3,0),COLORBLUE;
STICKLINE(ccssd15>REF(ccssd15,1) AND ccdss2,ccssd15,0,2,0),COLOR0099FF;
STICKLINE(ccssd15>REF(ccssd15,1) AND ccdss2,ccssd15,SS,3.5,0),COLORYELLOW;
STICKLINE(ccssd15<REF(ccssd15,1) AND ccdss2,0,ccssd15,2,0),COLORGREEN;
STICKLINE(ccssd15<REF(ccssd15,1) AND ccdss2,ccssd15,SS,3.5,0),COLORFFCC33;
ddd4:=EMA((C/MA((2*C+H+L)/4,8)-1)*100,3);0;