创业板N连扳科创板通用通达信公式 源码附图
D2:=IF(NAMELIKE('S'),0,1);
D3:=IF(NAMELIKE('*'),0,1);
{去掉停牌}
去掉:=D2 AND D3 ;
VER1:=1200823;
BK:=IF(INBLOCK('科创板'),0.2,IF(INBLOCK('创业板') AND DATE>VER1,0.2 ,IF(INBLOCK('ST板块'),0.05,0.1)));
涨停:=C>=ZTPRICE(REF(C,1),BK) AND C=H;
XG:EVERY(涨停,2) AND COUNT(涨停,3)=2 AND 去掉 AND BARSCOUNT(CLOSE)>20 AND DYNAINFO(4)>0 ;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
D2赋值:IF(NAMELIKE('S'),0,1)
D3赋值:IF(NAMELIKE('*'),0,1)
{去掉停牌}
去掉赋值:D2 AND D3
VER1赋值:1200823
BK赋值:IF(INBLOCK('科创板'),0.2,IF(INBLOCK('创业板') AND DATE>VER1,0.2 ,IF(INBLOCK('ST板块'),0.05,0.1)))
涨停赋值:C>=ZTPRICE(1日前的C,BK) AND C=H
输出XG:涨停最近2日一直存在 AND 统计3日满足涨停的天数=2 AND 去掉 AND 收盘价的有效数据周期数>20 AND 开盘价>0