X_1:=10;
X_2:=5;
X_3:=CLOSE=HHV(CLOSE,X_1);
X_4:=BArslAST(X_3);
底:=LLV(LOW,X_1),COLORFF9933;
顶:=HHV(HIGH,X_1),COLOR0099CC;
前高:=IF(X_4>0,REF(CLOSE,X_4),REF(CLOSE,X_4)),COLORCYAN,LINETHICK2;
MA5:=MA(CLOSE,5),COLORMAGENTA,LINETHICK2;
MA13:=MA(CLOSE,13),COLORGREEN,LINETHICK2;
X_5:=MA(CLOSE,20);
X_6:=MA(CLOSE,30);
X_7:=MA(CLOSE,60);
X_8:=SMA(CLOSE,120,1);
X_9:=crOSS(CLOSE,REF(前高,1));
X_10:=X_9 AND COUNT(X_9,5)=1;
X_11:=BARSLAST(X_10);
X_12:=CROSS(REF(前高,X_11+1),LOW) OR CROSS(REF(前高,X_11),CLOSE);
X_13:=X_12 AND X_11>1;
X_14:=CLOSE-REF(CLOSE,1);
X_15:=100*EMA(EMA(X_14,6),6)/EMA(EMA(Abs(X_14),6),6);
X_16:=CLOSE/REF(CLOSE,1)>=1.01 AND vol/REF(VOL,1)>=1.5 AND VOL>MA(VOL,5) AND REF(VOL,1)/REF(MA(VOL,5),1)<=1.8;
X_17:=((HHV(CLOSE,3)/LLV(CLOSE,X_1)-1)*100<=X_2 AND (HHV(CLOSE,X_1)/LLV(CLOSE,3)-1)*100<=X_2)*0.3;
X_18:=(CLOSE/REF(HHV(CLOSE,X_1),2)<=1.02 AND HIGH/REF(HHV(CLOSE,X_1),2)>=0.98)*0.5;
X_19:=BARSLAST(X_17);
X_20:=BARSLAST(X_18);
X_21:=(X_16 AND X_18 AND X_19<=3 AND X_20<=1)*2;
X_22:=(X_16 AND X_18)*1;
期待:X_22;