N:=3;
M:=1;
X9_1:=MAX(MAX(HIGH-LOW,ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
X9_2:=(HIGH+LOW)/2+MA(X9_1,2);
X9_3:=(HIGH+LOW)/2-MA(X9_1,2);
X9_4:=REF(X9_2,BARSLAST(X9_2<=REF(X9_2,1)));
X9_5:=LLV(X9_2,2*1.5);
X9_6:=IF(X9_5!=REF(X9_5,1) AND X9_4<REF(X9_4,1),X9_4,IF(X9_4=X9_5,X9_4,X9_5));
X9_7:=BARSLAST(CROSS(0.5,X9_2=X9_6))+1;
X9_8:=CROSS(COUNT(CROSS(CLOSE,X9_6) OR CROSS(CLOSE,REF(X9_6,2)) AND X9_2>X9_6,X9_7),0.5);
X9_9:=BARSLAST(X9_8);
X9_10:=BARSLAST(CROSS(HHV(X9_3,X9_9+1),CLOSE));
X9_11:=MA(CLOSE,18);
X9_12:=CLOSE>=X9_11*1.004;
X9_13:=X9_11>=REF(X9_11,1);
X9_14:=X9_12 AND X9_13;
X9_15:=IF(CLOSE<OPEN,(CLOSE-LOW)/(HIGH-LOW),0);
B1:=NOT(H=O);
A1:=H>=HHV(H,40) ;
B2:=COUNT(A1,2)=0;
B3:=C>MA(C,20);
X_18:=HIGH/CLOSE>1.03;
X_19:=HIGH/REF(C,1)<1.028;
涨停:=C/REF(C,1)>1.09465 AND C=H;
烂板:= H/REF(C,1)>1.098 AND C<H;
去ST:=NAMELIKE('ST')=0 AND NAMELIKE('*ST')=0 AND NAMELIKE('SST')=0 AND NAMELIKE('S*ST')=0;
去除创业板:=IF(CODELIKE('300'),0,1);
去除科创板:=IF(CODELIKE('688'),0,1);
条件:=NOT(涨停) AND NOT(烂板) AND 去除创业板 AND 去ST AND 去除科创板 AND C>5;
X:CROSS(X9_9,X9_10) AND CLOSE/REF(LLV(LOW,3),1)<1 AND CLOSE<OPEN AND CLOSE!=LOW AND X9_14 AND X9_15>0.03 AND X9_15<0.3
AND 条件 AND B2 AND B1 AND B3 AND X_19
;