【股票指标公式下载】-【通达信】量柱成交量(流通、内外比、单日量比、现量)

合集下载

通达信指标公式源码成交量指标

通达信指标公式源码成交量指标

通达信指标公式源码成交量指标成交量指标(Volume Indicator)是衡量市场交易活跃程度的技术指标,通过分析成交量的变化,可以帮助投资者判断市场趋势及未来可能的价格走势。

本文将介绍一种常用的成交量指标,成交量的移动平均线(Volume Moving Average)的计算公式及源码。

成交量的移动平均线是通过计算一段时间内的成交量的平均值来表征成交量的变化趋势。

具体的计算公式为:VMA(n)=SUM(VOL,n)/n其中,VMA(n)表示第n日的成交量的移动平均线,VOL表示第n日的成交量,n表示计算移动平均值的周期。

下面是通达信软件中计算成交量的移动平均线的源码示例:'''VMAn = input(“周期”, 5)VOL=REF(MA(VOL,n),1)VMA_LOW=MA(VOL,n)*0.95/nVMA_HIGH=MA(VOL,n)*1.05/nVMA=MA(VOL,n)'''在这段源码中,首先通过input(函数获取计算移动平均线的周期n,并使用REF(函数获取前一周期的成交量移动平均值。

然后,通过MA(函数计算成交量的移动平均线,其中VMA_LOW表示当前成交量移动平均值的95%的值,VMA_HIGH表示当前成交量移动平均值的105%的值,VMA表示当前成交量的移动平均值。

通过计算成交量的移动平均线,可以得到一条反映成交活跃程度的曲线,可以与股价或其他指标结合使用,帮助判断市场趋势及价格走势。

需要注意的是,以上代码只是一个示例,实际使用时可能需要进行一些修改或适配,以便与具体的交易软件或平台进行兼容。

希望以上内容对您有帮助!。

【股票指标公式下载】-【通达信】成交量(持币、持股、主力净流入、振幅)

【股票指标公式下载】-【通达信】成交量(持币、持股、主力净流入、振幅)

【通达信】成交量(持币、持股、主力净流入、振幅)-指标公式源码周换:SUM(V/CAPITAL*100,5),NODRAW,COLORMAGENTA;预测:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,VOL),NODRAW; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,预测,0,-1,-1),COLOR00C0C0;持币:IF(SAR(10,2,20)>=H,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORGREEN; 持股:IF(SAR(10,2,20)<=L,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORMAGENTA; JJ:=(HIGH+LOW+CLOSE)/3;QJ9:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);TD1:=QJ9*(MIN(OPEN,CLOSE)-LOW);XD1:=QJ9*(JJ-MIN(CLOSE,OPEN));XD2:=QJ9*(HIGH-MAX(OPEN,CLOSE));TD2:=QJ9*(MAX(CLOSE,OPEN)-JJ);日净:((TD1+XD1)-(TD2+XD2))/10000,NODRAW;周净:SUM(日净,5),NODRAW;QJ0:=(HIGH+LOW+CLOSE)/3;QJ1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));QJ2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-QJ0);QJ3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);QJ4:=IF(HIGH=LOW,1,QJ0-MIN(CLOSE,OPEN));QJ5:=VOL/(IF(HIGH=LOW,4,HIGH-LOW));特大:QJ4*QJ5,NODRAW;大单:QJ3*QJ5,NODRAW;中单:QJ1*QJ5,NODRAW;小单:QJ2*QJ5,NODRAW;AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0;卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*( HIGH-LOW),0-VOL/2)),LINETHICK0,COLORCYAN;主力净流入:MA(买量+卖量/2,3)*AMO/V/100000000,COLORYELLOW,LINETHICK1; 量〗:VOL,NODRAW,VOLSTICK;STICKLINE(V>=3*REF(V,1),V/3,V/3,3.9,0),COLORGREEN;STICKLINE(V>=2*REF(V,1),V/2,V/2,3.9,0),COLORYELLOW;DRAWLINE(V>=HHV(V,30),V,V<=LLV(V,10),HHV(V,6),1),COLORFFCCCC;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;AB:DRAWLINE(V>=HHV(V,10),V,V<=LLV(V,3),HHV(V,3),1),COLORYELLOW; DRAWTEXT(CROSS(C,AB),C+5000,'B'),COLORYELLOW;{DRAWICON(CROSS(C,AB),L*0.98,7);};五日: MA(V,5) COLORFFFFFF LINETHICK2;三十四日: MA(V,34) COLORFF80FF LINETHICK2;一百四十四日: MA(V,144) COLOR00FFFF LINETHICK1;底部区域:=MA(IF(L<=LLV(L,15),MA(C,20),0),3)/200,VOLSTICK;入货点:=IF(REF(底部区域,1)>0 AND REF(C,1)<=REF(O,1) AND 底部区域>0 AND C>O,1,0);DRAWICON(入货点=1,底部区域*1.2,1),COLORBLUE;DRAWTEXT(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),V,'☆地');【通达信】成交量(持币、持股、主力净流入、振幅)-指标公式效果图(文档来源:若水财经社区)。

通达信资金量能柱及选股指标公式

通达信资金量能柱及选股指标公式

通达信资金量能柱及选股指标公式换手:=V*100/CAPITAL;主力:=MA(换手,4);机构:=MA(换手,9);游资:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+机构+游资+散户)/4;主力能量:(主力-均量)COLORMAGENTA,NODRAW;机构能量:(机构-均量)COLORYELLOW,NODRAW;游资能量:(游资-均量)COLORLIBLUE,NODRAW;散户能量:(散户-均量)COLORBLUE,NODRAW;操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),14.4,14.4+3,4,0),COLORRED;减仓:STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),14.4,14.4+3,4,0),COLORYELLOW;反弹:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),14.4,14.4+3,4,0),COLORGREEN;寻底:STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),14.4,14.4+3,4,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,14.4,14.6),'主力'),COLORMAGENTA;操盘1:STICKLINE(机构能量>=0 AND 机构能量>=REF(机构能量,1),9.6,9.6+3,4,0),COLORRED;减仓1:STICKLINE(机构能量>=0 AND 机构能量< REF(机构能量,1),9.6,9.6+3,4,0),COLORYELLOW;反弹1:STICKLINE(机构能量<0 AND 机构能量>=REF(机构能量,1),9.6,9.6+3,4,0),COLORGREEN;寻底1:STICKLINE(机构能量<0 AND 机构能量< REF(机构能量,1),9.6,9.6+3,4,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(机构能量>=0,9.6,9.8),' 机构'),COLORYELLOW;操盘2:STICKLINE(游资能量>=0 AND 游资能量>=REF(游资能量,1),4.8,4.8+3,4,0),COLORRED;减仓2:STICKLINE(游资能量>=0 AND 游资能量< REF(游资能量,1),4.8,4.8+3,4,0),COLORRED;反弹2:STICKLINE(游资能量<0 AND 游资能量>=REF(游资能量,1),4.8,4.8+3,4,0),COLORGREEN;寻底2:STICKLINE(游资能量<0 AND 游资能量< REF(游资能量,1),4.8,4.8+3,4,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(游资能量>=0,4.8,5),' 游资'),COLORLIBLUE;操盘3:STICKLINE(散户能量>=0 AND 散户能量>=REF(散户能量,1),0,3,4,0),COLORRED;减仓3:STICKLINE(散户能量>=0 AND 散户能量< REF(散户能量,1),0,3,4,0),COLORRED;反弹3:STICKLINE(散户能量<0 AND 散户能量>=REF(散户能量,1),0,3,4,0),COLORGREEN;寻底3:STICKLINE(散户能量<0 AND 散户能量< REF(散户能量,1),0,3,4,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(散户能量>=0,-0.3,0.3),' 散户'),COLORBLUE;JZ:=V/(ABS(主力能量)+ABS(机构能量)+ABS(游资能量)+ABS(散户能量));{4,9,17,34日换手偏离值均分成交量}ZLCJ:=JZ*ABS(主力能量);{4日换手偏离均量值换算当日成交量}JGCJ:=JZ*ABS(机构能量);{9日换手偏离均量值换算当日成交量} YZCJ:=JZ*ABS(游资能量);{17日换手偏离均量值换算当日成交量} SHCJ:=JZ*ABS(散户能量);{34日换手偏离均量值换算当日成交量};换手率:VOL/CAPITAL*100,LINETHICK0;主力量:=ZLCJ,COLORMAGENTA,NODRAW;机构量:=JGCJ,COLORYELLOW,NODRAW; 游资量:=YZCJ,COLORLIBLUE,NODRAW; 散户量:=SHCJ,COLORBLUE,NODRAW;。

