编写要求:
股价在10-25元内收盘价在5日均线上选股, 去除ST, 流通盘小于20亿.
公式在线网解答:
ST:=IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1);
S2:=(CAPITAL/100)/10000<=20;
S3:=DYNAINFO(4)>0;
S4:=ST AND S2 AND S3;
股价:=BETWEEN(CLOSE,10,25) AND CAPITAL/1000000<20;
去掉ST股:=COUNT(ABS(H-L)/REF(C,1)>0.11,120) AND COUNT(C/REF(C,1)>1.055,120);
去停牌:S4 AND 股价 AND CROSS(C,MA(C,5));