九毛八公式指标
源码如下: 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(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); 添加条件一:KDJ在80和20的位置加两条横线 添加条件二:当今日KDJ的K值比昨天的K值大于或等于10就用红箭头在副图上显示出来。
公式模块:
N:=9;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,LINETHICK2; K:SMA(RSV,3,1),LINETHICK1; D:SMA(K,3,1),LINETHICK1; J:3*K-2*D,COLORFF00FF,LINETHICK1; IF(J<0,J,DRAWNULL),COLORGREEN,LINETHICK2; IF(K>90,K,DRAWNULL),COLOR0000FF,LINETHICK2; IF(D>85,D,DRAWNULL),COLORFFFF11,LINETHICK2; DRAWICON(K>REF(K,1) OR K=10,K,1); DRAWICON(K>80 AND D>80 AND crOSS(D,K),D,2); 20,COLORRED; 80,COLORGREEN;