RS:=ABS(OPEN-CLOSE);{收盘价与开盘价之差}
BASE:=IF((OPEN>=CLOSE), CLOSE, OPEN);{实体长度限制}
R1:=IF (ABS(RS/BASE)<=M, 1, 0);
R2:=IF ((DYNAINFO(14)<0.08), 1, 0);{涨幅限制8%以内}
R3:=IF((DYNAINFO(4)>0),1,0);{剔除停牌股}
R4:=IF(((NAMELIKE('S')) OR (NAMELIKE('*'))),0,1);{剔除ST股}
IF ((R1 AND R2 AND R3 AND R4), 1, 0);