把这个同花顺的KDJ公式改成通达信可用
2019/12/9 18:47:26
公式编写说明:
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,LINETHICK2;K:SMA(RSV,M1,1),LINETHICK1;D:SMA(K,M2,1),LINETHICK1;J:3*K-2*D,COLORFF00FF,LINETHICK1;FILLRGN(j,0,j<0,RGB(255,255,0));FILLRGN(j,90,j>90,RGB(255,0,0));DRAWICON(CROSS(J,1),J,'buy');DRAWICON(K>90 AND D>80 AND CROSS(D,K),D,'sell');n=9 m1=3 m2=3很直观,最好效果相同,先谢过。
公式源码回答:
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,LINETHICK2;
K:SMA(RSV,3,1),LINETHICK1;
D:SMA(K,3,1),LINETHICK1;
J:3*K-2*D,COLORFF00FF,LINETHICK1;
NN:=IF(J>90,J,DRAWNULL);
OK:=IF(J<0,J,DRAWNULL);
DRAWBAND(OK,RGB(250,250,0),J,RGB(0,0,0));
DRAWBAND(NN,RGB(250,0,0),J,RGB(0,0,0));
DRAWICON(CROSS(J,1),J,1);
DRAWICON(D>80 AND CROSS(D,K),D,2);
投股票 网 ww w.tou18.cn
股市公式下载推荐