成交量资金:= EMA(CLOSE,68) - EMA(CLOSE,170);
趋势买卖:= EMA(成交量资金,90);
MACD := 2*(成交量资金-趋势买卖);
A:=MACD;
G:=MA(MACD,2);
J:=MA(MACD,3);
主图指标公式:=MA(MACD,5);{通达信公式-通达信指标www.gs6699.com}
STICKLINE(CROSS(MA(A,1),G),0.05,0,1,0),COLORWHITE,LINETHICK2;
cccc65:=IF(YEAR>=2018 AND MONTH>=11 AND DAY>=1,0,1);
cccc6:=(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(cccc6,2);
DD:=EMA(BB,5);
cccc64:=MAX(EMA(cccc6,2)-EMA(BB,5),0)*1.2;
cccc61:=EMA(cccc64,5);
SS:=EMA(cccc61,2);
vddss1:=(cccc61-SS)/10*cccc65;
vddss2:cccc61*cccc65,STICK,COLORFF00FF;
cccc63:=vddss2,LINETHICK1 ;
B:MA(cccc63,3),COLORYELLOW,LINETHICK2;
cccc62:=MA(B,2)*2-B;
STICKLINE(B>cccc62,1.5*B,cccc62,3,0),COLOR0000FF;
STICKLINE(B<cccc62,1.5*B,cccc62,3,0),COLORBLUE;
STICKLINE(cccc61>REF(cccc61,1) AND cccc65,cccc61,0,2,0),COLOR0099FF;
STICKLINE(cccc61>REF(cccc61,1) AND cccc65,cccc61,SS,3.5,0),COLORYELLOW;
STICKLINE(cccc61<REF(cccc61,1) AND cccc65,0,cccc61,2,0),COLORGREEN;
STICKLINE(cccc61<REF(cccc61,1) AND cccc65,cccc61,SS,3.5,0),COLORFFCC33;
vddss3:=EMA((C/MA((2*C+H+L)/4,8)-1)*100,3);0;