通达信金银成交量指标公式源码副图

{指标介绍:
1、这个指标的柱线部分分为红蓝和黄绿两个区间,红蓝一般处于上升或出货阶段,黄绿处于整理或下跌阶段。
2、更重要的是里面的金、银、铜、铁、顶,它很好的描绘了票价与成交量运行的互动过程。
3、当量柱处于金、银区间(区间,不是单根柱)时先别急着抄底,可以等其运行到铜、铁区间时再进行操作。
4、成交量到顶区间时可结合K线位置进行判断。}

VAR1:=MA(vol,5);
VAR2:=MA(VOL,40);
VAR3:=V*100/CAPITAL;
VAR4:=VOL/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
VAR5:=IF(C>OPEN,VAR4*(HIGH-LOW),IF(C<OPEN,VAR4*((HIGH-OPEN)+(C-LOW)),VOL/2));
VAR6:=IF(C>OPEN,0-VAR4*((HIGH-C)+(OPEN-LOW)),IF(C<OPEN,0-VAR4*(HIGH-LOW),0-VOL/2));
VAR7:=HHV(V,90);
VAR8:=LLV(V,90);
VAR9:=VAR8+(VAR7-VAR8)*0.06;
VAR10:=VAR8+(VAR7-VAR8)*0.28;
VAR18:=VAR8+(VAR7-VAR8)*0.50;
VAR19:=VAR8+(VAR7-VAR8)*0.75;
VOLUME:VOL,VOLSTICK;
新股成交量:IF(BARSCOUNT(CLOSE)<40,VOL,DRAWNULL),VOLSTICK;
成交量(手):VOL,COLORWHITE,NODRAW;
调整周期:IF(VAR1<VAR2,BARSLAST(crOSS(VAR2,VAR1))+1,BARSLAST(CROSS(VAR2,VAR1))-BARSLAST(CROSS(VAR1,VAR2))),NODRAW;
调整总换手:IF(VAR1<VAR2,SUM(VAR3,BARSLAST(CROSS(VAR2,VAR1))+1),SUM(VAR3,BARSLAST(CROSS(VAR2,VAR1))+1)-SUM(VAR3,BARSLAST(CROSS(VAR1,VAR2))+1)),NODRAW;
调整均换手:调整总换手/调整周期,NODRAW;
虚拟成交量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
放量上涨:C/REF(C,1)>=1.01 AND V/REF(V,1)>=1.5 AND V>MA(V,5) AND REF(V,1)/REF(MA(V,5),1)<=1.8,NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,虚拟成交量,0,4,-1),COLOR00C0C0;
STICKLINE(VAR5>VAR6 AND VAR1>=VAR2,VOL,0,3,0),COLOR0000AA;
STICKLINE(VAR5>VAR6 AND VAR1>=VAR2,VAR5,0,2.5,0),COLOR0000BB;
STICKLINE(VAR5>VAR6 AND VAR1>=VAR2,VAR5,0,1.5,0),COLOR0000CC;
STICKLINE(VAR5>VAR6 AND VAR1>=VAR2,VAR5,0,1,0),COLOR0000EE;
STICKLINE(VAR6<VAR5 AND VAR1>=VAR2,VAR5,VAR5+ABS(VAR6),3,0),COLOR7B7B00;
STICKLINE(VAR6<VAR5 AND VAR1>=VAR2,VAR5,VAR5+ABS(VAR6),2.5,0),COLOR909000;
STICKLINE(VAR6<VAR5 AND VAR1>=VAR2,VAR5,VAR5+ABS(VAR6),1.5,0),COLORA8A800;
STICKLINE(VAR6<VAR5 AND VAR1>=VAR2,VAR5,VAR5+ABS(VAR6),1,0),COLORCECE00;
STICKLINE(VAR5>VAR6 AND VAR1<VAR2,0,VAR5,3,0),COLORRED;
STICKLINE(VAR5>VAR6 AND VAR1<VAR2,0,VAR5,2.5,0),COLOR0066FF;
STICKLINE(VAR5>VAR6 AND VAR1<VAR2,0,VAR5,1.5,0),COLOR0099FF;
STICKLINE(VAR5>VAR6 AND VAR1<VAR2,0,VAR5,1,0),COLORYELLOW;
STICKLINE(VAR6<VAR5 AND VAR1<VAR2,VAR5,VAR5+ABS(VAR6),3,0),COLOR007B00;
STICKLINE(VAR6<VAR5 AND VAR1<VAR2,VAR5,VAR5+ABS(VAR6),2.5,0),COLOR009000;
STICKLINE(VAR6<VAR5 AND VAR1<VAR2,VAR5,VAR5+ABS(VAR6),1.5,0),COLOR00A800;
【金】:REFDATE(VAR9,DATE),COLOR00FFFF;
【银】:REFDATE(VAR10,DATE),COLORFFFFFF;
【铜】:REFDATE(VAR18,DATE),COLORLIRED;
【铁】:REFDATE(VAR19,DATE),COLORRED;
【顶】:REFDATE(HHV(V,90),DATE),COLORCYAN;



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

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

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