X_1:=REF(CLOSE<REF(CLOSE,1),1) AND REF(CLOSE,1)<REF(CLOSE,2) AND CLOSE>=REF(CLOSE,1);
X_2:=REF(REF(CLOSE,1)<REF(CLOSE,2) AND CLOSE>=REF(CLOSE,1),1) AND CLOSE<REF(CLOSE,1);
X_3:=X_1 OR X_2;
X_4:=REF(CLOSE,1)>=REF(CLOSE,2) AND CLOSE<REF(CLOSE,1);
X_5:=CLOSE=REF(CLOSE,1) OR CLOSE=MIN(REF(CLOSE,2),CLOSE);
X_6:=CLOSE>OPEN;
X_7:=X_3 AND X_5 AND COUNT(X_4,2)=0 AND X_6;
选股:X_7;