通达信 显示 量比 指标 公式

通达信 显示 量比 指标 公式

通达信显示量比指标公式
通达信是一款常用的股票交易软件,量比是其中一个重要的指标,用来衡量成交量的大小。

量比指标的公式如下:
量比 = 当日成交量 / 过去n日平均成交量。

其中,n一般取5或10,代表过去5或10个交易日的平均成交量。

量比指标的计算比较简单,但是能够反映出成交量的变化情况,帮助投资者判断当前市场的热度和趋势。

量比指标的公式体现了相对成交量的概念,通过与过去一段时
间的平均成交量进行对比,可以更好地观察到成交量的变化情况。

当量比大于1时,意味着当日成交量较过去平均成交量要大,反之
则小于1。

量比指标可以帮助投资者判断股票交易活跃度,辅助进行买卖
决策。

当量比较大时,说明市场对该股票的关注度较高,可能存在
较大的交易机会;反之,量比较小时,可能代表市场对该股票较为
冷淡,需要谨慎对待。

总的来说,量比指标是股票交易中一个重要的参考指标,通过量比的计算和分析,投资者可以更好地把握市场热度和趋势,辅助自己进行投资决策。

【股票指标公式下载】-【通达信】VOL动量比(成交量、成交额亿、大盘成交)

【股票指标公式下载】-【通达信】VOL动量比(成交量、成交额亿、大盘成交)

【通达信】VOL动量比(成交量、成交额亿、大盘成交)-指标公式源码{VOL动量比 N=10,100,34}预测量:IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),COLORCCCCFF,NODRAW; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,预测量,0,8,-1),COLORYELLOW; 【成交量】:VOL,VOLSTICK,COLORRED;成交额亿:=AMOUNT/100000000,NODRAW;流通:=CAPITAL/1000000,NODRAW;成交流通比:=AMOUNT/CAPITAL/100,NODRAW;大盘成交【手】:INDEXV,COLORFF55FF,NODRAW;涨家数:INDEXADV,COLOR0000EE,NODRAW;跌家数:INDEXDEC,COLOR00EE00,NODRAW;STICKLINE(CLOSE=REF(CLOSE,1),0,VOL,3.2,0),COLORFF77FF;STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,2.7,0),COLORFF33FF;STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,2.1,0),COLORFF55FF;STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,1,6),COLORFF77FF;STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,0.8,0),COLORFF99FF;STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,0.5,0),COLORFFBBFF;STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,0.1,0),COLORFFDDFF;STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,3,2),COLORFF1100;STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,2.7,0),COLORFF3300;STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,2.1,0),COLORFF5500;STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,1.6,0),COLORFF7700;STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,0,8),COLORFF9900;STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,0.5,0),COLORFFBB00;STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,0.1,0),COLORFFDD00;HL10:=WINNER(C/1.1)*V,COLORBLUE;{STICKLINE(((C/1.1)*V),HL10,0,3,0),COLORMAGENTA;}STICKLINE(HL10>0,0,HL10,3,2),COLORFF0033;{紫罗兰色--攻击量} STICKLINE(HL10>0,0,HL10,2.7,0),COLORFF0066;STICKLINE(HL10>0,0,HL10,2,1),COLORFF0099;STICKLINE(HL10>0,0,HL10,1.6,0),COLORFF00CC;STICKLINE(HL10>0,0,HL10,0.5,0),COLORFF00FF;HL20:=WINNER(C/1.2)*V;{STICKLINE(((C/1.2)*V),HL20,0,2.1,0)COLORYELLOW;}STICKLINE(HL20>0,0,HL20,3,2),COLOR0035FF; {黄色--潜入量}STICKLINE(HL20>0,0,HL20,2.7,0),COLOR0064FF;STICKLINE(HL20>0,0,HL20,2,1),COLOR0093FF;STICKLINE(HL20>0,0,HL20,1.6,0),COLOR00C2FF;STICKLINE(HL20>0,0,HL20,0.5,0),COLOR00FFFF;HL30:=WINNER(C/1.3)*V;STICKLINE(((C/1.3)*V),HL30,0,2.5,0),COLORRED;STICKLINE(HL30>0,0,HL30,3.2,0),COLOR000066;{红色--拉升量}STICKLINE(HL30>0,0,HL30,2,7),COLOR000077;STICKLINE(HL30>0,0,HL30,2.1,0),COLOR000099;STICKLINE(HL30>0,0,HL30,1.6,0),COLOR0000CC;STICKLINE(HL30>0,0,HL30,0.2,0),COLORCC66FF;MA5:MA(V,5),COLORLIMAGENTA;MA13:MA(V,13),COLORCYAN;DRAWTEXT(CROSS(MA5,MA13),(V *1.05),'★'),COLORYELLOW;{VOL动能均分量}换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;主力能量:=(主力-均量);大户能量:=(大户-均量);中户能量:=(中户-均量);散户能量:=(散户-均量);DRAWTEXT(V>0 AND ISLASTBAR AND ABS(主力能量),V*0.98,IF(主力能量>0 AND 主力能量>REF(主力能量,1),' 机构+',' 机构-')),COLORYELLOW; DRAWTEXT(V>0 AND ISLASTBAR AND ABS(大户能量),V/4*3,IF(大户能量>0 AND 大户能量>REF(大户能量,1),' 大户+',' 大户-')),COLOR0000CC; DRAWTEXT(V>0 AND ISLASTBAR AND ABS(中户能量),V/2,IF(中户能量>0 AND 中户能量>REF(中户能量,1),' 中户+',' 中户-')),COLORMAGENTA;DRAWTEXT(V>0 AND ISLASTBAR AND ABS(散户能量),V/4,IF(散户能量>0 AND 散户能量>REF(散户能量,1),' 散户+',' 散户-')),COLORCYAN;{--------VOL.量能饱和--------}N1:=N;N2:=N1*1.05;N3:=N1+3;SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));量能饱和:IF(SAT>1,1,SAT)*100,COLORYELLOW,NODRAW;中点:=REFDATE(HHV(V,100)/2,DATE);{量能饱和的变色切换}{中点:=REFDATE(HHV(V,240)/2,DATE);}STICKLINE(CURRBARSCOUNT=N1,中点*1.9,中点*1.5,100,1),COLOR00DDDD; STICKLINE(CURRBARSCOUNT=N1,中点*1.88,中点*1.52,量能饱和,0),COLOR0033FF;STICKLINE(CURRBARSCOUNT=N1,中点*1.82,中点*1.58,量能饱和,0),COLOR0077FF;STICKLINE(CURRBARSCOUNT=N1,中点*1.76,中点*1.64,量能饱和,0),COLOR0099FF;STICKLINE(CURRBARSCOUNT=N1,中点*1.7,中点*1.7,量能饱和,0),COLOR00DDFF; DRAWTEXT(CURRBARSCOUNT=N3,中点*1.7,'量能饱和度'),COLORYELLOW;【通达信】VOL动量比(成交量、成交额亿、大盘成交)-指标公式效果图(文档来源:若水财经社区)。

通达信经典量柱主图指标公式

通达信经典量柱主图指标公式

