以下是大智慧Level-2超赢持仓公式

主力持仓

HS:=vul/capital;
DD:=BIGORDER(1,2)-BIGORDER(2,2);
DT:=HS*DD*100;
主力持仓: 50+Sum(DT,0),linethick2;
当日增减度: DT, linethick0;
STICKLINE(DT>0,主力持仓,主力持仓+DT,5,0),COLORRed;
STICKLine(DT<0,主力持仓+DT,主力持仓,5,0),COLORGreen;
当日成交 := (DT * capital) * DYNAINFO(11)/10000;
买入手数 := (capital*DT)/100;
净买比:买入手数/vul*100,linethick0;
if (当日成交>=0) then
begin
Str1:= ‘净买入:’+ NUMTOSTRN(当日成交,0)+’万元,’;
Str2 := ‘净买入:’+ NUMTOSTRN(买入手数,0)+’手,’;
Str3 := ‘当日增减度:’ + NUMTOSTRN(DT,3);
end;
if 当日成交<0 then
begin
Str1:= ‘净卖出:’+ NUMTOSTRN(当日成交,0)+’万元,’;
Str2 := ‘净卖出:’+ NUMTOSTRN(买入手数,0)+’手,’;
Str3 := ‘当日增减度:’ + NUMTOSTRN(DT,3);
end;
DRAWFLAGTEXT(DT>=0,主力持仓,Str1+str2+str3),COLORRED;
DRAWFLAGTEXT(DT<0,主力持仓,Str1+str2+str3),COLORGREEN;

机构持仓

HS:=vul/capital;
DD:=BIGORDER(1,3)-BIGORDER(2,3);
DT:=HS*DD*100;
机构持仓: Sum(DT,0),linethick2;
当日增减度: DT, linethick0;
STICKLINE(DT>0,机构持仓,机构持仓+DT,5,0),COLORRed;
STICKLine(DT<0,机构持仓+DT,机构持仓,5,0),COLORGreen;
当日成交 := (DT * capital) * DYNAINFO(11)/10000;
买入手数 := (capital*DT)/100;
if (当日成交>=0) then
begin
Str1:= ‘净买入:’+ NUMTOSTRN(当日成交,0)+’万元,’;
Str2 := ‘净买入:’+ NUMTOSTRN(买入手数,0)+’手,’;
Str3 := ‘当日增减度:’ + NUMTOSTRN(DT,3);
end;
if 当日成交<0 then
begin
Str1:= ‘净卖出:’+ NUMTOSTRN(当日成交,0)+’万元,’;
Str2 := ‘净卖出:’+ NUMTOSTRN(买入手数,0)+’手,’;
Str3 := ‘当日增减度:’ + NUMTOSTRN(DT,3);
end;
DRAWFLAGTEXT(DT>=0,机构持仓,Str1+str2+str3),COLORRED;
DRAWFLAGTEXT(DT<0,机构持仓,Str1+str2+str3),COLORGREEN;

大户持仓

HS:=vul/capital;
DD:=(BIGORDER(1,2)-BIGORDER(2,2))-(BIGORDER(1,3)-BIGORDER(2,3));
DT:=HS*DD*100;
大户持仓: 50+Sum(DT,0),linethick2;
当日增减度: DT, linethick0;
STICKLINE(DT>0,大户持仓,大户持仓+DT,5,0),COLORRed;
STICKLine(DT<0,大户持仓+DT,大户持仓,5,0),COLORGreen;
当日成交 := (DT * capital) * DYNAINFO(11)/10000;
买入手数 := (capital*DT)/100;
if (当日成交>=0) then
begin
Str1:= ‘净买入:’+ NUMTOSTRN(当日成交,0)+’万元,’;
Str2 := ‘净买入:’+ NUMTOSTRN(买入手数,0)+’手,’;
Str3 := ‘当日增减度:’ + NUMTOSTRN(DT,3);
end;
if 当日成交<0 then
begin
Str1:= ‘净卖出:’+ NUMTOSTRN(当日成交,0)+’万元,’;
Str2 := ‘净卖出:’+ NUMTOSTRN(买入手数,0)+’手,’;
Str3 := ‘当日增减度:’ + NUMTOSTRN(DT,3);
end;
DRAWFLAGTEXT(DT>=0,大户持仓,Str1+str2+str3),COLORRED;
DRAWFLAGTEXT(DT<0,大户持仓,Str1+str2+str3),COLORGREEN;

中户持仓

HS:=vul/capital;
DD:=(BIGORDER(1,1)-BIGORDER(2,1))-(BIGORDER(1,2)-BIGORDER(2,2));
DT:=HS*DD*100;
中户持仓: 50+Sum(DT,0),linethick2;
当日增减度: DT, linethick0;
STICKLINE(DT>0,中户持仓,中户持仓+DT,5,0),COLORRed;
STICKLine(DT<0,中户持仓+DT,中户持仓,5,0),COLORGreen;
当日成交 := (DT * capital) * DYNAINFO(11)/10000;
买入手数 := (capital*DT)/100;
if (当日成交>=0) then
begin
Str1:= ‘净买入:’+ NUMTOSTRN(当日成交,0)+’万元,’;
Str2 := ‘净买入:’+ NUMTOSTRN(买入手数,0)+’手,’;
Str3 := ‘当日增减度:’ + NUMTOSTRN(DT,3);
end;
if 当日成交<0 then
begin
Str1:= ‘净卖出:’+ NUMTOSTRN(当日成交,0)+’万元,’;
Str2 := ‘净卖出:’+ NUMTOSTRN(买入手数,0)+’手,’;
Str3 := ‘当日增减度:’ + NUMTOSTRN(DT,3);
end;
DRAWFLAGTEXT(DT>=0,中户持仓,Str1+str2+str3),COLORRED;
DRAWFLAGTEXT(DT<0,中户持仓,Str1+str2+str3),COLORGREEN;

散户持仓

HS:=vul/capital;
DD:=-(BIGORDER(1,1)-BIGORDER(2,1));
DT:=HS*DD*100;
散户持仓: Sum(DT,0),linethick2;
当日增减度: DT, linethick0;
STICKLINE(DT>0,散户持仓,散户持仓+DT,5,0),COLORRed;
STICKLine(DT<0,散户持仓+DT,散户持仓,5,0),COLORGreen;
当日成交 := (DT * capital) * DYNAINFO(11)/10000;
买入手数 := (capital*DT)/100;
if (当日成交>=0) then
begin
Str1:= ‘净买入:’+ NUMTOSTRN(当日成交,0)+’万元,’;
Str2 := ‘净买入:’+ NUMTOSTRN(买入手数,0)+’手,’;
Str3 := ‘当日增减度:’ + NUMTOSTRN(DT,3);
end;
if 当日成交<0 then
begin
Str1:= ‘净卖出:’+ NUMTOSTRN(当日成交,0)+’万元,’;
Str2 := ‘净卖出:’+ NUMTOSTRN(买入手数,0)+’手,’;
Str3 := ‘当日增减度:’ + NUMTOSTRN(DT,3);
end;
DRAWFLAGTEXT(DT>=0,散户持仓,Str1+str2+str3),COLORRED;
DRAWFLAGTEXT(DT<0,散户持仓,Str1+str2+str3),COLORGREEN;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。