以下是通达信改编KDJ副图指标不含选股
N1:=IF(N=0,26,IF(N=1,8,IF(N=2,14,9)));
M1:=IF(N=0,2, IF(N=1,3,IF(N=2,24,3)));
M2:=IF(N=0,2, IF(N=1,3,IF(N=2,4,3)));
RSV:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
J:IF(N=0,3*D-2*K,3*K-2*D);
DRAWBAND(D,RGB(255,0,0),J,RGB(0,255,255));
DRAWBAND(K,RGB(255,255,0),D,RGB(0,0,255));
NOTEXT2:=20,DOTLINE,COLORLIGRAY;
NOTEXT5:=50,DOTLINE,COLORLIGRAY;
NOTEXT8:=80,DOTLINE,COLORLIGRAY;