相关简介:通达信量比换手率选股公式(牛股启动)源码分享

     通达信指标公式源码概况:

指标类别:通达信指标公式

授权方式:免费版

指标评级:★★★★★

指标分类:策略

画线方法:副图

一、什么是换手率?
换手率,也可以称作周转率,是指某只股票在一定时间内转手买卖的频率,是反映股票流通性强弱的指标之一。 说人话,从字面上理解,其实是一个买卖或者交换的动作,那么换手率就可以理解为交易的频率。
实时换手率=当日成交量/流通股本100%

通达信指标公式源码:

   TT:=IF(HOUR>12,(HOUR-13)*60+MINUTE+120,(HOUR-9)*60+MINUTE-30);

   P:=IF(PERIOD=5,FROMOPEN,TT);

   TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));

   MTIME:=MOD(FROMOPEN,TOTAL);

   CTIME:=IF(MTIME<0.5,TOTAL,MTIME);

   VVOL:=IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,VOL),NODRAW;

   S1:=IF(PERIOD=4,60,IF(PERIOD=3,30,IF(PERIOD=2,15,IF(PERIOD=1,5,1))));

   S2:=IF(PERIOD=5,4,IF(PERIOD=4,8,IF(PERIOD=3,16,IF(PERIOD=2,48,240))));

   S3:=P/S1,NODRAW;

   分时量比:=SUM(VOL,S3)/S3/DYNAINFO(16)/TOTAL;

   日量比:=VVOL/REF(MA(VOL,5),1);

   量比:IF(PERIOD<5,分时量比,IF(PERIOD=5,日量比,0));

   换手率%:100*VOL/(FINANCE(7)/100),NODRAW,COLORYELLOW;低迷:IF(换手率%<=1,换手率%,DRAWNULL),NODRAW,COLORFF9900;温和放量:IF(换手率%>1AND换手率%<=3,换手率%,DRAWNULL),NODRAW,COLORBBBBBB;异动:IF(换手率%>3AND换手率%<=5,换手率%,DRAWNULL),NODRAW;活跃:IF(换手率%>5AND换手率%<=8,换手率%,DRAWNULL),NODRAW,COLORMAGENTA;非常活跃:IF(换手率%>8AND换手率%<=10,换手率%,DRAWNULL),NODRAW,COLORYELLOW;高度活跃:IF(换手率%>10AND换手率%<=15,换手率%,DRAWNULL),NODRAW,COLOR0077FF;极度活跃:IF(换手率%>15AND换手率%<=25,换手率%,DRAWNULL),NODRAW,COLORRED;巨量换手:IF(换手率%>25,换手率%,DRAWNULL),NODRAW,COLOR000099;}STICKLINE(低迷,换手率%,0,2.8,0),COLORBLUE;STICKLINE(低迷,换手率%,0,2.3,0),COLORFF3300;STICKLINE(低迷,换手率%,0,1.7,0),COLORFF5500;STICKLINE(低迷,换手率%,0,1,0),COLORFF7700;STICKLINE(低迷,换手率%,0,0.3,0),COLORFF9900;STICKLINE(温和放量,换手率%,0,2.8,0),COLOR555555;STICKLINE(温和放量,换手率%,0,2.3,0),COLOR777777;STICKLINE(温和放量,换手率%,0,1.7,0),COLOR999999;STICKLINE(温和放量,换手率%,0,1,0),COLORBBBBBB;STICKLINE(温和放量,换手率%,0,0.3,0),COLORMAGENTA;STICKLINE(异动,换手率%,0,2.8,0),COLOR004400;STICKLINE(异动,换手率%,0,2.3,0),COLOR006600;STICKLINE(异动,换手率%,0,1.7,0),COLOR009900;STICKLINE(异动,换手率%,0,1,0),COLOR00CC00;STICKLINE(异动,换手率%,0,0.3,0),COLORGREEN;STICKLINE(活跃,换手率%,0,2.8,0),COLOR880088;STICKLINE(活跃,换手率%,0,2.3,0),COLORAA00AA;STICKLINE(活跃,换手率%,0,1.7,0),COLORCC00CC;STICKLINE(活跃,换手率%,0,1,0),COLOREE00EE;STICKLINE(活跃,换手率%,0,0.3,0),COLORFF33FF;STICKLINE(非常活跃,换手率%,0,2.8,0),COLOR008888;STICKLINE(非常活跃,换手率%,0,2.3,0),COLOR00AAAA;STICKLINE(非常活跃,换手率%,0,1.7,0),COLOR00CCCC;STICKLINE(非常活跃,换手率%,0,1,0),COLOR00EEEE;STICKLINE(非常活跃,换手率%,0,0.3,0),COLOR44FFFF;STICKLINE(高度活跃,换手率%,0,2.8,0),COLOR0000AA;STICKLINE(高度活跃,换手率%,0,2.3,0),COLOR0022CC;STICKLINE(高度活跃,换手率%,0,1.7,0),COLOR0044DD;STICKLINE(高度活跃,换手率%,0,1,0),COLOR0055FF;STICKLINE(高度活跃,换手率%,0,0.3,0),COLOR0099FF;STICKLINE(极度活跃,换手率%,0,2.8,0),COLOR000066;STICKLINE(极度活跃,换手率%,0,2.3,0),COLOR000088;STICKLINE(极度活跃,换手率%,0,1.7,0),COLOR0000AA;STICKLINE(极度活跃,换手率%,0,1,0),COLOR0000CC;STICKLINE(极度活跃,换手率%,0,0.3,0),COLOR2222FF;STICKLINE(巨量换手,换手率%,0,2.8,0),COLOR000022;STICKLINE(巨量换手,换手率%,0,2.3,0),COLOR000033;STICKLINE(巨量换手,换手率%,0,1.7,0),COLOR000055;STICKLINE(巨量换手,换手率%,0,1,0),COLOR000077;STICKLINE(巨量换手,换手率%,0,0.3,0),COLOR000099;X_1:=REF(CLOSE,1)*1.1-CLOSE<0.01ANDHIGH=CLOSE;前高量:REF(HHV(换手率%,60),REF(X_1,1)),COLORGREEN;成交量:VOL,NODRAW;X_2:=90;后量超前量:VOL>=HHV(VOL,X_2);DRAWICON(后量超前量,前高量,13);X_3:=MA(VOL,5);X_4:=MA(VOL,35);X_5:=MA(VOL,135);X_6:=CROSS(X_3,X_4)ANDVOL>X_3ANDVOL>X_5*2;牛股启动:FILTER(X_6,20),NODRAW,COLORRED,LINETHICK3;DRAWTEXT(牛股启动,前高量,21),COLORYELLOW;DRAWICON(牛股启动,前高量,34);量比:VOL/REF(MA(VOL,5),1),NODRAW,COLORWHITE;X_7:=IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL*240/FROMOPEN,VOL);X_8:=MA(X_7,5);X_9:=MA(X_7,60);均量金叉:CROSS(X_8,X_9);DRAWICON(均量金叉,5,11);

   砍庄刀:LLV(SUM(Ema((C+L)/2,2)/2.98,3),4),COLORRED;

   杀庄刀:(SUM(EMA((C+L)/2,2)/2.98,3)),COLORRED;

   钉庄刀:LLV(SUM(EMA((C+L)/2,2)/2.98,3),8),COLORFFFFFF;

   stICKLINE(钉庄刀<杀庄刀,杀庄刀,钉庄刀,0.1,0),COLORFF972F;

   STICKLINE(砍庄刀<杀庄刀,杀庄刀,砍庄刀,1,1),COLORyellow,linethick1;

   上轨:=SMA(HIGH,21,2)*1.05,COLORGREEN;

   下轨:=0.8*SMA(LOW,21,2)*0.95,COLORYELLOW;

   中轨:=0.8*SMA(LOW,5,1),COLORff00ff;

   趋势:=0.8*SMA(CLOSE,2,1),COLOR00ff00;

   波段买入:IF(crOSS(趋势,中轨),上轨*1.03,中轨)*0.87,COLORYELLOW;

   领头羊:=IF(CROSS(趋势,上轨),上轨*1.10,下轨)*0.8,COLORDDDDDD;

   DT:LLV(波段买入,3),COLOR00BB00;

   选股公式1:

   砍庄刀:=LLV(SUM(EMA((C+L)/2,2)/2.98,3),4);

   杀庄刀:=(SUM(EMA((C+L)/2,2)/2.98,3));

   XG:(砍庄刀=杀庄刀);

   选股公式2:

   砍庄刀:=LLV(SUM(EMA((C+L)/2,2)/2.98,3),4);

   钉庄刀:=LLV(SUM(EMA((C+L)/2,2)/2.98,3),8);

   XG2:(砍庄刀=钉庄刀);

[源码注释]通达信公式动态翻译结果

输出XG:最近5日一直存在成交量(手)>1日前的成交量(手) AND 开盘价/1日前的收盘价>1.03

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。