N:=9;
M1:=3;
M2:=3;
多头线:=EMA(C,1.5);
空头线:=EMA(C,5);
均衡线:=EMA(空头线,5);
VARF1:=COUNT(crOSS(多头线,均衡线),2)=1;
VARF2:=COUNT(CROSS(空头线,均衡线),2)=1;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
E:=(K+D)/2;
中小盘股:=CAPITAL/100000<8;
选股:FILTER(VARF1 AND VARF2,2) AND 中小盘股 AND E<50;