RC1:=REF(C,1);
涨停率10:=10-1/RC1;
比前涨率:=(C-RC1)*100/RC1;
涨停:= (比前涨率>=涨停率10);
TJ1:=涨停 AND COUNT(涨停,10)=1;{10天内首次涨停}C_MA60:=CROSS(C,MA(C,60));
TJ2:=C_MA60 AND COUNT(C_MA60,30)=1;{30天内第一次冲击60日均线}
N:=60;
SR1:=REF(HIGH,N)=HHV(HIGH,2*N+1);
SR2:=FILTER(SR1,N);
SR3:=BACKSET(SR2,N+1);
HD:=FILTER(SR3,N);
左峰高:=REF(H,BARSLAST(HD));
TJ3:=CROSS(C,左峰高);{第一次穿越60天内峰顶线的股票}
选股: TJ1 OR TJ2 OR TJ3;
{如果改为:选股: TJ1 OR (TJ2 AND TJ3);}
{选出的股票将大为减少!} |