通达信经典量柱主图指标公式黄金柱:=V/REF(V,1)>=2.0;K1:=SUMBARS(黄金柱,1) ;K2:=SUMBARS(黄金柱,2);K3:=SUMBARS(黄金柱,3);K4:=SUMBARS(黄金柱,4);K5:=SUMBARS(黄金柱,5);K6:=SUMBARS(黄金柱,6);K7:=SUMBARS(黄金柱,7);K8:=SUMBARS(黄金柱,8);K9:=SUMBARS(黄金柱,9);K10:=SUMBARS(黄金柱,10);AA:STICKLINE(K1,REF(L,K1-1)*1.002,REF(L,K1-1),5,0),COLORYELLOW;{预定黄金柱}{预定黄金柱:=REF(V,2)>=REF(V,3)*1.99 AND REF(C,2)>REF(O,2)AND REF(V,2)=HHV(V,3) AND C/REF(C,2) >=1.0995 AND REF(L,2)=LLV(L,3);}{预定:STICKLINE(预定黄金柱,H,H,30,0),COLORRED;}{DRAWICON(预定黄金柱,H,19);}{将军柱中的五星上将黄金柱}T60:=V=HHV(V,60);T100:=V=HHV(V,100);T2:=V/REF(VOL,1)>=3;T3:=REF(C,1)/REF( O,1)<3;五星上将:=(T60 AND T2 AND T3) OR (T100 AND T2 AND T3);DRAWICON(五星上将,H,23);{量柱图}C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(涨停,OPEN,CLOSE,-1,0),COLORWHITE;STICKLINE(涨停,H,L,0,0),COLORWHITE;DRAWICON(涨停,L-0.2,11);DRAWTEXT(涨停,L-0.2,' --涨停');跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(跌停,OPEN,CLOSE,-1,0),COLORBLUE;STICKLINE(跌停,H,L,0,1),COLORBLUE;DRAWICON(跌停,H+0.2,2);DRAWTEXT(跌停,H+0.2,' --跌停');{大阳线:=IF((C-C2)*100/C2>=5,1,0) AND IF((C-C2)*100/C2<(10-0.01*100/C2),1,0) OR IF((C-O)*100/O>=5,1,0) AND IF((C-C2)*100/C2<(10-0.01*100/C2),1,0);STICKLINE(大阳线,OPEN,CLOSE,-1,0),COLORRED;STICKLINE(大阳线,H,L,0,1),COLORRED;大阴线:=IF((C2-C)*100/C2>=5,1,0) AND IF((C2-C)*100/C2<(10-0.01*100/C2),1,0) OR IF((O-C)*100/O>=5,1,0) AND IF((C2-C)*100/C2<(10-0.01*100/C2),1,0);STICKLINE(大阴线,OPEN,CLOSE,-1,0),COLORGREEN;STICKLINE(大阴线,H,L,0,1),COLORGREEN;}{MA13:MA(CLOSE,13),COLORWHITE;MA34:MA(CLOSE,34),COLORYELLOW;MA55:MA(CLOSE,55),COLOR9933FF;}{MA4:MA(CLOSE,4),COLORWHITE;MA10:MA(CLOSE,10),COLORYELLOW;MA20:MA(CLOSE,20),COLOR9933FF;MA30:MA(CLOSE,30),COLORLIBLUE;MA60:MA(CLOSE,60),COLORWHITE;MA120:MA(CLOSE,120),COLORLIGREEN;}TY:=C;AA1:=REF(TY,10)=HHV(TY,2*10+1); BB1:=FILTER(AA1,10); C1:=BACKSET(BB1,10+1); HD:=FILTER(C1,10);AA2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(AA2,10); CC2:=BACKSET(B2,10+1); LD:=FILTER(CC2,10);前期高位:REF(H,BARSLAST(HD)),COLOR00FF00,POINTDOT,LINETHICK3;前期低位:REF(L,BARSLAST(LD)),COLORFF00FF,POINTDOT,LINETHICK3;{求位置坐标}PHD:=IF(LLV(L,3)>=REF(H,3),REF(H,3),IF((LLV(L,3)>=REF(C,3) AND REF(C,3)>REF(O,3)),REF(C,3),IF(LLV(L,3)>=REF(O,3) AND REF(C,3)>REF(O,3),REF(O,3),REF(L,3))));{自动画量能平台}{NN 1 300 21}{NN:=21;TTJ:=BARSLAST(REF(倍量黄金柱,NN-1));K0:=TTJ=0;K1:=SUMBARS(K0,1);K2:=SUMBARS(K0,2);K3:=SUMBARS(K0,3);K4:=SUMBARS(K0,4);K5:=SUMBARS(K0,5);K6:=SUMBARS(K0,6);K7:=SUMBARS(K0,7);K8:=SUMBARS(K0,8);K9:=SUMBARS(K0,9);K10:=SUMBARS(K0,10);CCCC1:=REF(C,K1-1);}{在K线图上标示量柱类型}倍量:=DRAWICON((VOL>REF(V,1)*2.0 OR VOL=REF(V,1)*2.0) AND C>REF(C,1),H+0.2,26);低量:=DRAWICON(VOL<REF(LLV(VOL,13),1),H+0.1,2);地量:=DRAWICON(VOL<REF(LLV(VOL,100),1),H+0.1,12);平量:=DRAWICON(ABS(VOL-HHV(REF(VOL,1),5))/HHV(REF(VOL,1),5)<=0.03 OR ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.03,H+0.1,16);倍缩:=DRAWICON(VOL<=REF(V,1)*0.5,H+0.1,27);{画量柱标识:}{1.画倍量黄金柱标识--红箭头图标}倍量黄金柱:=DRAWICON((LLV(L,3)>REF(L,3) OR LLV(L,3)=REF(L,3)) AND HHV(V,3)<REF(V,3) ANDREF(C,3)>REF(O,3) AND REF(V,3)>=2*REF(V,4),H+0.2,1);{2.画梯量黄金柱标识--橘子图标}梯量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) ANDREF(V,5)>REF(V,6) AND REF(V,4)>REF(V,5) AND REF(V,3)>REF(V,4),H,17);{3.画平量黄金柱标识--苹果图标}平量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) ANDREF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,H,19);{4.画立桩量标识--顶部红箭头图标}N:=25;立桩量:=REF(V,3)/REF(MA(V,5),4)>(N/10) ANDREF(V,3)/REF(HHV(V,60),4)>1.5 AND LLV(L,3)>REF(L,3);STICKLINE(倍量,OPEN,CLOSE,-1,0),COLORYELLOW;倍量黄金线:STICKLINE(倍量黄金柱,PHD,PHD,30,0),COLORWHITE;DRAWICON(倍量黄金柱,PHD*1.008,12);DRAWTEXT(倍量黄金柱,PHD*1.010,' 标准黄金柱精准线'),COLORFF00FF;DRAWTEXT(倍量黄金柱,PHD,'================='),COLORWHITE;{平量黄金线:STICKLINE(平量黄金柱,PHD*1.002,PHD,100,0),COLORYELLOW;DRAWTEXT(平量黄金柱,PHD*1.015,'平量黄金线'),COLORLIGREEN ;梯量黄金线:STICKLINE(梯量黄金柱,PHD*1.002,PHD,100,0),COLORYELLOW;DRAWTEXT(梯量黄金柱,PHD*1.015,'梯量黄金线'),COLORFF00FF ;}立桩量标识:DRAWICON(立桩量,H*1.002,1);DRAWTEXT(立桩量,H*1.06,'立'),COLORRED;DRAWTEXT(立桩量,H*1.04,'桩'),COLORRED;DRAWTEXT(立桩量,H*1.02,'量'),COLORRED;{DA:STICKLINE(K4<=30,REF(C,K4-1)*1.002,REF(C,K4-1),10,0),COLORBLUE;EA:STICKLINE(K5<=30,REF(C,K5-1)*1.002,REF(C,K5-1),10,0),COLORBLUE;FA:STICKLINE(K6<=30,REF(C,K6-1)*1.002,REF(C,K6-1),10,0),COLORBLUE;GA:STICKLINE(K7<=30,REF(C,K7-1)*1.002,REF(C,K7-1),10,0),COLORBLUE;HA:STICKLINE(K8<=30,REF(C,K8-1)*1.002,REF(C,K8-1),10,0),COLORBLUE;IA:STICKLINE(K9<=30,REF(C,K9-1)*1.002,REF(C,K9-1),10,0),COLORBLUE;JA:STICKLINE(K10<=30,REF(C,K10-1)*1.002,REF(C,K10-1),10,0),COLORBLUE;}AAA:=CONST(HHV(H,90));TS1:=0+0.03;TS2:=TS1+0.03;TS3:=TS2+0.03;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS1),'<一>.量柱的阶段性拐点标志--空间转化原则:'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS2),' 1.平台起柱:在K线整理平台上突然起柱;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS3),' 2.凹口起柱:在K线逐步回调形成凹口时起柱.常见凹口倍量;'),COLORFF00FF ;TS4:=TS3+0.03;TS5:=TS4+0.03;TS6:=TS5+0.03;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS4),' 3.过顶起柱:过左峰起柱.常见过顶倍量;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS5),' 4.触底起柱:触前期谷底起柱.常见触底倍量.'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS6),'<二>.量柱的集合定性--组合量柱:'),COLORFF00FF ;TS7:=TS6+0.03;TS8:=TS7+0.03;TS9:=TS8+0.03;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS7),' 1.低量柱+倍量柱:后市必大涨!'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS8),' 2.倍量柱+倍量柱:主庄控盘良好,急于拉升!'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS9),' 3.缩倍柱+倍量柱:机会就在眼前!'),COLORFF00FF ;{============================}BBB:=CONST(HHV(H,190));TT1:=0+0.03;TT2:=TT1+0.03;TT3:=TT2+0.03;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT1),'<三>.量柱的三日定性--时间转化原则:'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT2),' 1.后三日价升量缩:转化为黄金柱;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT3),' 2.后三日量柱先阴后阳:该量柱官升一级;'),COLORFF00FF ;TT4:=TT3+0.03;TT5:=TT4+0.03;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT4),' 3.后三日量柱阴阳相间:量柱退化,走势面临调整;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT5),' 4.后三日量柱实体逐步缩小:力量将衰退,面临调整.'),COLORFF00FF ;{底部趋势拐点}VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);VOLUME:=VOL;AAG:=VOL>=REF(V,1)*1.91 AND C>REF(C,1);AA1G:=VOL<REF(LLV(VOL,21),1);AA2G:=VOL<REF(LLV(VOL,55),1);AA3G:=ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.05;MAVOL5:=MA(VOLUME,5);MAVOL35:=MA(VOLUME,35);MAVOL135:=MA(VOLUME,135);VOLUME5:=MA(VOLUME,5);VOLUME35:=MA(VOLUME,35);VOLUME135:=MA(VOLUME,135);买入:=CROSS(VOLUME5,VOLUME135);DRAWICON(买入,L,9);买入1:=CROSS(VOLUME35,VOLUME135);DRAWICON(买入1,L,5);买入2:=CROSS(VOLUME5,VOLUME35);DRAWICON(买入2,L,1);{非常棒}EMA13:=EMA(C,13),COLORWHITE;EMA21:=EMA(C,21),COLORYELLOW;EMA34:=EMA(C,34),COLORFF00FF;EMA60:=MA(C,60),COLORFFCC66;VAR2:=(2*CLOSE+HIGH+LOW)/4;VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←低吸'),COLORLIRED;DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←高抛'),COLORGREEN;DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);VAR9:=CLOSE-REF(CLOSE,5);VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20 );卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);DRAWICON(卖出<0,H+0.05,2);买线:=EMA(CLOSE,2);卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LIN ETHICK3,COLORYELLOW;VC:=((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;S2:=IF(VC>20 AND FILTER(VC< REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLO RGREEN;A0:=(L+H+C*2)/4;A1B:EMA(A0,14),COLORBLUE,LINETHICK2;A2B:=EMA(A0,25),COLORLIBLUE,LINETHICK2;A1X:=(A1B-REF(A1B,1))/REF(A1B,1)*100,NODRAW;A2X:=(A2B-REF(A2B,1))/REF(A2B,1)*100,NODRAW;看多:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1 X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2};逃顶:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A 1X))),DRAWNULL),COLORCYAN,{LINETHICK2};买入持股:IF(A1X>=0,A1B,DRAWNULL)COLORRED,LINETHICK3;卖出空仓:IF(A1X<0 AND A2X<0,A1B,DRAWNULL)COLORGREEN,LINETHICK3;{STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF;STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;};。

