通达信的源码
volume:vol,volstick;
drawline(v>=hhv(v,30),v,v<=llv(v,10),hhv(v,6),1),colorffcccc;
ab:drawline(v>=hhv(v,10),v,v<=llv(v,3),hhv(v,3),1),coloryellow;
drawtext(cross(c,ab),c+5000,'b'),colorff00ff;
{drawicon(cross(c,ab),l*0.98,7);}
市盈率 :dynainfo(39) ;
换手:vol/capital*100 linethick0, nodraw ;
流通【亿】:capital/1000000,linethick0;
ma5:=ma(v,5),colorwhite,linethick0;
ma10:=ma(v,10),coloryellow,linethick0;
ma30:=ma(v,30),colormagenta,linethick0;
var7:=(high - low);
var8:=abs((open - close));
var9:=(high - if((close > open),close,open));
var10:=(if((close > open),open,close) - low);
var11:=((var8 / var7) * vol);
var12:=((var9 / var7) * vol);
var13:=((var10 / var7) * vol);
var14:=if(((vol / capital) > 0.001),1,exp(abs(log(((vol / capital) * 100)))));
vara:=(((close - ma(close,5)) / ma(close,5)) * 100);
varb:=(((ma(close,5) > ma(close,10)) and (ma(close,10) > ma(close,30))) and (ma(close,30) > ma(close,60)));
varc:=((ma(close,5) < ma(close,10)) and (ma(close,10) < ma(close,30)));
vard:=ref(close,1);
drawtext(((var14 > 2) and (vol < (ma(vol,5) / 2))),v-15000,'◆'),colorfb2dfb;
drawtext(((var14 > 2) and (vol < (ma(vol,5) / 2))),v+59000,'地'),colorfb2dfb;
换手率:=((vol / capital) * 100);
drawtext((((vol / ref((sum(vol,5) / 5),1)) >= 2) and (换手率 > 1)),(v+55000),'变'),colorffffcc;
量:=if((close > 200),(vol / 1000000),(vol / 100)), linethick0;
振幅:=(((high - low) / low) * 100);
drawtext(var12>var11 and vara>2 and var12>var13 and close>ma(close,5) and close>ma (close,30) and high>ma(close,60) and vol>ma(vol,5) and var12>=ma(vol,5),v+5000,'高'),colorgreen;
drawtext(var13>var11 and var13>var12 and vara<-2 and close<ma(close,30) and var13<ma (vol,5)/2 and ma(vol,5)<ma(vol,10),v+5000,'低'), coloryellow;
lc1:=ref(close,1);
rsi1:=sma(max(close-lc1,0),6,1)/sma(abs(close-lc1),6,1)*100;
抓大牛:cross(rsi1,11);
drawtext(抓大牛,v+55000,'抓'),colorred;
ema13:=ema(c,13),colorff8080;
drawtext(cross(high,ema13),v+5000,'底'),coloryellow;
a01:=dynainfo(7);
a03:=barscount(close);
a04:=(sma((close / hhv(high,120)),3,1) * 100);
a05:=if((a03 > 20),a04,0);
a06:=if((low > a01),0,if((high < a01),1,(((a01 - low) + 0.009) / ((high - low) + 0.009))));
a07:=dma(a06,(vol / capital)) * 60;
a09:=if((((a07 > 0) and (a07 > ref(a07,1))) and (a05 <= 88)),a07,0);
var1:=3*sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*100,5,1)-2*sma(sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*100,5,1),3,1);
var2:=ema(var1,8);
var3:=3*sma((c-llv(l,55))/(hhv(h,55)-llv(l,55))*100,5,1)-2*sma(sma((c-llv(l,55))/(hhv(h,55)-llv(l,55))*100,5,1),3,1);
趋势:=ema(var3,3)-10;
stickline((a09>0) and 趋势<40,0,v/6,2,0),colormagenta;
粉色机构建仓区:0,linethick0,colormagenta;
a011:=dynainfo( 5);
a013:=barscount(high);
a014:=(sma((high / hhv(close,120)),3,1) * 100);
a015:=if((a013 > 20),a014,0);
a016:=if((high < a011),0,if((low > a011),1,(((a011 - high) + 0.009) / ((low - high) + 0.009))));
a017:=dma(a016,(vol / capital)) * 60;
a019:=if((((a017 >0) and (a017 > ref(a017,1))) and (a015 >= 88)),a017,0);
var21:=3*sma((close-hhv(high,27))/(llv(low,27)-hhv(high,27))*100,5,1)-
2*sma(sma((high-hhv(high,27))/(llv(low,27)-hhv(high,27))*100,5,1),3,1);
var22:=ema(var21,8);
var23:=3*sma((high-hhv(high,55))/(llv(low,55)-hhv(high,55))*100,5,1)-
2*sma(sma((high-hhv(high,55))/(llv(low,55)-hhv(high,55))*100,5,1),3,1);
趋势1:=ema(var23,3)-10;
stickline((a019 > 0 and (趋势1<20 or 趋势1>ref(趋势1,1)and 趋势1<50)),0,v/5,2,0),colorgreen;
绿色机构出仓区:0,linethick0,colorgreen;
飞狐的也改到成交量中
//drawgbk(1, colorrgb(180,180,180),colorrgb(250,250,250),1);
当日成交量:vol/10000,volstick;
换手率:vol/capital*100,linethick0,colorcyan;
drawtextex(c,1,0,0,'换手率'+numtostr((换手率),2)+'%'),align1,colorred;
stickline(-换手率,-换手率,0,8,1),colorcyan;
量比:if(barpos=datacount,dynainfo(17),v/ref(ma(v,5),1)),linethick0;
stickline(-量比,-量比,0,8,1),coloryellow;
drawtextex(c,1,80,0,'量比'+numtostr((量比),2)+'%'),align1,colorred;
a01:=dynainfo(7);
a03:=barscount(close);
a04:=(sma((close / hhv(high,120)),3,1) * 100);
a05:=if((a03 > 20),a04,0);
a06:=if((low > a01),0,if((high < a01),1,(((a01 - low) + 0.009) / ((high - low) + 0.009))));
a07:=dma(a06,(vol / capital)) * 60;
a09:=if((((a07 > 0) and (a07 > ref(a07,1))) and (a05 <= 88)),a07,0);
var1:=3*sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*100,5,1)-2*sma(sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*100,5,1),3,1);
var2:=ema(var1,8);
var3:=3*sma((c-llv(l,55))/(hhv(h,55)-llv(l,55))*100,5,1)-2*sma(sma((c-llv(l,55))/(hhv(h,55)-llv(l,55))*100,5,1),3,1);
趋势:=ema(var3,3)-10;
fillrgn((a09 > 0 and (趋势<20 or 趋势>ref(趋势,1)and 趋势<40)),0,换手率/2),colormagenta;
粉色机构建仓区:0,linethick0,colormagenta;
a01:=dynainfo( 5);
a03:=barscount(high);
a04:=(sma((high / hhv(close,120)),3,1) * 100);
a05:=if((a03 > 20),a04,0);
a06:=if((high < a01),0,if((low > a01),1,(((a01 - high) + 0.009) / ((low - high) + 0.009))));
a07:=dma(a06,(vol / capital)) * 60;
a09:=if((((a07 >0) and (a07 > ref(a07,1))) and (a05 >= 88)),a07,0);
var1:=3*sma((close-hhv(high,27))/(llv(low,27)-hhv(high,27))*100,5,1)-
2*sma(sma((high-hhv(high,27))/(llv(low,27)-hhv(high,27))*100,5,1),3,1);
var2:=ema(var1,8);
var3:=3*sma((high-hhv(high,55))/(llv(low,55)-hhv(high,55))*100,5,1)-
2*sma(sma((high-hhv(high,55))/(llv(low,55)-hhv(high,55))*100,5,1),3,1);
趋势:=ema(var3,3)-10;
fillrgn((a09 > 0 and (趋势<20 or 趋势>ref(趋势,1)and 趋势<50)),0,换手率/2),colorgreen;
绿色机构出仓区:0,linethick0,colorgreen;
上一指标公式:双量成交量指标详解 通达信成交量
下一指标公式:恶狼操盘主图指标详解 通达信操盘
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文自用成交量版指标详解 通达信成交量通达信仅供学习研究。