N 2.00 90.00 9.00
M1 2.00 30.00 3.00
M2 2.00 30.00 3.00
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;
介入:IF(K<10,100,0);
IF(J<0,J,DRAWNULL),COLORGREEN,LINETHICK2;
IF(K>90,K,DRAWNULL),COLOR0000FF,LINETHICK2;
IF(D>85,D,DRAWNULL),COLORFFFF11,LINETHICK2;
DRAWICON(CROSS(J,1),J,1);
DRAWICON(K>80 AND D>80 AND CROSS(D,K),D,2);
0,COLORRED,LINETHICK2;20,COLORLIMAGENTA;{50,COLORWHITE;}
80,COLORBLUE;100,COLORGREEN,LINETHICK2;
DRAWTEXT(ISLASTBAR,0,'高安全區(qū)'),COLORRED;
DRAWTEXT(ISLASTBAR,20,'安 全 區(qū)'),COLORLIMAGENTA;
DRAWTEXT(ISLASTBAR,80,'風 險 區(qū)'),COLORBLUE;
DRAWTEXT(ISLASTBAR,100,'高風險區(qū)'),COLORGREEN;
DRAWICON(CROSS(J,0)AND K>=REF(K,1),J,1);
DRAWICON(CROSS(J,20)AND K>=REF(K,1),J,1);
DRAWICON(CROSS(100,J)AND K<=REF(K,1),J,2);
DRAWICON(CROSS(80,J)AND K<=REF(K,1)<100,J,2);
DRAWICON(CROSS(K,D),K,25);
DRAWICON(CROSS(D,K),D,27);
KDJ指標在20以上金叉注意買入,當J值達到高峰險區(qū)注意了結。
通達信選股公式原碼:
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;
COUNT(J<0,8)>=3 AND CROSS(J,1) AND K>=REF(K,1);
特別提示:不要忘了填參數(shù)