{買賣量差}
variable:主動(dòng)買=0;variable:主動(dòng)賣=0;variable:真主動(dòng)率=0;variable:假主動(dòng)率=0;
DRAWRECTREL(-1,0,1000,1000,RGB(0,0,50)),color0077FF,LINETHICK2,LAYER7;
0,DOTLINE;
主動(dòng)買:"委托.主動(dòng)買#tick",color0000FF,linethick0;
主動(dòng)賣:"委托.主動(dòng)賣#tick",color00FF00,linethick0;
主買量:=IF(主動(dòng)買,VOL,0);
主賣量:=IF(主動(dòng)賣,VOL,0);
主買賣量差:SUM(主買量-主賣量,0),color00FFFF,linethick2;
STICKLINE(主買量,0,V,4,0),COLOR0000FF,linethick1;
STICKLINE(主賣量,0,-V,4,0),COLOR00FF00,linethick1;
真主動(dòng)率:"BSVOL.真主動(dòng)率#tick"*100,color0000FF,linethick0,LAYER0;
假主動(dòng)率:"BSVOL.假主動(dòng)率#tick"*100,color00FF00,linethick0,LAYER0;
DRAWTEXTABS(0,5,'【真主動(dòng)買賣率】▄ '+NUMTOSTRN(真主動(dòng)率,1)+'%,'),linethick2,color0000FF;
DRAWTEXTABS(0,20,'【假主動(dòng)買賣率】▄ '+NUMTOSTRN(假主動(dòng)率,1)+'%,'),linethick2,color00ff00;
A1:=DYNAINFO(23) /(DYNAINFO(23)+ DYNAINFO(22))*100;
A2:=DYNAINFO(17);
DRAWTEXTABS(0,35,IFS((A1 >= 50),'【外盤>=50】:▄ '+NUMTOSTRN(A1,2)+'%,','')),linethick2,color0000FF;
DRAWTEXTABS(0,35,IFS((A1 < 50),'【外盤<50】:▄ '+NUMTOSTRN(A1,2)+'%,','')),linethick2,color00FF00;
DRAWTEXTABS(0,50,IFS((A2 >= 1),'【量比>1】:
DRAWTEXTABS(0,50,IFS((A2 < 1), '【量比<1】:
---------------------------------------------------------------------------------------------------------
這是引入文件---是分筆數(shù)據(jù)
---------------------------------------------------------------------------------------------------------
{委托}
主動(dòng)買:BUYVOL,Color0000ff,linethick0;
主動(dòng)賣:SELLVOL,Color00ff00,linethick0;
委托買1:BIDVOL(1),Color0000ff,linethick0;
委托買2:BIDVOL(2),Color0000ff,linethick0;
委托買3:BIDVOL(3),Color0000ff,linethick0;
委托買4:BIDVOL(4),Color0000ff,linethick0;
委托買5:BIDVOL(5),Color0000ff,linethick0;
委托賣1:ASKVOL(1),Color00ff00,linethick0;
委托賣2:ASKVOL(2),Color00ff00,linethick0;
委托賣3:ASKVOL(3),Color00ff00,linethick0;
委托賣4:ASKVOL(4),Color00ff00,linethick0;
委托賣5:ASKVOL(5),Color00ff00,linethick0;
委賣1:ASKPRICE(1);
委賣2:ASKPRICE(2);
委賣3:ASKPRICE(3);
委買1:BIDPRICE(1);
委買2:BIDPRICE(2);
委買3:BIDPRICE(3);
聯(lián)系客服