以下是大智慧OBV用于分时.加免费内外盘和收费逐笔的OBV副图公式

大智慧OBV用于分时.加免费内外盘和收费逐笔的OBV副图公式

把OBV用于分时其中:—-
【1】股价的OBV.就是把股价涨跌的成交量联系在一起.
OBV:SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0);
【2】把分笔的主动买卖的净量的增减的成交量联系起来的OBV.
分笔V:SUM(IF(分笔买卖>REF(分笔买卖,1),VOL,IF(分笔买卖<REF(分笔买卖,1),-VOL,0)),0);
【3】收费的逐笔买卖总净量的增减的成交量联系起来的OBV.
合笔买:=sum(TRANSACTVOL(1,0)*C*100/10000,0);
合笔卖:=sum(TRANSACTVOL(2,0)*C*100/10000,0);
合笔买卖:=合笔买-合笔卖;
逐笔V:SUM(IF(合笔买卖>REF(合笔买卖,1),VOL,IF(合笔买卖<REF(合笔买卖,1),-VOL,0)),0);
【4】图上的成交量立柱是和分笔的净量的增减关联的—–柱的长短可调.防止压缩图面.
免费用户在没有下载【DDE】的数据时看分笔.下载DDE数据后可以对比.你会发现它们竟然十分相似.我们这个发现给广大免费用户带来福音.因为收费的逐笔它在盘口十分关键.它和股价的涨跌息息相关.而赫赫有名的DDX和股价往往不是正相关.在分时DDX英雄无用武之地.而逐笔用处可大了.就是他调控股价涨跌.
现在我们免费用户利用分笔的主动买卖替代逐笔总量.判断涨跌的根源.正是免费用户求之不得呢.而且中午盘后还可以对比.
必须说清楚替代就是不完全一致.有时一致有时大不一样.这由于统计的方法.时间间隔之差引起,不可能分笔数据完全和逐笔数据一样.我检查过如果没有特大量的成交.基本还是具有使用价值的.本公式免费.收费两用.
引用公式还是“分笔买卖”
 

input:k(10,0,100);
DRAWRECTREL(-1,0,1000,1000,RGB(0,0,20)),color00FF00,LINETHICK2,LAYER7;
0,DOTLINE,LAYER0;
{股价}
OBV:SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0),color00FFff,linethick2;;
DRAWTEXT( BARSTATUS=2,OBV ,’OBV’ ),Culor00ffFF,LINETHICK2;

{分笔–免费}
分笔买卖:”分笔买卖.主动买#tick”-“分笔买卖.主动卖#tick”,color0000FF,linethick0;
分笔V:SUM(IF(分笔买卖>REF(分笔买卖,1),VOL,IF(分笔买卖<REF(分笔买卖,1),-VOL,0)),0),color0000ff,linethick2;;
DRAWTEXT( BARSTATUS=2,分笔V ,’分笔OBV’ ),Culor0000FF,LAYER6,LINETHICK2;
{分笔–成交量}
STICKLINE(分笔买卖>=ref(分笔买卖,1),0,V*K,2,0),COLOR0000FF,linethick1;
STICKLINE(分笔买卖<ref(分笔买卖,1),0,V*K,2,0),COLOR00FF00,linethick1;
买涨:=IF(分笔买卖>=REF(分笔买卖,1),VOL,0);
买涨占:=SUM(买涨,0)/SUM(V,0)*100;
DRAWTEXTabs(500,35,’【盘差升VOL占:’+NUMTOSTRN(买涨占,1)+’%】’ ),LINETHICK2,Culor0000FF;
买跌:=IF(分笔买卖<REF(分笔买卖,1),VOL,0);
买跌占:=SUM(买跌,0)/SUM(V,0)*100;
DRAWTEXTabs(680,35,’【盘差降VOL占:’+NUMTOSTRN(买跌占,1)+’%】’ ),LINETHICK2,Culor00FF00;
买涨跌量差:=(买涨占-买跌占);
DRAWRECTABS(480,54 ,480+(买涨占+买跌占)*3.8 ,60, rgb(0,255,0)),COLOR00ff00,LAYER4;
DRAWRECTABS(480,54 ,480+(买涨占)*3.68 ,60, rgb(255,0,0)),COLOR0000FF,LAYER2;
DRAWTEXTABS(560,67,IFS((买涨占>买跌占),’【盘差对应VOL差】▄ ‘+NUMTOSTRN(买涨跌量差,2)+’%’,”)),LINETHICK2,Culor0000FF;
DRAWTEXTABS(560,67,IFS((买涨占<买跌占),’【盘差对应VOL差】▄ ‘+NUMTOSTRN(买涨跌量差,2)+’%’,”)),LINETHICK2,Culor00FF00;;

{逐笔–收费}
合笔买:=sum(TRANSACTVOL(1,0)*C*100/10000,0);
合笔卖:=sum(TRANSACTVOL(2,0)*C*100/10000,0);
合笔买卖:=合笔买-合笔卖;
逐笔V:SUM(IF(合笔买卖>REF(合笔买卖,1),VOL,IF(合笔买卖<REF(合笔买卖,1),-VOL,0)),0),colorff9900,linethick2;;
DRAWTEXT( BARSTATUS=2,逐笔V ,’逐笔OBV’ ),CulorFF9900,LINETHICK2;

A1:=DYNAINFO(23) /(DYNAINFO(23)+ DYNAINFO(22))*100;
A2:=DYNAINFO(17);
DRAWTEXTABS(0,7,IFS((A1 >= 50),'(外盘>=50):▄ ‘+NUMTOSTRN(A1,2)+’%,’,”)),linethick2,color0000FF;
DRAWTEXTABS(0,7,IFS((A1 < 50),'(外盘<50):▄ ‘+NUMTOSTRN(A1,2)+’%,’,”)),linethick2,color00FF00;
DRAWTEXTABS(0,30,IFS((A2 >= 1), ‘(量比>1): ▄ ‘+NUMTOSTRN(A2,2)+’%,’,”)),linethick2,color0000FF;
DRAWTEXTABS(0,30,IFS((A2 < 1), ‘(量比<1): ▄ ‘+NUMTOSTRN(A2,2)+’%,’,”)),linethick2,color00FF00;

{涨跌家数}
DRAWTEXTABS(480,10,’【涨家数:’+NUMTOSTRN(DYNAINFO(69),0)+ ‘】’),COLOR0000ff,LINETHICK2;
DRAWTEXTABS(610,10,’【平家数:’+NUMTOSTRN(DYNAINFO(71),0)+ ‘】’),COLOR00FFff,LINETHICK2;
DRAWTEXTABS(750,10,’【跌家数:’+NUMTOSTRN(DYNAINFO(70),0)+ ‘】’),COLOR00ff00,LINETHICK2;
DRAWRECTABS(480,25 ,480+(DYNAINFO(69)+DYNAINFO(71)+DYNAINFO(70))/2.5,31, rgb(0,255,0)),COLOR00ff00,LAYER4;
DRAWRECTABS(480,25 ,480+(DYNAINFO(69)+DYNAINFO(71))/2.5 ,31, rgb(255,255,0)),COLOR00FFFF,LAYER3;
DRAWRECTABS(480,25 ,480+(DYNAINFO(69))/2.5 ,31, rgb(255,0,0)),COLOR0000ff,LAYER2;

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