通达信肉肉低吸选股指标 早盘竞价期间选昨日强势股低吸 源码附图
{昨日连板数}
ZTB1:=IF(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('SST')
OR NAMELIKE('S*ST') OR NAMELIKE('S ST') ,(C>=ZTPRICE(REF(CLOSE,1),0.0495) AND C=H),
IF((CODELIKE('688') OR (CODELIKE('300') AND DATE>=1200824)),(C>=ZTPRICE(REF(CLOSE,1),0.195) AND C=H)
,(C>=ZTPRICE(REF(CLOSE,1),0.095) AND C=H)));
CT:=BARSLASTCOUNT(ZTB1);
连板:=REF(CT,2);
连板2:=REF(CT,1);
{通达信去掉*、S、ST}
S1:=IF(NAMELIKE('S'),0,1);
S2:=IF(NAMELIKE('*'),0,1);
S3:=DYNAINFO(17)>0;
S4:=IF(INBLOCK('科创板'),0,1);
S5:=IF(NAMELIKE('C'),0,1);
S6:=IF(INBLOCK('创业板'),0,1);
去停ST1:=S1 AND S2 AND S3 AND S4 AND S5 AND S6;
{竞价数值}
开幅:=OPEN<(REF(CLOSE,1)*0.995);
开换Z:=DYNAINFO(15)/O/FINANCE(46)*100;
低吸:连板=1 AND 连板2<1 AND 去停ST1 AND 开换Z>1 AND 开幅;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{昨日连板数}
ZTB1赋值:IF(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('SST')
OR NAMELIKE('S*ST') OR NAMELIKE('S ST') ,(C>=ZTPRICE(1日前的收盘价,0.0495) AND C=H),
IF((CODELIKE('688') OR (CODELIKE('300') AND DATE>=1200824)),(C>=ZTPRICE(1日前的收盘价,0.195) AND C=H)
,(C>=ZTPRICE(1日前的收盘价,0.095) AND C=H)))
CT赋值:BARSLASTCOUNT(ZTB1)
连板赋值:2日前的CT
连板2:=1日前的CT
{通达信去掉*、S、ST}
S1赋值:IF(NAMELIKE('S'),0,1)
S2赋值:IF(NAMELIKE('*'),0,1)
S3赋值:DYNAINFO(17)>0
S4赋值:IF(INBLOCK('科创板'),0,1)
S5赋值:IF(NAMELIKE('C'),0,1)
S6赋值:IF(INBLOCK('创业板'),0,1)
去停ST1赋值:S1 AND S2 AND S3 AND S4 AND S5 AND S6
{竞价数值}
开幅赋值:开盘价<(1日前的收盘价*0.995)
开换Z赋值:开盘金额/O/FINANCE(46)*100
输出低吸:连板=1 AND 连板2<1 AND 去停ST1 AND 开换Z>1 AND 开幅