通达信牛股突破套装指标 全套源码 附图


{牛股吸筹源码如下:}



{吸筹线1:=COST(50)*COST(50)/COST(80);



吸筹线2:=COST(40)*COST(40)/COST(60);

差:吸筹线2-吸筹线1,NODRAW;

STICKLINE(差>0 AND C>吸筹线2,0,差,2,0),COLORRED;

STICKLINE(差>0 AND C>吸筹线2 AND C<MA(C,10),0,差*0.2,2,0),COLORYELLOW;



STICKLINE(差>0 AND C<吸筹线2,0,差,2,0),COLORCYAN;



STICKLINE(差>0 AND C<吸筹线2 AND C<吸筹线1,0,差*0.5,2,0),COLORBLUE;

STICKLINE(差>0 AND C<吸筹线2 AND C<吸筹线1,差*0.5,差,2,0),COLORYELLOW;

STICKLINE(差<0,0,差,2,0),COLORCYAN;

STICKLINE(差<0 AND C>吸筹线1,0,差,2,0),COLORMAGENTA;

STICKLINE(差<0 AND C>吸筹线1 AND C<MA(C,5),0,差*0.2,2,0),COLORYELLOW;


DRAWTEXT_FIX(1,0.5,1.5 ,0,'绿空仓-粉重仓-红满仓-红绿相间1/3-粉绿相间1/2'),COLORYELLOW;}





{牛股换手源码如下:}

XA_1:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN,VOL);

XA_2:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.096 AND CLOSE=HIGH;

XA_3:=XA_1>=REF(VOL,1)*1.9 AND (CLOSE>REF(CLOSE,1) OR CLOSE>OPEN);

XA_4:=XA_1<REF(XA_1,1);

XA_5:=EVERY(XA_4,3);

XA_6:=XA_1=HHV(XA_1,10) AND XA_1>1.7*REF(VOL,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE>=OPEN AND HIGH-CLOSE<CLOSE-OPEN;

换手:XA_1*10000/FINANCE(7),VOLSTICK;

五日换手:SUM(换手,5),NODRAW;

十日换手:SUM(换手,10),NODRAW;

二十日换手:SUM(换手,20),NODRAW;

XA_7:=SUM(换手,60);

XA_8:=SUM(换手,120);

XA_9:=MA(换手,5);

平均换手5日:XA_9,NODRAW;

XA_10:=MA(换手,10);

平均换手10日:XA_10,NODRAW;

XA_11:=MA(换手,120);

平均换手120日:XA_11;

XA_12:=AMOUNT/VOL/100;

XA_13:=MA(CLOSE,5);

XA_14:=MA(CLOSE,6);

XA_15:=MA(CLOSE,7);

XA_16:=MA(CLOSE,8);

XA_17:=MA(CLOSE,9);

XA_18:=MA(CLOSE,10);

XA_19:=MA(CLOSE,11);

XA_20:=MA(CLOSE,12);

XA_21:=MA(CLOSE,13);

XA_22:=MA(CLOSE,14);

XA_23:=MA(CLOSE,15);

XA_24:=MA(CLOSE,16);

XA_25:=MA(CLOSE,17);

XA_26:=MA(CLOSE,18);

XA_27:=MA(CLOSE,19);

XA_28:=MA(CLOSE,20);

XA_29:=MA(CLOSE,21);

XA_30:=MA(CLOSE,22);

XA_31:=MA(CLOSE,23);

XA_32:=MA(CLOSE,24);

XA_33:=MA(CLOSE,25);

XA_34:=MA(CLOSE,26);

XA_35:=MA(CLOSE,27);

XA_36:=MA(CLOSE,28);

XA_37:=MA(CLOSE,29);

XA_38:=MA(CLOSE,30);

XA_39:=MA(CLOSE,31);

XA_40:=MAX(MAX(MAX(MAX(XA_13,XA_14),XA_15),XA_16),XA_17);

XA_41:=MAX(MAX(MAX(MAX(XA_18,XA_19),XA_20),XA_21),XA_22);

XA_42:=MAX(MAX(MAX(MAX(XA_23,XA_24),XA_25),XA_26),XA_27);

XA_43:=MAX(MAX(MAX(MAX(MAX(XA_28,XA_29),XA_30),XA_31),XA_32),XA_33);

XA_44:=MAX(MAX(MAX(MAX(MAX(XA_34,XA_35),XA_36),XA_37),XA_38),XA_39);

XA_45:=MAX(MAX(MAX(MAX(XA_40,XA_41),XA_42),XA_43),XA_44);

XA_46:=IF(XA_45=XA_13,5,IF(XA_45=XA_14,6,IF(XA_45=XA_15,7,IF(XA_45=XA_16,8,IF(XA_45=XA_17,9,IF(XA_45=XA_18,10,IF(XA_45=XA_19,11,IF(XA_45=XA_20,12,IF(XA_45=XA_21,13,IF(XA_45=XA_22,14,IF(XA_45=XA_23,15,IF(XA_45=XA_24,16,IF(XA_45=XA_25,17,IF(XA_45=XA_26,18,IF(XA_45=XA_27,19,IF(XA_45=XA_28,20,IF(XA_45=XA_29,21,IF(XA_45=XA_30,22,IF(XA_45=XA_31,23,IF(XA_45=XA_32,24,IF(XA_45=XA_33,25,DRAWNULL)))))))))))))))))))));

XA_47:=IF(XA_45=MA(CLOSE,XA_46),XA_46,IF(XA_45=XA_34,26,IF(XA_45=XA_35,27,IF(XA_45=XA_36,28,IF(XA_45=XA_37,29,IF(XA_45=XA_38,30,IF(XA_45=XA_39,31,DRAWNULL)))))));

XA_48:=IF(BARSCOUNT(CLOSE)>=31,(XA_45*3+MA(CLOSE,31))/4,MAX(MA(CLOSE,5),MA(CLOSE,BARSCOUNT(CLOSE))));

XA_49:=XA_48;

XA_50:=XA_1=HHV(XA_1,XA_47);

XA_51:=XA_1=LLV(XA_1,XA_47);

STICKLINE(XA_50 AND CLOSE<=OPEN,XA_1*10000/FINANCE(7),0,1.5,0),COLORGREEN;

STICKLINE(XA_50 AND CLOSE>OPEN,XA_1*10000/FINANCE(7),0,1.5,0),COLORRED;

STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VOL*10000/FINANCE(7),0,0.5,(-1)),COLOR00C0C0;

