DRAWRECTABS(0,0 ,920 ,107 ,rgb(20,24,25)),color0000EE;
小单买:=1-BIGORDER(1,1)*v/CAPITAL;
小单卖:=1-BIGORDER(2,1)*v/CAPITAL;
散户净买:=(小单买-小单卖)*100;
sh:=sum(散户净买,01);
散户数量:sh,LINETHICK0,color00ffff;
STICKLINE(sh>=1,0,sh,7,500),color00FF00;
STICKLINE(sh>=0.5 and sh<1,0,sh,7,500),color00CC00;
STICKLINE(sh>0 and sh<0.5,0,sh,7,500),color009900;
STICKLINE(sh>-0.5 and sh<=0,0,sh,7,500),color990099;
STICKLINE(sh>-1 and sh<=-0.5,0,sh,7,500),colorCC00CC;
STICKLINE(sh<-1,0,sh,7,500),colorff00ff;
{超赢分析}
DRAWRECTABS(0,0,450,107,rgb(55,55,01)),color0033ff;
DRAWRECTABS(32,1,91,106,rgb(80,11,10)),color000000;
DRAWRECTABS(150,1,211,106,rgb(77,11,10)),color000000;
DRAWRECTABS(90,1,151,106,rgb(66,11,10)),color000000;
DRAWRECTABS(210,1,271,106,rgb(55,11,10)),color000000;
DRAWRECTABS(00,25,449,00,rgb(100,50,01)),color0000ff;
DRAWRECTABS(32,0 ,148 ,107 ,0 ),color0000ff;
DRAWRECTABS(88,0 ,208 ,107 ,0 ),color0000ff;
DRAWRECTABS(275,0 ,384 ,107 ,0 ),color0000ff;
DRAWTEXTABS(3 ,10 ,'单差'),colorwhite;
vb:=v/order(1);
vs:=v/order(2);
Chb:=bigorder(1,3)*order(1)*vb;
Dhb:=(bigorder(1,2)-bigorder(1,3))*order(1)*vb;
Zhb:=(bigorder(1,1)-bigorder(1,2))*order(1)*vb;
Xhb:=(1-bigorder(1,1))*order(1)*vb;
Hj:=chb+dhb+zhb+xhb;
Chs:=bigorder(2,3)*order(2)*vs;
Dhs:=(bigorder(2,2)-bigorder(2,3))*order(2)*vs;
Zhs:=(bigorder(2,1)-bigorder(2,2))*order(2)*vs;
Xhs:=(1-bigorder(2,1))*order(2)*vs;
hjb:=chb+dhb-(chs+dhs);
chbb:=ma(chb/hj,5);
dhbb:=ma(dhb/hj,5);
zhbb:=ma(zhb/hj,5);
xhbb:=ma(xhb/hj,5);
超户五:chbb*100,LINETHICK0,color0000ff;
大户五:dhbb*100,LINETHICK0,colorcc00cc;
中户五:zhbb*100,LINETHICK0,color0000cc;
散户五:xhbb*100,LINETHICK0,color00ddaa;
D3:sum(sh,3),LINETHICK0;
D4:sum(sh,4),LINETHICK0;
D5:sum(sh,5),LINETHICK0;
D6:sum(sh,6),LINETHICK0;
DRAWTEXTABS(25 ,10 ,' 特大单差'),colorwhite;
DRAWTEXTABS(5 ,30 ,'今日 '+numtostrn(ref(chb-chs,0),0)+'单' ),colorwhite;
DRAWTEXTABS(5 ,50 ,'昨日 '+numtostrn(ref(chb-chs,1),0)+'单' ),colorwhite;
DRAWTEXTABS(5 ,70 ,'前日 '+numtostrn(ref(chb-chs,2),0) +'单'),colorwhite;
DRAWTEXTABS(5 ,90 ,'3 日 '+numtostrn(ref(chb-chs,3),0) +'单'),colorwhite;
DRAWTEXTABS(90 ,10 ,' 大单差'),colorwhite;
DRAWTEXTABS(90 ,30 ,numtostrn(ref(dhb-dhs,0),0)+'单' ),colorwhite;
DRAWTEXTABS(90 ,50 ,numtostrn(ref(dhb-dhs,1),0)+'单' ),colorwhite;
DRAWTEXTABS(90 ,70 ,numtostrn(ref(dhb-dhs,2),0) +'单'),colorwhite;
DRAWTEXTABS(90 ,90 ,numtostrn(ref(dhb-dhs,3),0) +'单'),colorwhite;
DRAWTEXTABS(150 ,10 ,' 中单差'),colorwhite;
DRAWTEXTABS(150 ,30 ,numtostrn(ref(zhb-zhs,0),0)+'单' ),colorwhite;
DRAWTEXTABS(150 ,50 ,numtostrn(ref(zhb-zhs,1),0)+'单' ),colorwhite;
DRAWTEXTABS(150 ,70 ,numtostrn(ref(zhb-zhs,2),0) +'单'),colorwhite;
DRAWTEXTABS(150 ,90 ,numtostrn(ref(zhb-zhs,3),0) +'单'),colorwhite;
DRAWTEXTABS(210 ,10 ,' 小单差'),colorwhite;
DRAWTEXTABS(210 ,30 ,numtostrn(ref(xhb-xhs,0),0)+'单' ),colorwhite;
DRAWTEXTABS(210 ,50 ,numtostrn(ref(xhb-xhs,1),0)+'单' ),colorwhite;
DRAWTEXTABS(210 ,70 ,numtostrn(ref(xhb-xhs,2),0) +'单'),colorwhite;
DRAWTEXTABS(210 ,90 ,numtostrn(ref(xhb-xhs,3),0) +'单'),colorwhite;
DRAWTEXTABS(280 ,10 ,' 五日平均买单比'),colorwhite;
DRAWRECTABS(280 ,30 ,280+ref(chbb,0)*100 ,40,rgb(255,0,0) ),color000000;
DRAWRECTABS(280+ref(chbb,0)*100 ,30 ,280+ref(chbb+dhbb,0)*100 ,40,rgb(200,0,200) ),color000000;
DRAWRECTABS(280+ref(chbb+dhbb,0)*100 ,30 ,280+ref(chbb+dhbb+zhbb,0)*100 ,40,rgb(160,0,0) ),color000000;
DRAWRECTABS(280+ref(chbb+dhbb+zhbb,0)*100 ,30 ,280+ref(chbb+dhbb+zhbb+xhbb,0)*100 ,40,rgb(100,200,0) ),color000000;
DRAWRECTABS(280 ,50 ,280+ref(chbb,1)*100 ,60,rgb(255,0,0) ),color000000;
DRAWRECTABS(280+ref(chbb,01)*100 ,50 ,280+ref(chbb+dhbb,1)*100 ,60,rgb(200,00,200) ),color000000;
DRAWRECTABS(280+ref(chbb+dhbb,01)*100 ,50 ,280+ref(chbb+dhbb+zhbb,1)*100 ,60,rgb(160,0,0) ),color000000;
DRAWRECTABS(280+ref(chbb+dhbb+zhbb,01)*100 ,50 ,280+ref(chbb+dhbb+zhbb+xhbb,1)*100 ,60,rgb(100,200,0) ),color000000;
DRAWRECTABS(280 ,70 ,280+ref(chbb,2)*100 ,80,rgb(255,0,0) ),color000000;
DRAWRECTABS(280+ref(chbb,02)*100 ,70 ,280+ref(chbb+dhbb,2)*100 ,80,rgb(200,00,200) ),color000000;
DRAWRECTABS(280+ref(chbb+dhbb,02)*100 ,70 ,280+ref(chbb+dhbb+zhbb,2)*100 ,80,rgb(160,0,0) ),color000000;
DRAWRECTABS(280+ref(chbb+dhbb+zhbb,02)*100 ,70 ,280+ref(chbb+dhbb+zhbb+xhbb,2)*100 ,80,rgb(100,200,0) ),color000000;
DRAWRECTABS(280 ,90 ,280+ref(chbb,3)*100 ,100,rgb(255,0,0) ),color000000;
DRAWRECTABS(280+ref(chbb,03)*100 ,90 ,280+ref(chbb+dhbb,3)*100 ,100,rgb(200,00,200) ),color000000;
DRAWRECTABS(280+ref(chbb+dhbb,03)*100 ,90 ,280+ref(chbb+dhbb+zhbb,3)*100 ,100,rgb(160,0,0) ),color000000;
DRAWRECTABS(280+ref(chbb+dhbb+zhbb,03)*100 ,90 ,280+ref(chbb+dhbb+zhbb+xhbb,3)*100 ,100,rgb(100,200,0) ),color000000;
DRAWRECTABS(280 ,30 ,380 ,40,0 ),colorwhite;
DRAWRECTABS(280 ,50 ,380 ,60,0 ),colorwhite;
DRAWRECTABS(280 ,70 ,380 ,80 ,0 ),colorwhite;
DRAWRECTABS(280 ,90,380 ,100 ,0 ),colorwhite;
DRAWTEXTABS(385 ,10 ,' 主力单差'),colorwhite;
DRAWTEXTABS(385 ,30 ,numtostrn(ref(hjb,0),0)+'单' ),colorwhite;
DRAWTEXTABS(385 ,50 ,numtostrn(ref(hjb,1),0)+'单' ),colorwhite;
DRAWTEXTABS(385 ,70 ,numtostrn(ref(hjb,2),0) +'单'),colorwhite;
DRAWTEXTABS(385 ,90 ,numtostrn(ref(hjb,3),0) +'单'),colorwhite;
|