股阁宵乐编写量力而为超赢分析指标指标{副图,原码.}
需要L2行情才可以显示
机构买:=BIGORDER(1,3)*V/CAPITAL;
机构卖:=BIGORDER(2,3)*V/CAPITAL;
机构净买:=(机构买-机构卖)*100;
机构总买:=sum(机构净买,N);
大户买:=BIGORDER(1,2)*V/CAPITAL-BIGORDER(1,3)*V/CAPITAL;
大户卖:=BIGORDER(2,2)*V/CAPITAL-BIGORDER(2,3)*V/CAPITAL;
大户净买:=(大户买-大户卖)*100;
大户总买:=sum(大户净买,N);
中户买:=BIGORDER(1,1)*V/CAPITAL-BIGORDER(1,2)*V/CAPITAL;
中户卖:=BIGORDER(2,1)*V/CAPITAL-BIGORDER(2,2)*V/CAPITAL;
中户净买:=(中户买-中户卖)*100;
中户总买:=sum(中户净买,N);
小单买:=1-BIGORDER(1,1)*V/CAPITAL;
小单卖:=1-BIGORDER(2,1)*V/CAPITAL;
小股民净买:=(小单买-小单卖)*100;
小股民总买:=sum(小股民净买,N);
SH:=sum(小股民净买,N);
ZH:=sum(中户净买,N);
DH:=sum(大户净买,N);
TD:=sum(机构净买,N);
{量帐号柱}
DRAWRECTABS(90 ,30 ,150 ,40,0 ),ColorD4D4D4;
DRAWRECTABS(90 ,50 ,150 ,60,0 ),ColorD4D4D4;
DRAWRECTABS(90 ,70 ,150 ,80 ,0 ),ColorD4D4D4;
DRAWRECTABS(90 ,90,150 ,100 ,0 ),ColorD4D4D4;
DRAWTEXTABS(10 ,30 ,'机构持仓'+numtostrn(机构总买,2) ),colorwhite;
DRAWTEXTABS(10 ,50 ,'大户持仓'+numtostrn(大户总买,2) ),colorwhite;
DRAWTEXTABS(10 ,70 ,'中户持仓'+numtostrn(中户总买,2) ),colorwhite;
DRAWTEXTABS(10 ,90 ,'小股民持仓'+numtostrn(小股民总买,2) ),colorwhite;
DRAWRECTABS( 90,30 ,120+ref(机构总买*10,1) ,40 ,0 ),ColorFF2E40;
DRAWRECTABS( 90,50 ,120+ref(大户总买*10,1) ,60 ,0 ),ColorFF2E40;
DRAWRECTABS( 90,70 ,120+ref(中户总买*10,1),80 ,0 ),ColorFF2E40;
DRAWRECTABS( 90,90,120+ref(小股民总买*10,1),100 ,0 ),ColorFF2E40;
DRAWRECTABS( 90,30 ,120+ref(机构总买*10,1)+机构净买*10 ,40 ,rgb(255,0,0) ),colorwhite;
DRAWRECTABS( 90,50 ,120+ref(大户总买*10,1)+大户净买*10 ,60 ,rgb(255,0,0) ),colorwhite;
DRAWRECTABS( 90,70 ,120+ref(中户总买*10,1)+中户净买*10,80 ,rgb(255,0,0) ),colorwhite;
DRAWRECTABS( 90,90,120+ref(小股民总买*10,1)+小股民净买*10,100 ,rgb(255,0,0) ),colorwhite;
DRAWTEXTABS(10 ,110 ,'机构当日'+numtostrn(机构净买,2) ),coloryellow;
DRAWTEXTABS(10 ,130 ,'大户当日'+numtostrn(大户净买,2) ),coloryellow;
DRAWTEXTABS(10 ,150 ,'中户当日'+numtostrn(中户净买,2) ),coloryellow;
DRAWTEXTABS(10 ,170 ,'小股民当日'+numtostrn(小股民净买,2) ),coloryellow;
DRAWRECTABS(200+机构净买*10 ,110 ,200+机构净买*100,120 ,rgb(255,0,0) ),coloryellow;
DRAWRECTABS(200+大户净买*10 ,130 ,200+大户净买*100,140 ,rgb(255,0,0) ),coloryellow;
DRAWRECTABS(200+中户净买*10 ,150 ,200+中户净买*100,160 ,rgb(255,0,0) ),coloryellow;
DRAWRECTABS(200+小股民净买*10 ,170 ,200+小股民净买*100,180 ,rgb(255,0,0) ),coloryellow; |