二板、三板后有些股容易成妖,应网友要求找了一个打二板的副图、选股公式供朋友们学习
强势打二板副图源码
X_1:=2;
X_2:=CLOSE =ZTPRICE(REF(CLOSE,1),0.1);
X_3:=COUNT(X_2,X_1)=1 AND X_2;
X_4:=VOL/700000000;
X_5:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);
X_6:=2.5*MAX(X_4,X_5);
X_7:=DMA(CLOSE,X_6);
X_8:=SMA(20*(X_7/REF(X_7,1)-1),2,1);
X_9:=EMA(X_8,2);
X_10:=0.24;
X_11:=CLOSE =REF(CLOSE,1);
X_12:=IF(X_8 X_10 AND X_9 =0.005 AND X_11,1,0);
X_13:=CROSS(X_12,0.5) AND COUNT(X_12 0.5,10)=1;
X_14:=KDJ.J-REF(KDJ.J,1) 30 AND CLOSE/REF(CLOSE,1) 1.043 AND MACD.MACD 0 AND MACD.DEA
X_15:=CLOSE/REF(CLOSE,1) 1.048 AND CLOSE=HIGH AND BETWEEN(FORCAST(VOL,4),0.2*FORCAST(VOL,12),2.1*FORCAST(VOL,12));
X_16:=FILTER(X_15,28)*100 AND LOW REF(CLOSE,1)*0.93;
X_17:=X_14 OR X_16 AND X_13;
X_18:=9;
X_19:=10;
X_20:=CLOSE/REF(CLOSE,1) 1+0.01*X_18;
X_21:=EXIST(CLOSE/REF(CLOSE,1) 1+0.01*X_18,X_19);
X_22:=CLOSE/REF(CLOSE,1) 1+0.01*X_18;
X_23:=IF(X_20+X_21+X_22=3,1,0);
X_24:=(HIGH-CLOSE)/(CLOSE-OPEN) 0.33;
X_25:=CLOSE/REF(CLOSE,1)-1 =0.0502 AND CLOSE REF(CLOSE,1) AND (OPEN-LOW)/(CLOSE-OPEN) =1.48 AND LOW REF(LOW,1) AND LOW REF(LOW,2);
X_26:=CLOSE/REF(CLOSE,1)-1 =0.08;
X_27:=VOL REF(VOL,1)*1.9 AND CLOSE REF(CLOSE,1) AND CLOSE/REF(CLOSE,1)-1 =0.049 AND X_24;
X_28:=CLOSE/REF(CLOSE,1)-1 =0.0502 AND CLOSE REF(CLOSE,1) AND VOL REF(VOL,1) AND VOL REF(VOL,1)*2.5 AND X_24;
X_29:=EMA(2.055*EMA(EMA(HIGH,34),34)-EMA(EMA(LOW,34),34),5);
X_30:=IF(FILTER(X_27 OR X_28 OR X_25 OR X_26 AND X_29 CLOSE,34),1,0) AND X_23;
X_31:=X_17 OR X_30;
X_32:=X_31-X_31*0.14 AND X_3;
X_33:=HIGH=CLOSE;
X_34:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100 =0.93 AND X_33;
X_35:=BARSLAST(X_32);
二板:X_35 AND X_34 AND X_35
强势打二板选股预警源码
X_1:=2;
X_2:=CLOSE =ZTPRICE(REF(CLOSE,1),0.1);
X_3:=COUNT(X_2,X_1)=1 AND X_2;
X_4:=VOL/700000000;
X_5:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);
X_6:=2.5*MAX(X_4,X_5);
X_7:=DMA(CLOSE,X_6);
X_8:=SMA(20*(X_7/REF(X_7,1)-1),2,1);
X_9:=EMA(X_8,2);
X_10:=0.24;
X_11:=CLOSE =REF(CLOSE,1);
X_12:=IF(X_8 X_10 AND X_9 =0.005 AND X_11,1,0);
X_13:=CROSS(X_12,0.5) AND COUNT(X_12 0.5,10)=1;
X_14:=KDJ.J-REF(KDJ.J,1) 30 AND CLOSE/REF(CLOSE,1) 1.043 AND MACD.MACD 0 AND MACD.DEA
X_15:=CLOSE/REF(CLOSE,1) 1.048 AND CLOSE=HIGH AND BETWEEN(FORCAST(VOL,4),0.2*FORCAST(VOL,12),2.1*FORCAST(VOL,12));
X_16:=FILTER(X_15,28)*100 AND LOW REF(CLOSE,1)*0.93;
X_17:=X_14 OR X_16 AND X_13;
X_18:=9;
X_19:=10;
X_20:=CLOSE/REF(CLOSE,1) 1+0.01*X_18;
X_21:=EXIST(CLOSE/REF(CLOSE,1) 1+0.01*X_18,X_19);
X_22:=CLOSE/REF(CLOSE,1) 1+0.01*X_18;
X_23:=IF(X_20+X_21+X_22=3,1,0);
X_24:=(HIGH-CLOSE)/(CLOSE-OPEN) 0.33;
X_25:=CLOSE/REF(CLOSE,1)-1 =0.0502 AND CLOSE REF(CLOSE,1) AND (OPEN-LOW)/(CLOSE-OPEN) =1.48 AND LOW REF(LOW,1) AND LOW REF(LOW,2);
X_26:=CLOSE/REF(CLOSE,1)-1 =0.08;
X_27:=VOL REF(VOL,1)*1.9 AND CLOSE REF(CLOSE,1) AND CLOSE/REF(CLOSE,1)-1 =0.049 AND X_24;
X_28:=CLOSE/REF(CLOSE,1)-1 =0.0502 AND CLOSE REF(CLOSE,1) AND VOL REF(VOL,1) AND VOL REF(VOL,1)*2.5 AND X_24;
X_29:=EMA(2.055*EMA(EMA(HIGH,34),34)-EMA(EMA(LOW,34),34),5);
X_30:=IF(FILTER(X_27 OR X_28 OR X_25 OR X_26 AND X_29 CLOSE,34),1,0) AND X_23;
X_31:=X_17 OR X_30;
X_32:=X_31-X_31*0.14 AND X_3;
X_33:=HIGH=CLOSE;
X_34:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100 =0.93 AND X_33;
X_35:=BARSLAST(X_32);
二板:X_35 AND X_34 AND X_35