 | |  |  |
大智慧金融交易终端主力资金线源码公式:
HS:=vol/capital;
DD:=BIGORDER(1,2)-BIGORDER(2,2);
DT:=HS*DD*100;
主力持仓:= 50+Sum(DT,0);
50+Sum(DT,0);
主力净买入力度:DT,linethick0;
STICKLINE(DT>0,主力持仓,主力持仓+DT,2,0),COLORRed;
STICKLine(DT<0,主力持仓+DT,主力持仓,2,0),COLORGreen;
当日成交 := (DT * capital) * DYNAINFO(11)/10000;
买入手数 := (capital*DT)/100;
if (当日成交>=0) then begin
Str1 := '当日主力净买入力度:' + NUMTOSTRN(DT,3)+'%';
end;
if 当日成交<0 then
begin
Str1 := '当日主力净买入力度:' + NUMTOSTRN(DT,3)+'%';
end;
DRAWFLAGTEXT(DT>=0,主力持仓,str1),COLORRED;
DRAWFLAGTEXT(DT<0,主力持仓,str1),COLORGREEN;
顺势交易
机构:(ordervol(1,3)-ordervol(2,3))/capital*100;
机构累积:SUM(机构,0),colorblue,LINETHICK2;
主力:(ordervol(1,2)-ordervol(2,2))/capital*100;
主力累积:SUM(主力,0),colorred,LINETHICK2; |
| |  | |  |
|