KDJ彩色指标公式,网上找的一个指标,测试好不好用。
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:SMA(RSV,3,1); 升:IF(K>REF(K,1),K,DRAWNULL),COLOR0000FF,LINETHICK1; 降:IF(K<REF(K,1),K,DRAWNULL),COLORFF8000,LINETHICK1; D:SMA(K,3,1); 涨:IF(D>REF(D,1),D,DRAWNULL),COLOR8000FF,LINETHICK1; 跌:IF(D<REF(D,1),D,DRAWNULL),COLORE3E300,LINETHICK1; J:3*K-2*D; 上:IF(J>REF(J,1),J,DRAWNULL),COLORFF00FF,LINETHICK1; 下:IF(J<REF(J,1),J,DRAWNULL),COLOR00FF00,LINETHICK1; DRAWICON(CROSS(K,d),d,buy); DRAWICON(CROSS(d,k),k,sell); VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1); VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1); VAR3:=EMA(VAR2,10); VAR4:=LLV(LOW,33); VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3); 主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),colorred,NODRAW; STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0 ),colorred; 洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),colorgreen,NODRAW; STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),colorgreen; IF(K<REF(K,1),K,DRAWNULL),colorgreen,LINETHICK1; IF(D<REF(D,1),D,DRAWNULL),colorcyan,LINETHICK1; IF(J<REF(J,1),J,DRAWNULL),COLORFFFF00,LINETHICK1; IF(K>REF(K,1),K,DRAWNULL),colorred,LINETHICK1; IF(D>REF(D,1),D,DRAWNULL),coloryellow,LINETHICK1; IF(J>REF(J,1),J,DRAWNULL),COLORFF00FF,LINETHICK1; IF(J>100,J,DRAWNULL),coloryellow,LINETHICK2; {" 均线系统";} N1:=5; N2:=10; N3:=20; N4:=30; EMA7:=EMA(C,7); BBI:=(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4; 过渡:IF(BBI,-10,DRAWNULL),colorwhite,LINETHICK9; 持股:IF(C>BBI AND BBI>REF(BBI,1),-10,DRAWNULL), colorred,LINETHICK9; 持币:IF(C<=BBI AND BBI<=REF(BBI,1),-10,DRAWNULL),colorgreen,LINETHICK9;
|
阅读:502 评论:0
声明:站内所有文章、公式均来自互联网或网友分享提供,如侵犯您的权利请告知,我们会在24小时内及时删除!
【电脑版】 【回到顶部】