【股票指标公式下载】-【通达信】量柱副图(换手)

【股票指标公式下载】-【通达信】量柱副图(换手)

【通达信】量柱副图(换手)-指标公式源码VVOL:IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0; VOL1:VOL,VOLSTICK;VOL5:MA(VOL,5);VOL10:MA(VOL,10);VOL30:MA(VOL,30);换手:VOL*10000/FINANCE(7);BLZ:=VOL>=REF(V,1)*1.95 AND C>REF(C,1);DLZ:=VOL<REF(LLV(VOL,21),1);SLZ:=VOL<=REF(VOL,1) AND REF(V,1)<REF(V,2) AND REF(V,2)<REF(V,3); PLZ:=((VOL>REF(VOL*0.97,1) AND VOL<REF(VOL*1.03,1)) OR(VOL>REF(VOL*0.97,2) AND VOL<REF(VOL*1.03,2)) OR(VOL>REF(VOL*0.97,3) AND VOL<REF(VOL*1.03,3)) OR(VOL>REF(VOL*0.97,4) AND VOL<REF(VOL*1.03,4))) AND V<=MA(V,5) ; GLZ:=VOL>=HHV(V,21);TLZ:=V>=REF(V,1) AND REF(V,1)>=REF(V,2) AND C>O AND REF(C>O,1); SBZ:=V<=REF(V,1)*0.5;STICKLINE(PLZ,0,V,1,0),COLORBLUE{蓝};STICKLINE(GLZ,0,V,1,0),COLORLIRED{粉};STICKLINE(DLZ,0,V,1,0),COLORWHITE{白};STICKLINE(TLZ,0,V,1,0),COLORLIRED{粉};STICKLINE(SLZ,0,V,1,0),COLORWHITE{白};STICKLINE(SBZ,0,V,1,0),COLORYELLOW{白};STICKLINE(BLZ,0,V,1,0),COLORYELLOW{黄};【通达信】量柱副图(换手)-指标公式效果图c(文档来源:若水财经社区)。

通达信换手量比柱指标公式(一)

通达信换手量比柱指标公式(一)

通达信换手量比柱指标公式(一)通达信换手量比柱指标公式简介通达信是一种广泛使用的股票分析软件,其中的换手量比柱指标是一种常用的技术指标。

本文将对该指标的相关公式进行列举和解释,并附上实际示例。

什么是换手量比柱指标换手量比柱指标是用来衡量股票交易量的指标,它可以帮助分析师和投资者判断市场的买入和卖出情况。

该指标一般以柱状图的形式展示,柱子的高度表示相应的交易量比例。

相关公式以下是与通达信换手量比柱指标相关的公式:1.换手率(Turnover Rate)= (当日成交量 / 流通股本)* 100%–公式解释:换手率是表示股票一天内的成交量与流通股本之比,用百分比表示。

–示例:假设某只股票当天成交量为50万股,流通股本为5000万股,则换手率为1%。

2.换手量比(Turnover Volume Ratio)= 当日成交量/ 过去N天平均成交量–公式解释:换手量比是当日成交量与过去N天平均成交量之比,用来衡量当日交易量的相对大小。

–示例:假设过去5天的平均成交量为30万股,当日成交量为50万股,则换手量比为。

