以下是通达信反转抓板预警预警源码
{预警股票粗选}
{每天从沪深A股选出需要预警监控的股票至预警监控文件夹}
跌幅:=BETWEEN((C-REF(C,1))/REF(C,1)*100,-5,-7);
去除大盘股:=CAPITAL/1000000>=0.5 AND CAPITAL/1000000<=50; {流通盘取0.5亿至16亿}
去除高低价:=DYNAINFO(7)>3;{股价取大于3元}
去除停牌ST:=NOT(NAMELIKE('S') OR NAMELIKE('ST') OR NAMELIKE('*')) AND DYNAINFO(17)>0;
粗选:去除高低价 AND 去除大盘股 AND 去除停牌ST AND 跌幅;
{反转抓板预警}
{预警指标}
XG:CROSS(C,REF(C,2)) AND CROSS(C,REF(O,1));