通达信KDJ多周期波段共振副图预警 源码 附图

YK:KDJ.K#MONTH,NODRAW;
YD:KDJ.D#MONTH,NODRAW;
ZK:KDJ.K#WEEK,NODRAW;
X_1:=KDJ.D#WEEK;
X_2:="重要引用.J4#MONTH";
X_3:="重要引用.J4#WEEK";
X_4:=1;
STICKLINE(X_4 AND X_3=1,55,65,5,0),COLOR000088;
STICKLINE(X_4 AND X_3=0,55,65,5,0),COLOR008800;
STICKLINE(X_4 AND X_2=1,45,35,5,0),COLOR000088;
STICKLINE(X_4 AND X_2=0,45,35,5,0),COLOR008800;
K:KDJ.K#DAY,COLORWHITE;
D:KDJ.D#DAY,COLORYELLOW;
J:KDJ.J#DAY,COLORMAGENTA;
DRAWBAND(K,RGB(158,158,0),D,RGB(0,158,158));
X_5:=KDJ.K#DAY>KDJ.D#DAY;
X_6:=X_4 AND X_3=1;
X_7:=X_4 AND X_2=1;
多共振:FILTER(CROSS(X_5 AND X_6 AND X_7 AND REF(ZK,1)<50,0.5),5),NODRAW,COLORYELLOW;
STICKLINE(X_4 AND 多共振=1,45,55,1,0),COLORYELLOW;
X_8:=KDJ.K#DAY<KDJ.D#DAY;
X_9:=X_4 AND X_3=0;
X_10:=X_4 AND X_2=0;
空共振:FILTER(CROSS(X_8 AND X_9 AND X_10 AND REF(ZK,1)>50,0.5),5)*X_4,NODRAW,COLORCYAN;
STICKLINE(空共振=1,45,55,1,0),COLORCYAN;{好股票zbgs3.com整理 同行转载请勿删除}
金叉共振:BARSLAST(REF(KDJ.K#DAY,1)<REF(KDJ.D#DAY,1) AND KDJ.K#DAY>=KDJ.D#DAY)<=1 AND BARSLAST(CROSS(KDJ.K#WEEK,KDJ.D#WEEK))<=5 AND X_2=1 AND REF(ZK,1)<50,NODRAW,COLORRED;
DRAWICON(CROSS(金叉共振,0.1),20,34);
死叉共振:BARSLAST(REF(KDJ.K#DAY,1)>REF(KDJ.D#DAY,1) AND KDJ.K#DAY<=KDJ.D#DAY)<=1 AND BARSLAST(CROSS(KDJ.D#WEEK,KDJ.K#WEEK))<=5 AND X_2=0 AND REF(ZK,1)>50,NODRAW,COLORGREEN;
DRAWICON(CROSS(死叉共振,0.1)*X_4,80,35);



未来函数检测结果如下:
该公式包含未来函数:#MONTH
该公式包含未来函数:#WEEK

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

输出YK:KDJ.K#MONTH,NODRAW
输出YD:KDJ.D#MONTH,NODRAW
输出ZK:KDJ.K#WEEK,NODRAW
X_1赋值:KDJ.D#WEEK
X_2赋值:"重要引用.J4#MONTH"
X_3赋值:"重要引用.J4#WEEK"
X_4赋值:1
当满足条件X_4 AND X_3=1时,在55和65之间画柱状线
当满足条件X_4 AND X_3=0时,在55和65之间画柱状线
当满足条件X_4 AND X_2=1时,在45和35之间画柱状线
当满足条件X_4 AND X_2=0时,在45和35之间画柱状线
输出K:KDJ.K#DAY,画白色
输出D:KDJ.D#DAY,画黄色
输出J:KDJ.J#DAY,画洋红色
DRAWBAND(K,RGB(158,158,0),D,RGB(0,158,158))
X_5赋值:KDJ.K#DAY>KDJ.D#DAY
X_6赋值:X_4 AND X_3=1
X_7赋值:X_4 AND X_2=1
输出多共振:FILTER(CROSS(X_5 AND X_6 AND X_7 AND 1日前的ZK<50,0.5),5),NODRAW,画黄色
当满足条件X_4 AND 多共振=1时,在45和55之间画柱状线
X_8赋值:KDJ.K#DAY X_9赋值:X_4 AND X_3=0
X_10:=X_4 AND X_2=0
输出空共振:FILTER(CROSS(X_8 AND X_9 AND X_10 AND 1日前的ZK>50,0.5),5)*X_4,NODRAW,画青色
当满足条件空共振=1时,在45和55之间画柱状线
输出{好股票ZBGS3.COM整理 同行转载请勿删除} 金叉共振:上次1日前的KDJ.K#DAY<1日前的KDJ.D#DAY AND KDJ.K#DAY>=KDJ.D#DAY距今天数<=1 AND BARSLAST(KDJ.K#WEEK上穿KDJ.D#WEEK)<=5 AND X_2=1 AND 1日前的ZK<50,NODRAW,COLORRED
DRAWICON(金叉共振上穿0.1,20,34)
输出死叉共振:上次1日前的KDJ.K#DAY>1日前的KDJ.D#DAY AND KDJ.K#DAY<=KDJ.D#DAY距今天数<=1 AND BARSLAST(KDJ.D#WEEK上穿KDJ.K#WEEK)<=5 AND X_2=0 AND 1日前的ZK>50,NODRAW,画绿色
DRAWICON(死叉共振上穿0.1*X_4,80,35)

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:指标公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图