{昨日连板数}
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 开幅;
九毛八公式解读
ZTB1赋值:如果模糊匹配品种名称ORNAMELIKE('*ST')ORNAMELIKE('SST')ORNAMELIKE('S*ST')ORNAMELIKE('SST'),返回(收盘价>=计算涨停价ANDC=最高价),否则返回如果(模糊匹配品种代码OR(模糊匹配品种代码ANDDATE>=1200824)),返回(收盘价>=计算涨停价ANDC=最高价),否则返回(收盘价>=计算涨停价ANDC=最高价) CT赋值:条件连续成立次数 连板赋值:2日前的CT 连板2赋值:1日前的CT S1赋值:如果模糊匹配品种名称,返回0,否则返回1 S2赋值:如果模糊匹配品种名称,返回0,否则返回1 S3赋值:量比>0 S4赋值:如果属于某板块,返回0,否则返回1 S5赋值:如果模糊匹配品种名称,返回0,否则返回1 S6赋值:如果属于某板块,返回0,否则返回1 去停ST1赋值:S1 AND S2 AND S3 AND S4 AND S5 AND S6 开幅赋值:开盘价<(1日前的收盘价*0.995) 开换Z赋值:开盘金额/开盘价/自由流通股本(股)*100 输出低吸:连板=1 AND 连板2<1 AND 去停ST1 AND 开换Z>1 AND 开幅