3.换手量比柱(Turnover Volume Ratio Bar)= 换手量比 - 1–公式解释:换手量比柱是换手量比减去1,用来表示当日交易量相对于过去平均交易量的相对增减情况。

–示例:假设换手量比为,则换手量比柱为。

总结通过以上公式,我们可以计算出换手率、换手量比以及换手量比柱等指标,用于评估股票的交易活跃程度和市场的买卖情况。

这些指标对于分析股票走势和制定投资策略非常有帮助。

注意:以上公式的示例仅供参考,实际使用时需要根据具体情况进行调整和计算。

通达信公式经典成交量指标共五个

通达信公式经典成交量指标共五个

通达信公式经典成交量指标共五个通达信公式经典成交量指标共五个字号:T|T第一个:{FT-自用VOL}量:VOL,LINETHICK,COLOR00FFFF;STICKLINE(CLOSE>REF(CLOSE,1),量,0,3.5,0),COLOR0054A8;STICKLINE(CLOSE<=REF(CLOSE,1),量,0,3.5,0),COLOR999900;预量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),COLORFF00FF;预量增:预量-REF(V,1),LINETHICK,COLORWHITE;CB:=IF(CAPITAL>1,AMOUNT/VOL/100,(HIGH+LOW+2*CLO SE)/4);空1:=IF((HIGH-LOW)>0 AND CLOSE>CB, ((HIGH-CLOSE)/(HIGH-CB))*((HIGH-CLOSE)/(HIGH-CB))*((HIGH-CB)/(HIGH-LOW)*VOL) ,0);多1:=IF((HIGH-LOW)>0 AND CLOSE>CB, VOL-空1 ,0);多2:=IF((HIGH-LOW)>0 AND CLOSE<=CB, ((CLOSE-LOW)/(CB-LOW))*((CLOSE-LOW)/(CB-LOW))*((CB-LOW)/(HIGH-LOW)*VOL) ,0);空2:=IF((HIGH-LOW)>0 AND CLOSE<=CB, VOL-多2 ,0);多3:=IF((HIGH-LOW)=0 AND CLOSE>REF(CLOSE,1), VOL,0);空3:=IF((HIGH-LOW)=0 AND CLOSE<=REF(CLOSE,1), VOL,0);多方量:多1+多2+多3,NODRAW,COLORRED;空方量:空1+空2+空3,NODRAW,COLORGREEN;STICKLINE(空方量,量,O,3,0),COLOR005A00;STICKLINE(空方量,量,O,2.5,0),COLOR006600;STICKLINE(空方量,量,O,2,0),COLOR006B00;STICKLINE(空方量,量,O,1.5,0),COLOR007700;STICKLINE(空方量,量,O,1,0),COLOR007B00;STICKLINE(空方量,量,0,0.5,0),COLOR009900;STICKLINE(多方量,多方量,O,3,0),COLOR000066;STICKLINE(多方量,多方量,O,2.5,0),COLOR000077;STICKLINE(多方量,多方量,O,2,0),COLOR000099;STICKLINE(多方量,多方量,O,1.5,0),COLOR0000BB;STICKLINE(多方量,多方量,O,1,0),COLOR0000DD;STICKLINE(多方量,多方量,O,0.5,0),COLOR0000FF;多量线:EMA(多方量,3),COLOR00DBDB,LINETHICK2;空量线:EMA(空方量,3),COLORBFBFBF,LINETHICK2;第二个:{FT-量子力学}N:=5;QJ0:=(HIGH+LOW+CLOSE)/3;QJ1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));QJ2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-QJ0);QJ3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);QJ4:=IF(HIGH=LOW,1,QJ0-MIN(CLOSE,OPEN));QJ5:=VOL/(IF(HIGH=LOW,4,HIGH-LOW));QJ6:="MACD.DIF">"MACD.DEA" AND "MACD.DEA"<0;QJ7:="KDJ.K">"KDJ.D" AND "KDJ.D"<30;QJ8:="MACD.DIF"<"MACD.DEA";QJ9:="KDJ.K"<"KDJ.D" AND "KDJ.K">80;特大:QJ4*QJ5,NODRAW;大单:QJ3*QJ5,NODRAW;中单:QJ1*QJ5,NODRAW;小单:QJ2*QJ5,NODRAW;W1:=SUM(大单,N)+SUM(特大,N);W2:=SUM(小单,N)+SUM(中单,N);量振1:=特大>大单 AND 大单>小单;量振2:=特大<小单 AND 大单<小单;标振1:=QJ6 AND QJ7;标振2:=QJ8 AND QJ9;A:=W1-W2;A0:=IF(A>0,A,0);B0:=IF(A<0,A,0);STICKLINE(A0,0,A0,3,0),COLOR000044;STICKLINE(A0,0,A0,2.5,0),COLOR000088;STICKLINE(A0,0,A0,1.5,0),COLOR0000AA;STICKLINE(A0,0,A0,1,0),COLOR0000CC;STICKLINE(B0,0,-B0,3,0),COLOR004400;STICKLINE(B0,0,-B0,2.5,0),COLOR008800;STICKLINE(B0,0,-B0,1.5,0),COLOR00AA00;STICKLINE(B0,0,-B0,1,0),COLOR00CC00;周趋势:MA(A,5),COLORFFFFFF;平滑值:EMA(周趋势,5),COLOR00FFFF;STICKLINE(标振 1 AND 量振 1 AND 周趋势>平滑值,0,A0,3,0),COLORYELLOW;DRAWTEXT(标振1 AND 量振1 AND 周趋势>平滑值,A0,'振'),COLORYELLOW;第三个:{FT-提前量}N1:=12;N2:=26;M:=9;CC:=(C+L+H+O)/4;DIFF:=EMA(CC,5)-EMA(CC,13),COLORBB00BB,LINETHICK2;DEA:=EMA(DIFF,4),COLOR00BB00,LINETHICK2;MACD:=XMA((DIFF-DEA)*200,2),COLORSTICK;红柱持股:MACD,NODRAW;黄色高抛:MACD,NODRAW;蓝柱持币:MACD,NODRAW;紫色反弹:MACD,NODRAW;STICKLINE(MACD<REF(MACD,1)ANDMACD>0,0,MACD,6,0 ),COLOR003333;MACD>0,0,MACD,3.5,0 ),COLOR004444;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,3,0 ),COLOR005555;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2.5,0 ),COLOR007777;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR009999;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.5,0 ),COLOR00BBBB;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1,0 ),COLOR00DDDD;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0.5,0 ),COLOR00FFFF;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,6 ,0 ),COLOR000033;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,3.5 ,0 ),COLOR000044;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,3 ,0 ),COLOR000055;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2.5 ,0 ),COLOR000077;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2 ,0 ),COLOR000099;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.5 ,0 ),COLOR0000BB;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1 ,0 ),COLOR0000DB;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0.5 ,0 ),COLOR0000FF;MACD<0,0,MACD,6,0 ),COLORFF00CA;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,3.5,0 ),COLORFF00CC;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,3,0 ),COLORFF00DB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2.5,0 ),COLORFF00DD;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLORFF00DF;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.5,0 ),COLORFF00EE;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1,0 ),COLORFF00EF;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,0.5,0 ),COLORFF00FF;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,6,0 ),COLOR333300;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,3.5,0 ),COLOR444400;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,3,0 ),COLOR555500;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2.5,0 ),COLOR777700;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLOR999900;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.5,0 ),COLORBBBB00;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1,0 ),COLORDDDD00;MACD<0,0,MACD,0.5,0 ),COLORFFFF00;DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;DEAA:=EMA(DIF,9);RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;K:=SMA(RSV,2,1);D:=SMA(K,2,1);J:=3*K-2*D;主流资金:=(EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3))/100, COLORRED,LINETHICK2;非主流资金:=(EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3))/100,COLORGREEN,LINETHICK2;KJ共振:CROSS(DIF,DEAA) AND CROSS(K,D) AND 主流资金>非主流资金;DRAWTEXT(KJ共振,红柱持股,'B'),COLORGREEN;四连阳:EVERY(红柱持股>REF(红柱持股,1),4),NODRAW;LAST((H-L)/REF(C,1)<0.1,20,0) AND VOL>REF(VOL,1)*2 AND C>REF(C,1)*1.03AND "DMI.PDI">"DMI.MDI" AND CROSS("DMI.ADX","DMI.ADXR")AND"DMI.ADXR">"DMI.MDI" AND "DMI.PDI">"DMI.ADX" AND"KDJ.D">REF("KDJ.D",1);第四个:{FT-L001}{N 1.00 100.00 15.0}{M1:5;M2:10;M3:20;M4:60}公积金:FINANCE(18),COLORRED,NODRAW;现金流亿:FINANCE(26)/100000000,NODRAW;市值:FINANCE(40)/100000000,COLORFF00FF,NODRAW;SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100);能量:=SAT,VOLSTICK;DRAWTEXT(FILTER(SAT>=100,100),VOL*1.06,'爆'),COLORRED;DRAWTEXT(SAT=100 AND ISLASTBAR,VOL*1.03,'发'),COLORYELLOW;VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));成交:=VOL;买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 *((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) +(OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));买卖差:=(买盘 + 卖盘);STICKLINE((买卖差< 0),0,买卖差,3,0),LINETHICK3,COLOR339933;STICKLINE((买卖差< 0),0,买卖差,2,0),LINETHICK3,COLOR33AA33;STICKLINE((买卖差< 0),0,买卖差,1,0),LINETHICK3,COLOR33DD33;STICKLINE((买卖差< 0),0,买卖差,0.5,0),LINETHICK3,COLOR33FF33;量比1:=(VOL / MA(VOL,5));VAR10:=买盘;VAR20:=卖盘;JX1:=BARSSINCE(买盘);JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120);JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);VAR30:=MA(VOL,JY2);动神:=买盘;鬼力:=VAR20;神比:=(动神 / VAR30);鬼比:=(鬼力 / VAR30);VAR2:=(HIGH - LOW);VAR3:=ABS((OPEN - CLOSE));VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);VAR6:=((VAR3 / VAR2) * VOL);VAR7:=((VAR4 / VAR2) * VOL);VAR8:=((VAR5 / VAR2) * VOL);VAR9:=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);VARE:=((SMA(MAX((CLOSE - VARD),0),6,1) / SMA(ABS((CLOSE - VARD)),6,1)) * 100);VAR40:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),VAR6,动神) + 动神) / 2);VAR41:=((IF(((VAR7 > VAR6) AND (VAR7 > VAR8)),VAR7,动神) + 动神) / 2);VAR42:=((IF(((VAR8 > VAR6) AND (VAR8 > VAR7)),VAR8,动神) + 动神) / 2);VAR50:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND(CLOSE < OPEN)),VAR6,鬼力) + 鬼力) / 2);三日上攻:=MA((((VAR40 + VAR41) + VAR42) / 3),JY2);三日下攻:=MA(VAR50,JY2);多头:STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,3,0),COLOR000088;STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,2,0),COLOR0000AA;STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,1,0),COLOR0000DD;STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,0.5,0),COLOR0000FF;空头:STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,3,0),COLOR008800;STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,2,0),COLOR00AA00;STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,1,0),COLOR00DD00;STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,0.5,0),COLOR00FF00;STICKLINE((鬼力 > 0),鬼力,0,4,0),COLORFF3399;加仓:STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE > OPEN)),0,VAR6,3,0),COLOR880088;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE > OPEN)),0,VAR6,2,0),COLORAA00AA;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE > OPEN)),0,VAR6,1,0),COLORDD00DD;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE > OPEN)),0,VAR6,0.5,0),COLORFF00FF;减仓:STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE < OPEN)),0,VAR6,3,0),COLOR880000;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE < OPEN)),0,VAR6,2,0),COLORBB0000;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE < OPEN)),0,VAR6,1,0),COLORDD0000;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE < OPEN)),0,VAR6,0.5,0),COLORFF0000;洗盘:STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,3,0),COLOR999999;STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,2,0),COLORAAAAAA;STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,1,0),COLORDDDDDD;STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,0.6,0),COLORFFFFFF;高卖:STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,3,0),COLOR008888;STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,2,0),COLOR00AAAA;STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,1,0),COLOR00DDDD;STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,0.5,0),COLOR00FFFF;相对地量:=STICKLINE(((VAR9 > 2) AND (VOL < (MA(VOL,5) / 2))),0,VOL,3,0);白洗盘进:1,NODRAW,COLORWHITE;黄高抛低吸:1,NODRAW,COLOR00FFFF;粉庄进追:1,NODRAW,COLORFF00FF;兰绿庄撤卖:1,NODRAW,COLOR00FF00;MAV1:MA(V,M1),LINETHICK1,COLOR00FF00;MAV2:=MA(V,M2),LINETHICK1,COLORFF00FF;IF(MA(V,5)>=REF(MA(V,5),1),MA(V,5),DRAWNULL),COLORRE D,LINETHICK2;DRAWICON(V>=3*REF(V,1),V*1.01,23);DRAWICON(V>=2*REF(V,1),V*0.5,25);第五个:{变色成交量东郭专用系列副图}万手:VOL/10000,LINETHICK0;AA:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);预测:AA/10000,LINETHICK0;BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买:=BUYVOL;卖:=SELLVOL;主动买:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<OPEN,BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));主买:主动买/10000,COLORFF00FF,LINETHICK0;主动卖:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-BB*(HIGH-LOW),0-VOL/2));主卖:-主动卖/10000,COLORGREEN,LINETHICK0;差额:主买+主卖,LINETHICK0;STICKLINE(CLOSE=REF(CLOSE,1),0,VOL,3.5,0),COLORWHITE;STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,3.5,0),COLORRED;STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,3.5,0),COLORGREEN;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.5 , 0 ) , COLORYELLOW ;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.2 , 0 ) , COLOR0088FF ;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 2.7 , 0 ) , COLOR00AAFF ;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 2.1 , 0 ) , COLOR00CCFF ;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 1.5 , 0 ) , COLOR22FFFF ;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.9 , 0 ) , COLOR66FFFF ;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.3 , 0 ) , COLOR99FFFF ;STICKLINE(主动买>0,0,主动买,3.2,0),COLOR000033;STICKLINE(主动买>0,0,主动买,2.7,0),COLOR000066;STICKLINE(主动买>0,0,主动买,2.1,0),COLOR000099;STICKLINE(主动买>0,0,主动买,1.5,0),COLOR0000CC;STICKLINE(主动买>0,0,主动买,0.9,0),COLOR0000FF;STICKLINE(主动买>0,0,主动买,0.3,0),COLORCC66FF;STICKLINE(主动卖<0,VOL,主动买,3.2,0),COLOR990000;STICKLINE(主动卖<0,VOL,主动买,2.7,0),COLORCC0000;STICKLINE(主动卖<0,VOL,主动买,2.1,0),COLORFF4400;STICKLINE(主动卖<0,VOL,主动买,1.5,0),COLORFF8800;STICKLINE(主动卖<0,VOL,主动买,0.9,0),COLORFFCC00;STICKLINE(主动卖<0,VOL,主动买,0.3,0),COLORCYAN;MA5:MA(V,5),COLORWHITE;MA35:MA(V,35),COLORYELLOW;MA135:MA(V,135),COLORGREEN;。

