| | | |
20080413_0f4afb45fcad93d7da3dW95PAmPxIrWX.png
【天狼50】的大智慧L2分时指标
貌似这个指标需要LV2行情
【阻比,委比】大智慧L2
refline:-100,0,100;
avgbpx:=DYNAINFO(87);
avgopx:=DYNAINFO(88);
tbqty:=DYNAINFO(89);
toqty:=DYNAINFO(90);
bq:=DYNAINFO(89)/capital;
oq:=DYNAINFO(90)/capital;
bm:=tbqty/((DYNAINFO(7)-avgbpx)*2/DYNAINFO(7)*100);
om:=toqty/((avgopx-DYNAINFO(7))*2/DYNAINFO(7)*100);
bd:=(DYNAINFO(7)-avgbpx)/(avgopx-avgbpx)*120;
od:=(avgopx-DYNAINFO(7))/(avgopx-avgbpx)*120;
gy:=max(bm,om);
DRAWRECTREL(125-od,1000-om/gy*1000,125,1000,rgb(0,0,255)),colorblue;
DRAWRECTREL(125,1000-bm/gy*1000,126+bd,1000,rgb(255,0,0)),colorred;
DRAWTEXTREL(180,20,'委卖 总量:'+str(toqty)+' 占流通盘比例:'+str(oq*100)+'%'+' 密度:'+str(INTPART(om))+'手价宽:'+str(max(0,avgopx*2-DYNAINFO(7)*2))+'元 '+str(max(0,avgopx/DYNAINFO(7)*200-200))+'%'),colorffffff,layer0;
DRAWTEXTREL(180,300,'委买 总量:'+str(tbqty)+' 占流通盘比例:'+str(bq*100)+'%'+' 密度:'+str(INTPART(bm))+'手 价宽:'+str(if(avgbpx=0,0,DYNAINFO(7)*2-avgbpx*2))+'元 '+str(max(0,DYNAINFO(7)/avgbpx*200-200))+'%'),colorffffff,layer0;
{DRAWTEXTREL(180,600,'委比:'+str((tbqty-toqty)/
(tbqty+toqty)*100)+'%'),colorwhite,layer0;}
委比:if(allaskvol=0,100,if(allbidvol=0,-100,(allbidvol-
allaskvol)/(allbidvol+allaskvol)*100)),COLORgreen,layer1;
阻比:(ALLBIDVOL*AVGBIDPRICE-ALLASKVOL*AVGASKPRICE)/(ALLASKVOL*AVGASKPRICE+ALLBIDVOL*AVGBIDPRICE)*100,COLORSTICK; |
| | | | |
|