超赢指标全套源码
主力持仓
HS:=vol/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;
净买比:买入手数/vol*100,linethick0;
{分析家公式网 http://www.fxjgsw.com 整理}
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:=vol/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:=vol/capital;
DD:=(BIGORDER(1,2)-BIGORDER(2,2))-(BIGORDER(1,3)-BIGORDER(2,3));
DT:=HS*DD*100;
大户持仓: 50+Sum(DT,0),linethick2;
当日增减度T, 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:=vol/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:=vol/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;
{分析家公式网 http://www.fxjgsw.com 整理}
当日成交 := (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;
资金流向
一日资金流入:amount*BIGORDER(1,2)/10000,colorred,linethick0;
一日资金流出:amount*BIGORDER(2,2)/10000,colorgreen,linethick0;
净额:一日资金流入-一日资金流出,linethick0;
十日飘红:count(净额>0,10),colorred;
连续飘红:last(净额>0);
{分析家公式网 http://www.fxjgsw.com 整理}
stickline(净额>0,0,净额,3,0),colorred,linethick2;
stickline(净额<0,净额,0,3,0),colorgreen,linethick2;
0,dotline,colorwhite;
持仓统计:利用此指标可在动态显示牌排序
HS:=vol/capital;
DD:=BIGORDER(1,2)-BIGORDER(2,2);
DT:=HS*DD*100;
主力持仓: 50+Sum(DT,0);
当日增减度: DT, linethick0;
当日成交 := (DT * capital) * DYNAINFO(11)/10000;
买入手数 := (capital*DT)/100;
净买比:买入手数/vol*100,linethick0;
{分析家公式网 http://www.fxjgsw.com 整理}
一日增仓:Sum(DT,1);
二日增仓:Sum(DT,2);
三日增仓:Sum(DT,3);
五日增仓:Sum(DT,5);
十日增仓:Sum(DT,10);
二十日增仓:Sum(DT,20);
一日净买比:Sum(净买比,1);
二日净买比:Sum(净买比,2);
三日净买比:Sum(净买比,3);
五日净买比:Sum(净买比,5);
十日净买比:Sum(净买比,10);
二十日净买比:Sum(净买比,20);
仅仅提供源码,公式请在本网搜索下载 |