通达信量柱指标公式源码

通达信量柱指标公式源码

通达信量柱指标公式源码
```
/*通达信量柱指标公式*/
/*参数:N1(短周期),N2(长周期)*/
/*输出:BAR(量柱指标)*/
C:=C;
V:=V;
AA:MA(C,N1)/MA(C,N2)*100;
VAR:=CROSS(AA,CROSS(MA(V,N1)/MA(V,N2)*100,0));
VAR1:REF(VAR,1);
BAR:IF(VAR>VAR1,SUM(VAR-VAR1,20),0);
```
上述代码是通达信量柱指标的源码实现。

其中,N1和N2是用户可以
自定义的短期和长期参数,用来设置计算的周期长度。

C表示收盘价序列,V表示成交量序列。

公式的计算过程如下:
1.首先计算AA=MA(C,N1)/MA(C,N2)*100,表示当日短周期均线除以
长周期均线,并乘以100。

2.然后计算VAR=CROSS(AA,CROSS(MA(V,N1)/MA(V,N2)*100,0)),表
示当AA上穿0和当AA上穿成交量的均线之间时,VAR值为1,否则为0。

3.接下来计算VAR1=REF(VAR,1),表示将VAR值向前引用一天。

4.最后计算BAR=IF(VAR>VAR1,SUM(VAR-VAR1,20),0),表示如果VAR 大于VAR1,则累计20天VAR-VAR1的值,否则为0。