DRAWNUMBER(XA_1>MA(XA_1,120)*3,换手,ROUND(XA_1/MA(XA_1,120)));

IF(EVERY(换手<=XA_11,30),XA_11,DRAWNULL),COLORBLUE,LINETHICK4;

STICKLINE(REF(EVERY(换手<=XA_11,30),1) AND XA_3 AND 换手>XA_11,0,0,5,0),COLORYELLOW;

量顶:REF(REF(换手,BARSLAST(换手=HHV(换手,XA_47))),1),DOTLINE,COLORGRAY;

XA_52:=MA(换手,XA_47);

STICKLINE(量顶<XA_11,换手,量顶,3,0),COLORBLUE;

STICKLINE(换手>量顶,换手,量顶,1.5,0),COLORYELLOW;






{牛股突波源码如下:}

VAR1:=CLOSE-LOW;

VAR2:=HIGH-LOW;

VAR3:=CLOSE-HIGH;

VAR4:=IF(HIGH>LOW,(VAR1/VAR2+VAR3/VAR2)*VOL,0);

HPTP:=SUM(VAR4,10)/10000,COLORSTICK;

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIF,9);

TKXL:=(DIF-DEA)*2;

XVYO:=UPNDAY(TKXL,1);

HH:=REF(H,5)=HHV(H,11);

LL:=REF(L,5)=LLV(L,11);

FG01:=BACKSET(HH,6)>BACKSET(HH,5);

FD01:=BACKSET(LL,6)>BACKSET(LL,5);

STICKLINE(V/REF(V,1)>2,OPEN,CLOSE,1,0),COLOR00FFFF;

FG02:=IF(BARSLAST(FG01)=BARSLAST(FD01) AND MA(C,5)>MA(C,10),FG01,IF(BARSLAST(FD01)>BARSLAST(FG01),FG01,0));

FD02:=IF(BARSLAST(FG01)=BARSLAST(FD01) AND MA(C,10)>MA(C,5),FD01,IF(BARSLAST(FG01)>BARSLAST(FD01),FD01,0));

FG0:=FG02 AND H=HHV(H,BARSLAST(FD02));

FD0:=FD02 AND L=LLV(L,BARSLAST(FG02));

GQ:=L>REF(H,1) AND DAY!=REF(DAY,1);

DQ:=H<REF(L,1) AND DAY!=REF(DAY,1);

