N字上攻形态该形态上涨几率大通达信指标 副图 源码附图
XA_1:=1200630;
XA_2:=DATE;
XA_3:=IF(DATE<=XA_1,1,1);
XA_4:=IF(DYNAINFO(17)>0 AND DYNAINFO(4)>0,1,0);
XA_5:=IF(NAMELIKE(1),0,1);
XA_6:=IF(NAMELIKE(2),0,1);
XA_7:=IF(INBLOCK(3) OR INBLOCK(4),0,1);
XA_8:=BARSCOUNT(CLOSE)>28;
XA_9:=IF(CODELIKE(5),0,1);
XA_10:=FINANCE(33)>0;
XA_11:=XA_4 AND XA_5 AND XA_6 AND XA_7 AND XA_10 AND XA_8 AND XA_9;
XA_12:=MA(CLOSE,20);
XA_13:=XA_12+2*STD(CLOSE,20);
XA_14:=XA_12-2*STD(CLOSE,20);
XA_15:=crOSS(CLOSE,XA_13);
XA_16:=CROSS(XA_13,CLOSE);
XA_17:=REF(BArslAST(XA_15),1);
XA_18:=REF(BARSLAST(XA_16),1);
XA_19:=REF(COUNT(CLOSE< XA_13,3)=3,1);
N字上攻选股:COUNT(XA_15,20)=2 AND COUNT(XA_16,20)=1 AND XA_19 AND XA_15 AND XA_3 AND XA_11;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
XA_1赋值:1200630
XA_2赋值:DATE
如果DATE<=XA_1返回1否则返回1
XA_4赋值:IF(DYNAINFO(17)>0 AND 开盘价>0,1,0)
XA_5赋值:IF(NAMELIKE(1),0,1)
XA_6赋值:IF(NAMELIKE(2),0,1)
XA_7赋值:IF(INBLOCK(3) OR INBLOCK(4),0,1)
XA_8赋值:收盘价的有效数据周期数>28
XA_9赋值:IF(CODELIKE(5),0,1)
XA_10:=FINANCE(33)>0
XA_11:=XA_4 AND XA_5 AND XA_6 AND XA_7 AND XA_10 AND XA_8 AND XA_9
XA_12:=收盘价的20日简单移动平均
XA_13:=XA_12+2*收盘价的20估算标准差
XA_14:=XA_12-2*收盘价的20估算标准差
XA_15:=收盘价上穿XA_13
XA_16:=XA_13上穿收盘价
XA_17:=REF(上次XA_15距今天数,1)
XA_18:=REF(上次XA_16距今天数,1)
XA_19:=1日前的统计3日满足收盘价< XA_13的天数=3
输出N字上攻选股:统计20日满足XA_15的天数=2 AND 统计20日满足XA_16的天数=1 AND XA_19 AND XA_15 AND XA_3 AND XA_11