kdj高低点优化指标(源码 副图 通达信 贴图)
分享个自己用的KDJ优化指标。其实市场上很多五花八门的指标都是从最传统的指标改变优化而来,每个人不要贪多,只要掌握这些传统的指标3-4个足够平时交易所用,话不多说直接上图
根据传统指标KDJ优化而来
①有高低点判断,红色三角形买,绿色三角形卖。
②有底部区域和顶部区域
③有短期连续上升或连续下跌提示
源码
DRAWGBK(O C,RGB(40,40,40),RGB(0,0,40),0,'01',0); {背景不要可删除}
{传统KDJ}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),COLORWHITE,LINETHICK1;
D:SMA(K,3,1),COLORYELLOW,LINETHICK1;
J:3*K-2*D,COLORMAGENTA,LINETHICK2;
IF(J =90,J,DRAWNULL),COLORGREEN,LINETHICK2;
IF(J =0,J,DRAWNULL),COLORRED,LINETHICK2;
正差:J REF(J,1);
STICKLINE( 正差,-18,-15,3,0 ),COLORRED;
负差:J REF(J,1);
STICKLINE( 负差,-18,-15,3,0 ),COLORGREEN;
DRAWTEXT(ISLASTBAR,J,' J'),COLORMAGENTA;
清仓:100,POINTDOT,COLORGREEN,LINETHICK2;
顶部:90,COLORGREEN,LINETHICK1;
底部:0,COLORRED,LINETHICK2;
STICKLINE(J 0,J,0,1,0),COLORRED,LINETHICK1;
STICKLINE(J 100,J,100,1,0),COLORGREEN,LINETHICK1;
抄底:=REF(J,1) 0 AND J
DRAWICON(抄底,90,38);
逃顶:=REF(J,1) 100 AND J
DRAWICON(逃顶,0,39);