{凤尾选}
X:=REF(((HHV(HIGH,55)-LLV(LOW,55))/LLV(LOW,55)),1)<=(25/100) AND CLOSE>=REF(HHV(HIGH,55),1) AND BARSCOUNT(CLOSE)>55;
X1:=ABS(MA(C,10)/MA(C,20)-1)<0.01;
X2:=ABS(MA(C,5)/MA(C,10)-1)<0.01;
X3:=ABS(MA(C,5)/MA(C,20)-1)<0.01;
X4:=O/REF(C,1)<1.01 AND C>O AND MA(C,5)>REF(MA(C,5),1);
X5:=REF(X1 AND X2 AND X3,1) AND MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20);
A:=X AND X4 AND X5;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
A1:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;
A2:=REF(A1,1)<A1;
A3:=A1+6*STD(A1,11);
A4:=REF(A3,1)<A3 AND REF(A3,1)<REF(A3,2);
A5:=MA(C,5)>REF(MA(C,5),1) AND MA(C,10)>REF(MA(C,10),1) AND MA(C,20)>REF(MA(C,20),1);
A7:=REF(C/REF(C,1)<1.01,1);
FF:=EMA(C,3);
MA15:=EMA(C,21);
AA:=CROSS(FF,MA15) AND J>REF(J,1) AND C/REF(C,1)>1.03;
AA1:=REF(J<REF(J,1),1) AND H/C<1.015;
AA2:=CROSS(C,A1) AND A2 AND A4 AND A5 AND A7;
AA3:=C>O AND O/REF(C,1)<1.01 AND REF(C<O OR C>O,2);
AA4:=COUNT(C>O,4)>=2 AND COUNT(C<O,4)>=1;
AA5:=AA AND AA1 AND AA2 AND AA3 AND AA4;
XG:=FILTER(AA5 OR A,5);
X_1:=MA(CLOSE,10);
X_2:=MA(CLOSE,55);
X_3:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
X_4:=FILTER(X_3,10);
X_5:=BARSLAST(X_4);
X_6:=REF(HIGH,X_5+2);
X_7:=REF(HIGH,X_5+1);
X_8:=REF(HIGH,X_5);
X_9:=MAX(X_6,X_7);
X_10:=MAX(X_9,X_8);
X_11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
X_12:=X_5<150;
X_13:=(OPEN-X_10)/X_10*100<30;
X_14:=(CLOSE-LLV(LOW,X_5))/LLV(LOW,X_5)*100<50;
X_15:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
X_16:=VOL/MA(VOL,5)<3.5;
X_17:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
X_18:=X_11 AND X_12 AND X_13 AND X_14 AND X_15 AND X_16 AND X_17;
X_19:=FILTER(X_18,15);
X_20:=(CLOSE-X_2)/X_2<0.1;
X_21:=(CLOSE-X_1)/X_1<0.3;
X_22:=(X_20=1 AND X_21=1)*0.2;
X_23:=(X_22=0 AND REF(X_22,1)=0.2 AND REF(COUNT(X_22=0.2,10)=10,1)=1)*(-0.1);
X_24:=X_23=(-0.1);
X_25:=X_19 OR X_24;
X_27:=VOL/REF(VOL,1)>1.2 AND CLOSE>OPEN OR (LOW>REF(HIGH,1) AND OPEN>CLOSE AND VOL/REF(VOL,1)>1.2);
X_28:=IF(CODELIKE(3) OR (CODELIKE(4) AND DATE>=1200824),CLOSE>=ZTPRICE(REF(CLOSE,1),0.2) AND CLOSE=HIGH,CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH);
X_29:=X_25 AND X_27 AND X_28 AND REF(NOT(X_28),1);
DIF:=MA(CLOSE,10)-MA(CLOSE,50);
DIFMA:=MA(DIF,10);
X_31:=(DIF>DIFMA) AND (REF(DIF,1)<REF(DIFMA,1));
X_32:=X_29 OR X_31;
XGG:X_32 AND XG;