BAR即为量柱指标,代表了成交量的变化情况。

当BAR值大于0时,表示当日成交量较前一天有所增加,当BAR值小于0时,表示当日成交量较前一天有所减少。

通达信倍量成交量指标公式

通达信倍量成交量指标公式

通达信倍量成交量指标公式M1:=5;M2:=35;M3:=135;〖量〗:VOL,NODRAW,VOLSTICK;STICKLINE(V&gt;=3*REF(V,1),V/3,V/3,3.9,0),COLORWHITE; STICKLINE(V&gt;=2*REF(V,1),V/2,V/2,3.9,0),COLORYELLOW; 流通〖亿〗:CAPITAL/1000000,LINETHICK0;内外比:DYNAINFO(51),COLORYELLOW,NODRAW;单日量比:V/REF(V,1),COLORWHITE,NODRAW;五日量比:V/(REF(MA(V,5),1)/240*FROMOPEN),COLORYELLOW,NO DRAW;5换:SUM(100*V/CAPITAL,5),LINETHICK0;10换:SUM(100*V/CAPITAL,10),LINETHICK0;20换:SUM(100*V/CAPITAL,20),LINETHICK0;VVOL:IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;VOLUME:VOL,VOLSTICK;MAVOL1:MA(VOLUME,M1);MAVOL2:MA(VOLUME,M2);MAVOL3:MA(VOLUME,M3);虚拟VOL:=IF(CURRBARSCOUNT=1 ANDPERIOD=2,V*240/FROMOPEN,DRAWNULL),NODRAW; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=2,虚拟VOL,0,-1,-1),NODRAW;换手率:V/CAPITAL*100,NODRAW;虚量:VVOL;虚换手:VVOL/CAPITAL*100;十日换手:SUM(V/CAPITAL*100,3),COLORLICYAN,NODRAW; 量比:V/REF(MA(V,5),1);倍量:=(V&gt;REF(V,1)*2 OR 虚量&gt;REF(V,1)*2) ANDC&gt;REF(C,1);STICKLINE(倍量,V,0,2,0),COLORYELLOW;倍缩量:=(V&lt;HHV(REF(V,1),5)/2 OR 虚量&lt;HHV(REF(V,1),5)/2) AND C&lt;REF(C,1);STICKLINE(倍缩量,V,0,2,0),COLORRED;STICKLINE((V&gt;REF(V,1) AND REF(倍量,1)=1) ANDC&gt;REF(C,1),0,V,2,0),COLORYELLOW;STICKLINE((V&gt;REF(V,1) AND REF(V,1)&gt;REF(V,2) AND REF(倍量,2)=1) AND C&gt;REF(C,1),0,V,2,0),COLORYELLOW; STICKLINE((V&gt;REF(V,1) AND REF(V,1)&gt;REF(V,2) AND REF(V,2)&gt;REF(V,3) AND REF(倍量,3)=1) ANDC&gt;REF(C,1),0,V,2,0),COLORYELLOW;STICKLINE((V&gt;REF(V,1) AND REF(V,1)&gt;REF(V,2) AND REF(V,2)&gt;REF(V,3) AND REF(V,3)&gt;REF(V,4) AND REF(倍量,4)=1) AND C&gt;REF(C,1),0,V,2,0),COLORYELLOW; STICKLINE((V&gt;REF(V,1) AND REF(V,1)&gt;REF(V,2) AND REF(V,2)&gt;REF(V,3) AND REF(V,3)&gt;REF(V,4) ANDREF(V,4)&gt;REF(V,5) AND REF(倍量,5)=1) ANDC&gt;REF(C,1),0,V,2,0),COLORYELLOW;。

通达信成交量资金流指标公式

通达信成交量资金流指标公式

