{0598----庄家委托买卖盘}
input:N(1,0,1);
DRAWRECTREL(-1,0,1000,1000,RGB(0,0,50)),color00FF00,LINETHICK2,LAYER7;;
DRAWTEXTREL(5,5,'★可调开关【,委卖委买线:N='+N+', [0---不显示]】');
委托买:="BSVOL.委托买#tick";
委托卖:=-"BSVOL.委托卖#tick";
委卖:EMA(委托卖,5)*N,color0000FF,linethick2,LAYER4;
委买:EMA(委托买,5)*N,color00ff00,linethick2,LAYER4;
DDZ:(委托卖-委托买)/(委托卖+委托买)*100,COLORstick,LINETHICK0;
drawtextabs(5,15,'【(委托卖-委托买)/(委托卖+委托买)】:'+NUMTOSTRN(DDZ,2)+'%,'),Color0099FF,linethick4;
RSV:EMA(DDZ*10,9),LINETHICK0;
K:=SMA(RSV,3,1);
D:=SMA(K,9,1);
Var1:3*K-2*D,LINETHICK1;
FILLRGN(Var1,Var1*0.93,Var1>REF(Var1,1),RGB(255,0,0),Var1<REF(Var1,1),RGB(0,255,0)),LAYER0;
if(Var1>=0,Var1*0.1,0),COLORCCCCFF;
if(Var1>=0,Var1*0.2,0),COLORBBBBFF;
if(Var1>=0,Var1*0.3,0),COLORAAAAFF;
if(Var1>=0,Var1*0.4,0),COLOR9999FF;
if(Var1>=0,Var1*0.5,0),COLOR8888FF;
if(Var1>=0,Var1*0.6,0),COLOR7777FF;
if(Var1>=0,Var1*0.7,0),COLOR6666FF;
if(Var1>=0,Var1*0.8,0),COLOR4444FF;
if(Var1>=0,Var1*0.9,0),COLOR2222FF;
if(Var1<0,Var1*0.1,0),COLORFFAAAA;
if(Var1<0,Var1*0.2,0),COLORFF9999;
if(Var1<0,Var1*0.3,0),COLORFF8888;
if(Var1<0,Var1*0.4,0),COLORFF7777;
if(Var1<0,Var1*0.5,0),COLORFF6666;
if(Var1<0,Var1*0.6,0),COLORFF5555;
if(Var1<0,Var1*0.7,0),COLORFF4444;
if(Var1<0,Var1*0.8,0),COLORFF2222;
if(Var1<0,Var1*0.9,0),COLORFF0000;