WB1:=(O-REF(C,1))/REF(C,1)*100< 3;
WB2:=(C-REF(C,1))/REF(C,1)*100< 5;
WB3:=(C-REF(C,1))/REF(C,1)*100>2;
WB4:=(REF(C,1)-REF(C,2))/REF(C,2)*100< 5;
WB5:=(C-REF(C,29))/REF(C,29)*100< 55;
WB6:=(H-C)/REF(C,1)*100< 4.3;
VOLUME:=VOL;
MAVOL1:=MA(VOLUME,120);
A8:=VOL>MAVOL1*1.2;
A65:=FINANCE(40)< 200*100000000;
A66:=FINANCE(40)>10*100000000;
去ST:=NOT(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S'));
A88:=(REF(HHV(C,12),1)-REF(LLV(C,12),1))/REF(LLV(C,12),1)*100< 18;
N1:=7;
N2:=27;
RSV1:=(CLOSE-LLV(LOW,N2))/(HHV(HIGH,N2)-LLV(LOW,N2))*100;
RSV1A:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
K1:=SMA(RSV1,5,1);
D1:=SMA(K1,5,1);
J1:=3*K1-2*D1;
AA1:=EMA(J1,5);
AA2:=REF(AA1,1);
RSV2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K2:=SMA(RSV2,3,1);
D2:=SMA(K2,3,1);
J2:=3*K2-2*D2;
BB1:=EMA(J2,5);
BB2:=REF(BB1,1);
DD:=AA1>AA2 AND BB1>BB2;
LC:=REF(CLOSE,1);
WRSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
G:=CROSS(WRSI,50);
长上影:=C/H<=0.96 AND C/O>=0.98;
放量阳:=C/REF(C,1)>=1.04 AND C>O AND VOL/REF(VOL,1)>=1.8;
长上影选股:=WB1 AND WB2 AND WB3 AND WB4 AND WB6 AND WB5 AND A8 AND A65 AND A66 AND A88 AND 去ST AND 0.35>DYNAINFO(37) AND DYNAINFO(37)>0.03 AND G AND COUNT(长上影,90)>=2 AND C=HHV(C,3);
放量阳选股:=WB1 AND WB2 AND WB3 AND WB4 AND WB6 AND WB5 AND A8 AND A65 AND A66 AND A88 AND 去ST AND 0.35>DYNAINFO(37) AND DYNAINFO(37)>0.03 AND G AND COUNT(放量阳,90)>=2 AND C=HHV(C,3);
尾盘选股:长上影选股 OR 放量阳选股;