FGH:=REF(H,BARSLAST(FG0));

FGL:=REF(L,BARSLAST(FG0));

FGH1:=REF(H,BARSLAST(FG0)+1);

FGL1:=REF(L,BARSLAST(FG0)+1);

FGL2:=REF(L,BARSLAST(FG0)+2);

FDH2:=REF(H,BARSLAST(FD0)+2);

FDH:=REF(H,BARSLAST(FD0));

FDL:=REF(L,BARSLAST(FD0));

FDH1:=REF(H,BARSLAST(FD0)+1);

FDL1:=REF(L,BARSLAST(FD0)+1);

FGZL:=IF(FGH1<FGL,FGL,IF(FGL<=FGL1,FGL2,FGL1));

FDZH:=IF(FDL1>FDH,FDH,IF(FDH>=FDH1,FDH2,FDH1));

FG1:=FGH>FDZH AND FG0;

FD1:=FDL<FGZL AND FD0;

FG:=FG1 AND FGH>FDH AND FGL>FDL AND FGL1>FDL;

FD:=FD1 AND FDL<FGL AND FDH<FGH AND FDH1<FGH;

BH0:=(H<=REF(H,1) AND L>=REF(L,1)) OR (H>=REF(H,1) AND L<=REF(L,1));

BHG:=COUNT(BH0,BARSLAST(FD0));

BHD:=COUNT(BH0,BARSLAST(FG0));

BGQ:=COUNT(GQ,BARSLAST(FD0));

BDQ:=COUNT(DQ,BARSLAST(FG0));

BK0:=IF(BHG>0,BHG+2,IF(BHD,BHD+2,3));

BK:=IF(BGQ,BK0-BGQ,IF(BDQ,BK0-BDQ,BK0));

G1X:=(FG AND BARSLAST(FD)>BK);

D1X:=(FD AND BARSLAST(FG)>BK);

G1:=(FG0 AND REF(H,BARSLAST(FG0))>=REF(H,BARSLAST(G1X)) AND BARSLAST(D1X)>BARSLAST(G1X))

OR (FG1 AND COUNT(GQ,BARSLAST(FD1))>0 AND REF(H,BARSLAST(FG1))>REF(H,BARSLAST(G1X)));

D1:=(FD0 AND REF(L,BARSLAST(FD0))<=REF(L,BARSLAST(D1X)) AND BARSLAST(G1X)>BARSLAST(D1X))

OR (FD1 AND COUNT(DQ,BARSLAST(FG1))>0 AND REF(L,BARSLAST(FD1))<REF(H,BARSLAST(D1X)));

G1H:=IF(BARSLAST(D1)>BARSLAST(G1),REF(H,BARSLAST(G1)),REF(H,BARSLAST(D1)));

D1L:=IF(BARSLAST(G1)>BARSLAST(D1),REF(L,BARSLAST(D1)),REF(L,BARSLAST(G1)));

G2:=G1 AND H=HHV(G1H,BARSLAST(D1)+1) AND H>REF(H,1) AND BARSLAST(D1)>BARSLAST(G1);

D2:=D1 AND L=LLV(D1L,BARSLAST(G1)+1) AND L<REF(L,1) AND BARSLAST(G1)>BARSLAST(D1);

NN:=G2 OR (FG0 AND REF(H,BARSLAST(FG0))>REF(H,BARSLAST(G2)) AND BARSLAST(D2)>BARSLAST(G2));

UU:=D2 OR (FD0 AND REF(L,BARSLAST(FD0))<REF(L,BARSLAST(D2)) AND BARSLAST(G2)>BARSLAST(D2));

趋势向上:DRAWLINE(UU,L,NN,H,0),COLORYELLOW,DOTLINE;

趋势向下:DRAWLINE(NN,H,UU,L,0),COLORWHITE,DOTLINE;

找顶线:DRAWLINE(NN,H,REF(NN,1),REF(H,1),1),COLORGREEN;

找底线:DRAWLINE(UU,L,REF(UU,1),REF(L,1),1),COLORRED;

DRAWNUMBER(UU,L*0.995,L);

DRAWNUMBER(NN,H*1.01,H);

XG:CROSS(C,找顶线) AND 找顶线>0 AND HPTP AND XVYO,NODRAW;

DRAWICON(XG,LOW,1);






未来函数检测结果如下:
该公式包含未来函数:BACKSET
该公式包含未来函数:COST
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图