通达信成交量资金流指标公式V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);HY1:=REF(EMA(V1,3),1);多空趋势:=(MA((CLOSE - HY1) * 10,2))*0.1;操盘4:STICKLINE(多空趋势>=0 AND 多空趋势>=REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORRED;减仓4:STICKLINE(多空趋势>=0 AND 多空趋势< REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0), COLORRED;反弹4:STICKLINE(多空趋势<0 AND 多空趋势>=REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORGREEN;寻底4:STICKLINE(多空趋势<0 AND 多空趋势< REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(多空趋势>=0,6,6.3),' 多空'),COLORWHITE;换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;成交量:V,COLORWHITE,NODRAW;主力能量:(主力-均量)COLORMAGENTA,NODRAW;大户能量:(大户-均量)COLORYELLOW,NODRAW;中户能量:(中户-均量)COLORLIBLUE,NODRAW;散户能量:(散户-均量)COLORBLUE,NODRAW;操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORYELLOW;减仓:STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORRED;反弹:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORGREEN;寻底:STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,4.2,4.8),' 机构'),COLORMAGENTA;操盘1:STICKLINE(大户能量>=0 AND 大户能量>=REF(大户能量,1),3,3+大户能量,1.5,0),COLORWHITE;减仓1:STICKLINE(大户能量>=0 AND 大户能量< REF(大户能量,1),3,3+大户能量,1.5,0),COLORRED;反弹1:STICKLINE(大户能量<0 AND 大户能量>=REF(大户能量,1),3,3+大户能量,1.5,0),COLORGREEN;寻底1:STICKLINE(大户能量<0 AND 大户能量< REF(大户能量,1),3,3+大户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(大户能量>=0,2.7,3.3),' 大户'),COLORYELLOW;操盘2:STICKLINE(中户能量>=0 AND 中户能量>=REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORRED;减仓2:STICKLINE(中户能量>=0 AND 中户能量< REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORRED;反弹2:STICKLINE(中户能量<0 AND 中户能量>=REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORGREEN;寻底2:STICKLINE(中户能量<0 AND 中户能量< REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(中户能量>=0,1.2,1.8),' 中户'),COLORLIBLUE;操盘3:STICKLINE(散户能量>=0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORRED;减仓3:STICKLINE(散户能量>=0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORRED;反弹3:STICKLINE(散户能量<0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;寻底3:STICKLINE(散户能量<0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(散户能量>=0,-0.3,0.3),' 散户'),COLORBLUE;JZ:=V/(ABS(主力能量)+ABS(大户能量)+ABS(中户能量)+ABS(散户能量));ZLCJ:=JZ*ABS(主力能量);DHCJ:=JZ*ABS(大户能量);ZHCJ:=JZ*ABS(中户能量);SHCJ:=JZ*ABS(散户能量);机构量:ZLCJ,COLORMAGENTA,NODRAW;大户量:DHCJ,COLORYELLOW,NODRAW;中户量:ZHCJ,COLORLIBLUE,NODRAW;散户量:SHCJ,COLORBLUE,NODRAW;。

通达信成交量指标公式

通达信成交量指标公式

通达信成交量指标公式1.量价背离指标:量价背离是指在股价和成交量之间出现的反向走势现象,常用的指标有OBV、MAVOL等。

其中,OBV(On-Balance Volume)是由Joseph E. Granville于1963年提出的,通过分析成交量的变动来预测股价的走势。

OBV指标的计算公式如下:如果当天收盘价大于前一天的收盘价,则OBV值等于前一天的OBV值加上当天的成交量。

如果当天收盘价小于前一天的收盘价,则OBV值等于前一天的OBV值减去当天的成交量。

如果当天收盘价等于前一天的收盘价,则OBV值等于前一天的OBV值。

根据OBV的数值变化和价格的走势,可以判断股价的强弱和可能的趋势转折点。

2.成交量买卖力度指标:成交量买卖力度指标用于衡量市场买卖力量的活跃度,常用的指标有VOL、VMA等。

其中,VOL(Volume)表示其中一时间段的成交量大小,可以用来判断市场交易活跃度。

VOL指标的计算公式如下:如果当天收盘价大于等于前一天的收盘价,则VOL值等于当天的成交量。

如果当天收盘价小于前一天的收盘价,则VOL值等于当天的成交量的负值。

根据成交量买卖力度指标的数值变化,可以判断市场的买卖力量和市场的走势。

3.资金流向指标:资金流向指标用于衡量市场的资金流动情况,常用的指标有VR、CR 等。

其中,VR(Volume Ratio)指标是一种相对价格与成交量的比例关系指标,通过比较买入成交量和卖出成交量的大小来判断市场的买卖意愿。

VR指标的计算公式如下:VR=5日内上涨股的成交量之和/5日内下跌股的成交量之和一般情况下,VR指标数值的变化范围为0至100,当VR指标数值大于80时,说明市场可能出现超买的情况;当VR指标数值小于20时,说明市场可能出现超卖的情况。

综上所述,通达信成交量指标公式主要包括量价背离指标、成交量买卖力度指标和资金流向指标。

这些指标可以通过对成交量数据的分析和计算,来辅助投资者判断股票市场的买卖力量和资金流动情况,进而指导投资决策。

通达信笔均量柱状图指标公式

通达信笔均量柱状图指标公式

通达信笔均量柱状图指标公式展开全文VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));买卖差:=(买盘 + 卖盘);STICKLINE((买卖差 < 0),0,买卖差,3,0),COLOR33FF33;量比:=(VOL / MA(VOL,5));JX1:=BARSSINCE(买盘);JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120);JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);VAR30:=MA(VOL,JY2);神比:=(买盘 / VAR30);鬼比:=(卖盘 / VAR30);VAR2:=(HIGH - LOW);VAR3:=ABS((OPEN - CLOSE));VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);VAR6:=((VAR3 / VAR2) * VOL);VAR7:=((VAR4 / VAR2) * VOL);VAR8:=((VAR5 / VAR2) * VOL);VAR9:=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);VARE:=((SMA(MAX((CLOSE - VARD),0),6,1) / SMA(ABS((CLOSE - VARD)),6,1)) * 100);DRAWTEXT(((DATE > 700101) AND CROSS(84,VARE)),HIGH,'■卖出'),COLORF2A3A4;VAR40:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),VAR6,买盘) + 买盘) / 2);VAR41:=((IF(((VAR7 > VAR6) AND (VAR7 > VAR8)),VAR7,买盘) + 买盘) / 2);VAR42:=((IF(((VAR8 > VAR6) AND (VAR8 > VAR7)),VAR8,买盘) + 买盘) / 2);VAR50:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),VAR6,卖盘) + 卖盘) / 2);三日上攻:=MA((((VAR40 + VAR41) + VAR42) / 3),JY2);三日下攻:=MA(VAR50,JY2);多头:STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,3,1),COLOR0000FF;空头:STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,3,1),COLOR00FF00;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),0,VAR6,2,0),COLOR00FFFF;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),0,VAR6,2,0),COLORFF0000;STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,2,0),COLORFFFFFF;STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,2,0),COLORFF00FF;STICKLINE((VOL > (MA(VOL,5) * 2.5)),0,VOL,1,0);STICKLINE((买盘 > 0),买盘,0,1,0),COLOR0000FF;上攻均量:=MA(买盘,JY1);下攻均量:=MA(卖盘,JY1);DRAWTEXT(((((((((VAR7 > VAR6) AND (VARA > 2)) AND (VAR9 > VAR8)) AND (CLOSE > MA(CLOSE,5))) AND (CLOSE > MA(CLOSE,30))) AND (HIGH > MA(CLOSE,60))) AND (VOL > MA(VOL,5))) AND (VAR7 >= MA(VOL,5))),VOL,'▼出货');DRAWTEXT(((((((VAR8 > VAR6) AND (VAR8 > VAR7)) AND (VARA < (0 - 2))) AND (CLOSE < MA(CLOSE,30))) AND (VAR8 < (MA(VOL,5) / 2))) AND (MA(VOL,5) < MA(VOL,10))),VOL,'●低进');DRAWTEXT((((((VAR6 > (MA(VOL,5) * 2)) AND (VAR6 >= VAR7)) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)) OR ((VOL > (MA(VOL,5) * 3)) AND VARB)),VOL,'◆强势');DRAWTEXT((((((量比 > 1) AND ((买盘 / 三日上攻) > 1.58)) AND IF((三日上攻 > 上攻均量),(三日上攻 > 三日下攻),(三日上攻 > REF(三日上攻,1)))) AND (三日下攻< REF(三日下攻,1))) AND ((((CLOSE - REF(CLOSE,3)) / REF(CLOSE,3)) * 100) < 14)),(买盘* 1.3),'★参与'),COLOR99FF00;换手率:=((VOL / CAPITAL) * 100);DRAWTEXT((((VOL / REF((SUM(VOL,5) / 5),1)) >= 2) AND (换手率> 1)),(VOL * 1.1),'●量变'),COLOR00FFFF;。

相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

【通达信】量柱成交量(流通、内外比、单日量比、现量)-指标公式源码
VOL,VOLSTICK;
STICKLINE(V>=3*REF(V,1),V/3,V/2.5,3.9,0),COLORWHITE;
STICKLINE(V>=2*REF(V,1),V/2,V/1.7,3.9,0),COLORYELLOW;
流通〖亿〗:CAPITAL/1000000,LINETHICK0;
内外比:DYNAINFO(51),COLORYELLOW,LINETHICK0;
单日量比:V/REF(V,1),COLORWHITE,LINETHICK0;
五日量比:V/(REF(MA(V,5),1)/240),COLORYELLOW,LINETHICK0;
5换:SUM(100*V/CAPITAL,5),LINETHICK0;
10换:SUM(100*V/CAPITAL,10),LINETHICK0;
20换:SUM(100*V/CAPITAL,20),LINETHICK0;
主力启动线:MA(VOL,5);
主力洗盘线:MA(VOL,40);
资金异动线:MA(VOL,135);
DRAWTEXT(CROSS(主力启动线,主力洗盘线)AND V>主力洗盘线 AND V>资金异动线AND 主力洗盘线<资金异动线,V,'穿三线');
T1:=COUNT(V>REF(V,1)*2 ,4)=1;
T2:=COUNT(V<REF(V,1) AND L>MIN(L,4) AND L>REF(L,1),3)=3 ;
T3:T1 AND T2;
倍量:V/REF(V,1)>=2 AND C-REF(C,1)>0;
DRAWTEXT(倍量,H,'倍'),COLORYELLOW;
缩倍量:V/REF(V,1)<=0.5;
DRAWTEXT(缩倍量,L,'半'),COLORYELLOW;
连跌:LAST(V<REF(V,1),2,1);
现量:DYNAINFO(8);
预量:DYNAINFO(8)*240/FROMOPEN;
STICKLINE(倍量,0,VOL,2,0),COLORYELLOW;{原宽度为8,改为2}; STICKLINE(缩倍量,0,VOL/2,2,0),COLORWHITE;{原宽度为8,改为2};
【通达信】量柱成交量(流通、内外比、单日量比、现量)-指标公式效果图
(文档来源:若水财经社区)。

相关文档
最新文档