相关简介:通达信分时成交量指标公式源码分享

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

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

  授权方式:免费版

  指标评级:★★★★★

  指标分类:策略

  画线方法:副图

   我不敢说这两个资金博弈成交量和主力力度成交量用好了一年大家赚多少倍,看明白用用就知道了,指标不是万能的,就是再好的指标也要懂的人用,不喜欢勿喷,可以绕行,在这里发出这两个资金量指标希望能帮到需要的人,不会用的可以互相探讨,是否成功率很高自己可以随便翻票验证看看,但千万记住资金博弈成交量和主力力度成交量共振使用,成功率绝对很高

通达信指标公式源码:

   DRAWTEXTABS(20,10,BKNAME),colorwhite,LINETHICK1;

   总股本:=FINANCE2(35)/10000;

   流通:CAPITAL/1000000,coloryellow,LINETHICK0;

   流通率:流通/总股本,coloryellow,LINETHICK0;

   市盈率:DYNAINFO(39),colorF0F000,LINETHICK0;

   收益:FINANCE2(3),colorF0F000,LINETHICK0;

   净资:FINANCE2(4),coloryellow,LINETHICK0;

   日换:SUM(100*V/CAPITAL,1),color33FF00,LINETHICK0;

   净资率:净资/c,color33FF00,LINETHICK0;

   TR:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));

   量:=日换*10;

  换手率:=VOL/CAPITAL*10;

   STICKLINE(C<O,0,IF(换手率<1,量,0),8,0),COLORBLUE;

   STICKLINE(C>=O,0,IF(换手率<1,量,0),8,1),colorred;

   地量:STICKLINE(C<OAND换手率<1,0,量,6,0),COLORBLUE;

   巨量:STICKLINE(C<OAND换手率>=15and换手率<25,0,量,6,0),colorred;

   怪异:STICKLINE(C<OAND换手率>=25,0,量,6,0),colorwhite;

   STICKLINE(C>=OAND换手率>=1and换手率<2,0,量,8,1),colorred;

   STICKLINE(C>=OAND换手率>=2and换手率<3,0,量,8,1),colorred;

   STICKLINE(C>=OAND换手率>=3and换手率<5,0,量,8,1),colorred;

   STICKLINE(C>=OAND换手率>=5and换手率<8,0,量,8,1),colorred;

   STICKLINE(C>=OAND换手率>=8and换手率<15,0,量,8,1),colorred;

   STICKLINE(C>=OAND换手率>=15and换手率<25,0,量,8,1),colorred;

   STICKLINE(C>=OAND换手率>=25,0,量,8,1);

   仓:0;

   VAR9:=(POW(MA(CLOSE,5),2)+MA(CLOSE,5));

   VARA:=(POW(MA(LOW,5),2)+MA(LOW,5));

   VARB:=(POW(MA(HIGH,5),2)+MA(HIGH,5));

   VARC:=(((((VAR9-LLV(VARA,64))/(HHV(VARB,64)-LLV(VARA,64)))*150)+65)-10);

   VARD:=((SMA(VARC,3,1)*1.5)-100);

   VARE:=SMA(VARD,3,1);

   VARF:=((3*VARD)-(2*VARE));

   VAR60:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);

   VAR61:=VARF<REF(VAR60,1)ANDVOL>REF(VOL,1)ANDCLOSE>REF(CLOSE,1);

   大资金:=(VAR61ANDCOUNT(VAR61,30)=1);

   DRAWTEXT(大资金,18,’▲大资金’);

   获利比例:=(WINNER(C)*1000)/10;

   平均成本:=(COST(50)*100)/100;

   穿透力:=(winner(C)-winner(ref(C,1)))/v*capital;

   DRAWTEXTABS(0,30,’获利比例:’+STR(获利比例)),COLOR44bbff,LINETHICK3;

   DRAWTEXTABS(160,30,’平均成本:’+STR(平均成本)),colorwhite,LINETHICK5;

   A4:=MA(CLOSE,20);

   A5:=(CLOSE>MA(CLOSE,5));

   A6:=(MA(CLOSE,5)>MA(CLOSE,10));

   A7:=(CLOSE>MA(CLOSE,10));

   A8:=(MA(CLOSE,5)>MA(CLOSE,20));

   A9:=(CLOSE>MA(CLOSE,20));

   A10:=REF(A4,1);

   A11:=(A4>A10);

   {AVX:(((((IF(A5,10,(0-10))+IF(A6,10,(0-10)))+IF(A7,10,(0-10)))+IF(A8,10,(0-10)))+IF(A9,10,(0-10)))+IF(A11,10,(0-10)))/50;}

   风向标:MA((((((IF(A5,100,0)+IF(A6,100,0))+IF(A7,100,0))+IF(A8,100,0))+IF(A9,100,0))+IF(A11,100,0))/6,3.5),colorwhite,LINETHICK1;

   {VARR:=REF(CLOSE,1);

   强弱方向:=SMA(MAX(CLOSE-VARR,0),5,1)/SMA(ABS(CLOSE-VARR),5,1)*100,COLORYELLOW;}

   {DRAWTEXT(CROSS(买卖力道,80)AND强弱方向>50,80,’买’),COLORYELLOW;};

   突破:95,COLORGREEN;

   Vm1:=REF(CLOSE,2);

   Am2:=SMA(MAX(CLOSE-Vm1,0),7,1)/SMA(ABS(CLOSE-Vm1),7,1)*100;

   牛吃饱要走:IF(Am2<REF(Am2,1)ANDAm2>79,Am2,0),color33FF00,linethick2;

   进猪圈:=cross(突破,风向标);

   DRAWTEXT(进猪圈,100,’下跌’);

   多:=EMA(C*5,7)-EMA(C*5,13);

   空:=EMA(多,2);

   A1:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);

   黑马线:=EMA(A1,5);

   黑马跟踪天数:BARSLAST(A1<黑马线),LINETHICK0;

   HSL:=VOL/CAPITAL;

   Al1:=(REF(CLOSE,2)*0.865);

   Al2:=(REF(CLOSE,13)*0.772);

   BOT:=MIN(Al1,Al2);

   C1:=((CLOSE>(0.894*REF(CLOSE,1)))AND(CLOSE<(0.901*REF(CLOSE,1))));

   C2:=(((CLOSE=OPEN)AND(OPEN=HIGH))AND(HIGH=LOW));

   C3:=(COUNT((CLOSE<(REF(CLOSE,1)*0.894)),30)=0);

   DB60:=((((((((CLOSE-BOT)/CLOSE)<(11/100))AND(HHV(HSL,5)<3))ANDNOT(C1))ANDNOT(C2))ANDC3)*60);

   DB70:=((((((((CLOSE-BOT)/CLOSE)<(9.5/100))AND(HHV(HSL,5)<3))ANDNOT(C1))ANDNOT(C2))ANDC3)*70);

   DB79:=((((((((CLOSE-BOT)/CLOSE)<(7.8/100))AND(HHV(HSL,5)<3))ANDNOT(C1))ANDNOT(C2))ANDC3)*79);

   DB87:=((((((((CLOSE-BOT)/CLOSE)<(6/100))AND(HHV(HSL,5)<2.75))ANDNOT(C1))ANDNOT(C2))ANDC3)*87);

   DB92:=((((((((CLOSE-BOT)/CLOSE)<(4.2/100))AND(HHV(HSL,5)<2.75))ANDNOT(C1))ANDNOT(C2))ANDC3)*92);

   DB94:=((((((((CLOSE-BOT)/CLOSE)<(3.63/100))AND(HHV(HSL,5)<1.41))ANDNOT(C1))ANDNOT(C2))ANDC3)*94);

   DB95:=((((((((CLOSE-BOT)/CLOSE)<(3.38/100))AND(HHV(HSL,5)<1.25))ANDNOT(C1))ANDNOT(C2))ANDC3)*95);

   DB96:=((((((((CLOSE-BOT)/CLOSE)<(3.16/100))AND(HHV(HSL,5)<1.15))ANDNOT(C1))ANDNOT(C2))ANDC3)*96);

   DB97:=((((((((CLOSE-BOT)/CLOSE)<(2.97/100))AND(HHV(HSL,4)<1.12))ANDNOT(C1))ANDNOT(C2))ANDC3)*97);

   DB98:=((((((((CLOSE-BOT)/CLOSE)<(2.3/100))AND(HHV(HSL,2)<1.07))ANDNOT(C1))ANDNOT(C2))ANDC3)*98);

   DB100:=((((((((CLOSE-BOT)/CLOSE)<(2.19/100))AND(HHV(HSL,2)<0.71))ANDNOT(C1))ANDNOT(C2))ANDC3)*100);

   超跌:IF((DB100=100),100,IF((DB98=98),98,IF((DB97=97),97,IF((DB96=96),96,IF((DB95=95),95,IF((DB94=94),94,IF((DB92=92),92,IF((DB87=87),87,IF((DB79=79),79,IF((DB70=70),70,IF((DB60=60),60,0))))))))))),color33FF00;

   STICKLINE((超跌>=60),0,超跌,0.5,0),COLORMAGENTA;

   STICKLINE((超跌>=80),20,70,8,0),COLORYELLOW;

   STICKLINE((超跌>=80),20,70,4,0),COLORMAGENTA;

   STICKLINE((超跌>=80),20,70,2,0),COLORGREEN;

   STICKLINE((超跌>=80),20,70,0,0);

   Vs1:=REF(CLOSE,2);

   Vs2:=REF(CLOSE,1);

   Vs3:=SMA(MAX(CLOSE-Vs2,0),7,1)/SMA(ABS(CLOSE-Vs2),7,1)*100;

   DRAWTEXT(88>0andref(o,1)/ref(c,1)>1.04andref(l,1)<=688ando>ref(c,1)andc<ref(o,1)andc/o>=1.01,风向标,’底初现’),COLORGREEN;

   DRAWTEXT(c-o>=0ando/l>1.05andl<=llv(l,20),风向标,’★底’),COLORGREEN;

   LC1:=REF(CLOSE,1);

   RSI1:=SMA(MAX(CLOSE-LC1,0),6,1)/SMA(ABS(CLOSE-LC1),6,1)*100;

   抓大牛:CROSS(RSI1,11);

   DRAWTEXT(抓大牛,50,’抓大牛’),COLORRED;

   bo1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;

   危短底:=bo1<-9ANDbo1>REF(bo1,1);

   DRAWTEXT(危短底,25,’危短底’),COLOR44bbff;

   MA30:=EMA(CLOSE,30);

   强弱:EMA(CLOSE,900);

   STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;

   STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;

   H1:=MAX(DYNAINFO(3),DYNAINFO(5));

   L1:=MIN(DYNAINFO(3),DYNAINFO(6));

   P1:=H1-L1;

   阻力:L1+P1*7/8,COLOR00DD00;

   支撑:L1+P1*0.5/8,COLOR00DD00;

   现价:CLOSE,COLORWHITE,LINETHICK1;

   STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;

   DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,’★B’),COLORYELLOW;{吸}

   DRAWTEXT(LONGCROSS(现价,阻力,2),现价,’★’),COLORRED;{抛};

   DRAWICON(CROSS(MA30,强弱),H,9);

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

输出XG:最近3日一直存在成交额(元)>成交额(元)的30日简单移动平均

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