TJ1:=MA(C,5) > REF(MA(C,5),1) AND MA(C,120) > REF(MA(C,120),1);
{二连阳}
TJ2:=C > O AND REF(C,1) > REF(O,1);
{10天内有涨停}
TJ3:=COUNT((C-REF(C,1))/REF(C,1)*100>9.5,10)>0;
{10天内涨幅小于10%}
TJ4:=(C-REF(O,10))/REF(O,10)*100<10;
{30天内涨幅小于20%}
TJ5:=(C-REF(O,30))/REF(O,30)*100<20;
选股:TJ1 AND TJ2 AND TJ3 AND TJ4 AND TJ5;