分享

通达信【涨停首板一进二】副图/选股指标 源码

 七七八一七 2024-04-24 发布于江苏

通达信【涨停首板一进二】副图/选股指标源码

涨停首板一进二指标简介:

1、这是一个将涨停首板全部选出的信号;作为首板信号确实不错,但进入二板时增加了一些“安全边际”,使得信号变得较为稀少;还有待优化。

2、可以先使用涨停首板进行选股,第二天集合竞价时进行预警,(预警范围:涨停首板)。

3、指标含流通盘未来,不影响使用,以下举例:

图片

图片

图片

图片

图片

1、首板一进二副图指标:
ABC1:=9;
ABC2:=3;
ABC3:=3;
ABC4:=(CLOSE-LLV(LOW,ABC1))/(HHV(HIGH,ABC1)-LLV(LOW,ABC1))*100;
ABC5:=SMA(ABC4,ABC2,1);
ABC6:=SMA(ABC5,ABC3,1);{微信公众号:股民指标营地}
ABC7:=3*ABC5-2*ABC6;
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;
ABC11:=CLOSE;
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;
ABC16:=COUNT(ABC14,2)=1;
强势首板:=ABC8 AND ABC12 AND ABC13 AND ABC14 AND ABC15 AND ABC16;
{微信公众号:股民指标营地}
CBA1:=2;
CBA2:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1);
CBA3:=COUNT(CBA2,CBA1)=1 AND CBA2;
CBA4:=VOL/700000000;
CBA5:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);
CBA6:=2.5*MAX(CBA4,CBA5);
CBA7:=DMA(CLOSE,CBA6);
CBA8:=SMA(20*(CBA7/REF(CBA7,1)-1),2,1);
CBA9:=EMA(CBA8,2);
CBA10:=0.24;
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;
CBA18:=9;
CBA19:=10;{微信公众号:股民指标营地}
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;
CBA31:=CBA17 OR CBA30;
CBA32:=CBA31-CBA31*0.14 AND CBA3;
CBA33:=HIGH=CLOSE;
CBA34:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>=0.93 AND CBA33;
CBA35:=BARSLAST(CBA32);
精选二板:=CBA35 AND CBA34 AND CBA35<=1 AND REF(强势首板,1);{微信公众号:股民指标营地}
STICKLINE(强势首板,6,0,2,1),COLORMAGENTA;
DRAWICON(强势首板,6,5);
DRAWTEXT(强势首板,5,'1'),COLORYELLOW;
STICKLINE(精选二板,6,0,2,1),COLORRED;
DRAWTEXT(精选二板,5,'2'),COLORYELLOW;
DRAWICON(精选二板,6,9);



2、强势首板选股指标:
ABC1:=9;
ABC2:=3;
ABC3:=3;
ABC4:=(CLOSE-LLV(LOW,ABC1))/(HHV(HIGH,ABC1)-LLV(LOW,ABC1))*100;
ABC5:=SMA(ABC4,ABC2,1);
ABC6:=SMA(ABC5,ABC3,1);
ABC7:=3*ABC5-2*ABC6;
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;
ABC11:=CLOSE;
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;
ABC16:=COUNT(ABC14,2)=1;
强势首板:ABC8 AND ABC12 AND ABC13 AND ABC14 AND ABC15 AND ABC16;



3、精选二板选股指标:
ABC1:=9;
ABC2:=3;
ABC3:=3;
ABC4:=(CLOSE-LLV(LOW,ABC1))/(HHV(HIGH,ABC1)-LLV(LOW,ABC1))*100;
ABC5:=SMA(ABC4,ABC2,1);
ABC6:=SMA(ABC5,ABC3,1);{微信公众号:股民指标营地}
ABC7:=3*ABC5-2*ABC6;
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;
ABC11:=CLOSE;
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;
ABC16:=COUNT(ABC14,2)=1;
强势首板:=ABC8 AND ABC12 AND ABC13 AND ABC14 AND ABC15 AND ABC16;
{微信公众号:股民指标营地}
CBA1:=2;
CBA2:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1);
CBA3:=COUNT(CBA2,CBA1)=1 AND CBA2;
CBA4:=VOL/700000000;
CBA5:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);
CBA6:=2.5*MAX(CBA4,CBA5);
CBA7:=DMA(CLOSE,CBA6);
CBA8:=SMA(20*(CBA7/REF(CBA7,1)-1),2,1);
CBA9:=EMA(CBA8,2);
CBA10:=0.24;
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;
CBA18:=9;
CBA19:=10;{微信公众号:股民指标营地}
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;

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约