N天:=20;
N次:=1;
X_1:=IF(DATE<1221120,1,1);
X_2:=DYNAINFO(4)>0;
X_3:=CLOSE/REF(CLOSE,1)>1.097 AND OPEN=CLOSE AND CLOSE=HIGH;
X_4:=CLOSE/REF(CLOSE,1)>1.097 AND CLOSE=HIGH;
X_5:=(HIGH-MAX(CLOSE,OPEN))/MAX(CLOSE,OPEN)*100;
X_6:=HIGH>CLOSE AND VOL>REF(VOL,1) AND HIGH>REF(HIGH,1) AND OPEN>REF(CLOSE,1);
X_7:=HIGH>CLOSE AND VOL>REF(VOL,1) AND HIGH>REF(HIGH,1) AND OPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1);
X_8:=X_1 AND REF(X_4,2) AND REF(X_6 OR X_7,1) AND X_5>4;
选股:COUNT(X_8,N天)>=N次 AND X_2;