通达信【涨停首板一进二】副图/选股指标源码 【涨停首板一进二】指标简介:
1、这是一个将涨停首板全部选出的信号;作为首板信号确实不错,但进入二板时增加了一些“安全边际”,使得信号变得较为稀少;还有待优化。
2、可以先使用涨停首板进行选股,第二天集合竞价时进行预警,(预警范围:涨停首板)。 3、指标含流通盘未来,不影响使用,以下举例: ABC4:=(CLOSE-LLV(LOW,ABC1))/(HHV(HIGH,ABC1)-LLV(LOW,ABC1))*100;ABC6:=SMA(ABC5,ABC3,1);{微信公众号:股民指标营地}ABC8:=KDJ.K>KDJ.D AND KDJ.J>KDJ.D AND KDJ.J>KDJ.K;ABC9:=CAPITAL*CLOSE/1000000;ABC10:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;ABC12:=NOT(NAMELIKE(1) OR NAMELIKE(2) OR NAMELIKE(3) OR (4)=0 OR INBLOCK(130) OR INBLOCK(4)) OR BARSCOUNT(CLOSE)>1;ABC13:=ABC9>0 AND ABC9<80;ABC14:=ABC10>9.8 AND ABC10<10.99 AND CLOSE=HIGH;ABC15:=ABC11>2 AND ABC11<22;强势首板:=ABC8 AND ABC12 AND ABC13 AND ABC14 AND ABC15 AND ABC16;CBA2:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1);CBA3:=COUNT(CBA2,CBA1)=1 AND CBA2;CBA5:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);CBA6:=2.5*MAX(CBA4,CBA5);CBA8:=SMA(20*(CBA7/REF(CBA7,1)-1),2,1);CBA11:=CLOSE>=REF(CLOSE,1);CBA12:=IF(CBA8>CBA10 AND CBA9>=0.005 AND CBA11,1,0);CBA13:=CROSS(CBA12,0.5) AND COUNT(CBA12>0.5,10)=1;CBA14:=KDJ.J-REF(KDJ.J,1)>30 AND CLOSE/REF(CLOSE,1)>1.043 AND MACD.MACD>0 AND MACD.DEA>0;CBA15:=CLOSE/REF(CLOSE,1)>1.048 AND CLOSE=HIGH AND BETWEEN(FORCAST(VOL,4),0.2*FORCAST(VOL,12),2.1*FORCAST(VOL,12));CBA16:=FILTER(CBA15,28)*100 AND LOW>REF(CLOSE,1)*0.93;CBA17:=CBA14 OR CBA16 AND CBA13;CBA20:=CLOSE/REF(CLOSE,1)>1+0.01*CBA18;CBA21:=EXIST(CLOSE/REF(CLOSE,1)>1+0.01*CBA18,CBA19);CBA22:=CLOSE/REF(CLOSE,1)>1+0.01*CBA18;CBA23:=IF(CBA20+CBA21+CBA22=3,1,0);CBA24:=(HIGH-CLOSE)/(CLOSE-OPEN)<0.33;CBA25:=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);{微信公众号:股民指标营地}CBA26:=CLOSE/REF(CLOSE,1)-1>=0.08;CBA27:=VOL>REF(VOL,1)*1.9 AND CLOSE>REF(CLOSE,1) AND CLOSE/REF(CLOSE,1)-1>=0.049 AND CBA24;CBA28:=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 CBA24;CBA29:=EMA(2.055*EMA(EMA(HIGH,34),34)-EMA(EMA(LOW,34),34),5);CBA30:=IF(FILTER(CBA27 OR CBA28 OR CBA25 OR CBA26 AND CBA29>CLOSE,34),1,0) AND CBA23;CBA32:=CBA31-CBA31*0.14 AND CBA3;CBA34:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>=0.93 AND CBA33;精选二板:=CBA35 AND CBA34 AND CBA35<=1 AND REF(强势首板,1);{微信公众号:股民指标营地}STICKLINE(强势首板,6,0,2,1),COLORMAGENTA;DRAWTEXT(强势首板,5,'1'),COLORYELLOW;STICKLINE(精选二板,6,0,2,1),COLORRED;DRAWTEXT(精选二板,5,'2'),COLORYELLOW;ABC4:=(CLOSE-LLV(LOW,ABC1))/(HHV(HIGH,ABC1)-LLV(LOW,ABC1))*100;ABC8:=KDJ.K>KDJ.D AND KDJ.J>KDJ.D AND KDJ.J>KDJ.K;ABC9:=CAPITAL*CLOSE/1000000;ABC10:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;ABC12:=NOT(NAMELIKE(1) OR NAMELIKE(2) OR NAMELIKE(3) OR (4)=0 OR INBLOCK(130) OR INBLOCK(4)) OR BARSCOUNT(CLOSE)>1;ABC13:=ABC9>0 AND ABC9<80;ABC14:=ABC10>9.8 AND ABC10<10.99 AND CLOSE=HIGH;ABC15:=ABC11>2 AND ABC11<22;强势首板:ABC8 AND ABC12 AND ABC13 AND ABC14 AND ABC15 AND ABC16;ABC4:=(CLOSE-LLV(LOW,ABC1))/(HHV(HIGH,ABC1)-LLV(LOW,ABC1))*100;ABC6:=SMA(ABC5,ABC3,1);{微信公众号:股民指标营地}ABC8:=KDJ.K>KDJ.D AND KDJ.J>KDJ.D AND KDJ.J>KDJ.K;ABC9:=CAPITAL*CLOSE/1000000;ABC10:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;ABC12:=NOT(NAMELIKE(1) OR NAMELIKE(2) OR NAMELIKE(3) OR (4)=0 OR INBLOCK(130) OR INBLOCK(4)) OR BARSCOUNT(CLOSE)>1;ABC13:=ABC9>0 AND ABC9<80;ABC14:=ABC10>9.8 AND ABC10<10.99 AND CLOSE=HIGH;ABC15:=ABC11>2 AND ABC11<22;强势首板:=ABC8 AND ABC12 AND ABC13 AND ABC14 AND ABC15 AND ABC16;CBA2:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1);CBA3:=COUNT(CBA2,CBA1)=1 AND CBA2;CBA5:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);CBA6:=2.5*MAX(CBA4,CBA5);CBA8:=SMA(20*(CBA7/REF(CBA7,1)-1),2,1);CBA11:=CLOSE>=REF(CLOSE,1);CBA12:=IF(CBA8>CBA10 AND CBA9>=0.005 AND CBA11,1,0);CBA13:=CROSS(CBA12,0.5) AND COUNT(CBA12>0.5,10)=1;CBA14:=KDJ.J-REF(KDJ.J,1)>30 AND CLOSE/REF(CLOSE,1)>1.043 AND MACD.MACD>0 AND MACD.DEA>0;CBA15:=CLOSE/REF(CLOSE,1)>1.048 AND CLOSE=HIGH AND BETWEEN(FORCAST(VOL,4),0.2*FORCAST(VOL,12),2.1*FORCAST(VOL,12));CBA16:=FILTER(CBA15,28)*100 AND LOW>REF(CLOSE,1)*0.93;CBA17:=CBA14 OR CBA16 AND CBA13;CBA20:=CLOSE/REF(CLOSE,1)>1+0.01*CBA18;CBA21:=EXIST(CLOSE/REF(CLOSE,1)>1+0.01*CBA18,CBA19);CBA22:=CLOSE/REF(CLOSE,1)>1+0.01*CBA18;CBA23:=IF(CBA20+CBA21+CBA22=3,1,0);CBA24:=(HIGH-CLOSE)/(CLOSE-OPEN)<0.33;
|