通达信MACD,KDJ共振副图指标公式
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),NODRAW;
DEA:EMA(DIF,MID),NODRAW;
DRAWBAND(DIF,RGB(190,8,240),DEA,RGB(10,58,40));
MACD:=(DIF-DEA)*2,COLORSTICK;
零轴:0 ;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),NODRAW;
D:SMA(K,M2,1),NODRAW;
J:3*K-2*D,NODRAW;
A1:=CROSS(K,D);
B1:=CROSS(D,K);
DRAWICON(CROSS(K,D),DIF*1.00,23);
DRAWICON(CROSS(D,K),DIF*1.00,2);
B4:=CROSS(DIF,DEA) AND CROSS(K,D),COLORRED;
DRAWTEXT(B4,0,'★金叉共振'),COLOR0099FF;
STICKLINE(K>D,DIF,DEA,1,0),COLORRED;
STICKLINE(K<D,DIF,DEA,0.1,1),COLORGREEN;