通达信虚拟KDJ副图指标 提前金叉效果 源码 贴图
2023-06-27 10:02:00来源:本站整理浏览:849
指标介绍:提前金叉效果,把快要金叉的KDJ指标延申后提前金叉。
K1:=KDJ.K#DAY;
D1:=KDJ.D#DAY;
J1:=KDJ.J#DAY;
K:IF(CURRBARSCOUNT>1,REFX(K1,1),DRAWNULL);
D:IF(CURRBARSCOUNT>1,REFX(D1,1),DRAWNULL);
J:IF(CURRBARSCOUNT>1,REFX(J1,1),DRAWNULL);
K2:=CONST(IF(K1-REF(K1,1)>0,ABS(K1-REF(K1,1)),0-ABS(K1-REF(K1,1))));
K3:=IF(ISLASTBAR,CONST(K1)+K2,DRAWNULL);
D2:=CONST(IF(D1-REF(D1,1)>0,ABS(D1-REF(D1,1)),0-ABS(D1-REF(D1,1))));
D3:=IF(ISLASTBAR,CONST(D1)+D2,DRAWNULL);
J2:=CONST(IF(J1-REF(J1,1)>0,ABS(J1-REF(J1,1)),0-ABS(J1-REF(J1,1))));
J3:=IF(ISLASTBAR,CONST(J1)+J2,DRAWNULL);{公式网WWW.GPXIAZAI.COM}
DRAWLINE(CURRBARSCOUNT=2,K,ISLASTBAR,K3,0),COLORWHITE,DOTLINE;
DRAWLINE(CURRBARSCOUNT=2,D,ISLASTBAR,D3,0),COLORYELLOW,DOTLINE;
DRAWLINE(CURRBARSCOUNT=2,J,ISLASTBAR,J3,0),COLORMAGENTA,DOTLINE;
D1:=KDJ.D#DAY;
J1:=KDJ.J#DAY;
K:IF(CURRBARSCOUNT>1,REFX(K1,1),DRAWNULL);
D:IF(CURRBARSCOUNT>1,REFX(D1,1),DRAWNULL);
J:IF(CURRBARSCOUNT>1,REFX(J1,1),DRAWNULL);
K2:=CONST(IF(K1-REF(K1,1)>0,ABS(K1-REF(K1,1)),0-ABS(K1-REF(K1,1))));
K3:=IF(ISLASTBAR,CONST(K1)+K2,DRAWNULL);
D2:=CONST(IF(D1-REF(D1,1)>0,ABS(D1-REF(D1,1)),0-ABS(D1-REF(D1,1))));
D3:=IF(ISLASTBAR,CONST(D1)+D2,DRAWNULL);
J2:=CONST(IF(J1-REF(J1,1)>0,ABS(J1-REF(J1,1)),0-ABS(J1-REF(J1,1))));
J3:=IF(ISLASTBAR,CONST(J1)+J2,DRAWNULL);{公式网WWW.GPXIAZAI.COM}
DRAWLINE(CURRBARSCOUNT=2,K,ISLASTBAR,K3,0),COLORWHITE,DOTLINE;
DRAWLINE(CURRBARSCOUNT=2,D,ISLASTBAR,D3,0),COLORYELLOW,DOTLINE;
DRAWLINE(CURRBARSCOUNT=2,J,ISLASTBAR,J3,0),COLORMAGENTA,DOTLINE;
- 上一篇公式:通达信庄操盘换手率副图指标 源码 贴图
- 下一篇公式:通达信庄进妖股主图指标 源码 贴图