X_1:=1;

X_2:=1;

X_3:=IF(CLOSE/REF(CLOSE,1)>1+0.01*9+EXIST(CLOSE/REF(CLOSE,1)>1+0.01*9,10)+CLOSE/REF(CLOSE,1)>1+0.01*9=3,1,0);

X_4:=EMA(2.055*EMA(EMA(HIGH,34),34)-EMA(EMA(LOW,34),34),5)>CLOSE;

X_5:=CLOSE/REF(CLOSE,1)-1>=0.08;

X_6:=LOW<REF(LOW,2);

X_7:=LOW<REF(LOW,1);

X_8:=(OPEN-LOW)/(CLOSE-OPEN)>=1.48;

X_9:=CLOSE>REF(CLOSE,1);

X_10:=CLOSE/REF(CLOSE,1)-1>=0.0502;

X_11:=(HIGH-CLOSE)/(CLOSE-OPEN)<0.33;

X_12:=VOL>REF(VOL,1)*2.5;

X_13:=VOL>REF(VOL,1);

X_14:=CLOSE>REF(CLOSE,1);

X_15:=CLOSE/REF(CLOSE,1)-1>=0.0502;

X_16:=(HIGH-CLOSE)/(CLOSE-OPEN)<0.33;

X_17:=CLOSE/REF(CLOSE,1)-1>=0.049;

X_18:=CLOSE>REF(CLOSE,1);

X_19:=VOL>REF(VOL,1)*1.9;

X_20:=IF(FILTER(X_19 AND X_18 AND X_17 AND X_16 OR (X_15 AND X_14 AND X_13 AND X_12 AND X_11) OR (X_10 AND X_9 AND X_8 AND X_7 AND X_6) OR X_5 AND X_4,34),1,0) AND X_3;

X_21:=CLOSE/REF(CLOSE,1)>1.048;

X_22:=CLOSE=HIGH;

X_23:=BETWEEN(FORCAST(VOL,4),0.2*FORCAST(VOL,12),2.1*FORCAST(VOL,12));

X_24:=LOW>REF(CLOSE,1)*0.93;

X_25:=KDJ.J-REF(KDJ.J,1)>30;

X_26:=CLOSE/REF(CLOSE,1)>1.043;

X_27:=MACD.MACD>0;

X_28:=MACD.DEA>0;

X_29:=SMA(20*(DMA(CLOSE,2.5*MAX(VOL/700000000,1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1)))/REF(DMA(CLOSE,2.5*MAX(VOL/700000000,1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1))),1)-1),2,1);

X_30:=EMA(SMA(20*(DMA(CLOSE,2.5*MAX(VOL/700000000,1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1)))/REF(DMA(CLOSE,2.5*MAX(VOL/700000000,1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1))),1)-1),2,1),2);

X_31:=CLOSE>=REF(CLOSE,1);

X_32:=SMA(20*(DMA(CLOSE,2.5*MAX(VOL/700000000,1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1)))/REF(DMA(CLOSE,2.5*MAX(VOL/700000000,1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1))),1)-1),2,1);

X_33:=EMA(SMA(20*(DMA(CLOSE,2.5*MAX(VOL/700000000,1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1)))/REF(DMA(CLOSE,2.5*MAX(VOL/700000000,1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1))),1)-1),2,1),2);

X_34:=CLOSE>=REF(CLOSE,1);

X_35:=FILTER(X_21 AND X_22 AND X_23,28)*100 AND X_24 OR (X_25 AND X_26 AND X_27 AND X_28) AND CROSS(IF(X_29>0.24 AND X_30>=0.005 AND X_31,1,0),0.5) AND COUNT(IF(X_32>0.24 AND X_33>=0.005 AND X_34,1,0)>0.5,10)=1 OR X_20;

X_36:=LOW<HHV(MA((LOW+HIGH+CLOSE)/3,5),13);

X_37:=HIGH>HHV(MA((LOW+HIGH+CLOSE)/3,5),13);

X_38:=CLOSE>REF(CLOSE,1);

X_39:=COUNT(MA((LOW+HIGH+CLOSE)/3,5)>REF(MA((LOW+HIGH+CLOSE)/3,5),1) AND REF(MA((LOW+HIGH+CLOSE)/3,5),1)<REF(MA((LOW+HIGH+CLOSE)/3,5),2),2);

X_40:=NOT(REF(LOW<HHV(MA((LOW+HIGH+CLOSE)/3,5),13) AND HIGH>HHV(MA((LOW+HIGH+CLOSE)/3,5),13) AND CLOSE>REF(CLOSE,1) AND CLOSE>OPEN AND COUNT(MA((LOW+HIGH+CLOSE)/3,5)>REF(MA((LOW+HIGH+CLOSE)/3,5),1) AND REF(MA((LOW+HIGH+CLOSE)/3,5),1)<REF(MA((LOW+HIGH+CLOSE)/3,5),2),2),1));

埋伏:X_36 AND X_37 AND X_38 AND CLOSE>OPEN AND X_39 AND X_40,NODRAW,COLORBLUE;

X_41:=埋伏=X_1 OR X_35=X_2;

X_42:=NOT(NAMELIKE(1) OR NAMELIKE(2) OR NAMELIKE(3)) AND DYNAINFO(4)>1 AND INBLOCK(4)=0;

X_43:=(SUM(VOL*CLOSE,1)/SUM(VOL,1)-EMA(SUM(VOL*CLOSE,1)/SUM(VOL,1),17))*100/(SUM(VOL*CLOSE,1)/SUM(VOL,1));

X_44:=FINANCE(42)>3;

首板:X_44 AND BARSLASTCOUNT(CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH)=1,NODRAW,COLORMAGENTA;

X_45:=BARSLAST((CLOSE/REF(CLOSE,1)-1)*100>9.5);

X_46:=BARSLASTCOUNT(X_43>REF(X_43,1))=1;

换手板:X_35 AND 埋伏 AND X_42 AND X_43>=8,NODRAW,COLORGREEN;

换手板精选:换手板 AND X_43>=8 AND X_46,NODRAW,COLORWHITE;

最后涨停距今数:X_45,NODRAW,COLORYELLOW;

STICKLINE(首板,0.4,0.8,2,0),COLORMAGENTA;

STICKLINE(换手板,1.2,1.6,2,0),COLORGREEN;

STICKLINE(换手板精选,1.6,2,2,0),COLORWHITE;

STICKLINE(埋伏,0,0.4,2,0),COLORBLUE;

STICKLINE(X_35,0.8,1.2,2,0),COLORRED;