把OBV用于分时其中:----
【1】股价的OBV.就是把股价涨跌的成交量联系在一起.
OBV:SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE
【2】把分笔的主动买卖的净量的增减的成交量联系起来的OBV.
分笔V:SUM(IF(分笔买卖>REF(分笔买卖,1),VOL,IF(分笔买卖
【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(合笔买卖
【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
DRAWTEXT( BARSTATUS=2,OBV ,'OBV' ),Color00ffFF,LINETHICK2;
{分笔--免费}
分笔买卖:"分笔买卖.主动买#tick"-"分笔买卖.主动卖#tick",color0000FF,linethick0;
分笔V:SUM(IF(分笔买卖>REF(分笔买卖,1),VOL,IF(分笔买卖
DRAWTEXT( BARSTATUS=2,分笔V ,'分笔OBV' ),Color0000FF,LAYER6,LINETHICK2;
{分笔--成交量}
STICKLINE(分笔买卖>=ref(分笔买卖,1),0,V*K,2,0),COLOR0000FF,linethick1;
STICKLINE(分笔买卖
买涨:=IF(分笔买卖>=REF(分笔买卖,1),VOL,0);
买涨占:=SUM(买涨,0)/SUM(V,0)*100;
DRAWTEXTabs(500,35,'【盘差升VOL占:'+NUMTOSTRN(买涨占,1)+'%】' ),LINETHICK2,Color0000FF;
买跌:=IF(分笔买卖
买跌占:=SUM(买跌,0)/SUM(V,0)*100;
DRAWTEXTabs(680,35,'【盘差降VOL占:'+NUMTOSTRN(买跌占,1)+'%】' ),LINETHICK2,Color00FF00;
买涨跌量差:=(买涨占-买跌占);
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,Color0000FF;
DRAWTEXTABS(560,67,IFS((买涨占<买跌占),'【盘差对应VOL差】▄ '+NUMTOSTRN(买涨跌量差,2)+'%','')),LINETHICK2,Color00FF00;;
{逐笔--收费}
合笔买:=sum(TRANSACTVOL(1,0)*C*100/10000,0);
合笔卖:=sum(TRANSACTVOL(2,0)*C*100/10000,0);
合笔买卖:=合笔买-合笔卖;
逐笔V:SUM(IF(合笔买卖>REF(合笔买卖,1),VOL,IF(合笔买卖
DRAWTEXT( BARSTATUS=2,逐笔V ,'逐笔OBV' ),ColorFF9900,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;