{SV資金流}
{活躍資金流}
INPUT:N(7,1,100);
TODAY:="ddx.ddx"=0;{判斷是否有正版數據}
TODAY1:=DYNAINFO(7)=CLOSE and DYNAINFO(10)=AMOUNT and (ORDER(1)=0 and ORDER(2)=0);;{判斷是否有理想數據}
{條件}
主單買(mǎi):=IF(TODAY,IF(TODAY1,"1DDEDATA@BIGORDER"(1,2),SELFDATA('特大買(mǎi)入')+SELFDATA('大單買(mǎi)入')),bigorder(1,2));
主單賣(mài):=IF(TODAY,IF(TODAY1,"1DDEDATA@BIGORDER"(2,2),SELFDATA('特大賣(mài)出')+SELFDATA('大單賣(mài)出')),bigorder(2,2));
特單買(mǎi):=IF(TODAY,IF(TODAY1,"1DDEDATA@BIGORDER"(1,3),SELFDATA('特大買(mǎi)入')),bigorder(1,3));
特單賣(mài):=IF(TODAY,IF(TODAY1,"1DDEDATA@BIGORDER"(2,3),SELFDATA('特大賣(mài)出')),bigorder(2,3));
大單買(mǎi):=IF(TODAY,IF(TODAY1,("1DDEDATA@BIGORDER"(1,2)-"1DDEDATA@BIGORDER"(1,3)),SELFDATA('大單買(mǎi)入')),(bigorder(1,2)-bigorder(1,3)));
大單賣(mài):=IF(TODAY,IF(TODAY1,("1DDEDATA@BIGORDER"(2,2)-"1DDEDATA@BIGORDER"(2,3)),SELFDATA('大單賣(mài)出')),(bigorder(2,2)-bigorder(2,3)));
{計算}
主凈:=主單買(mǎi)-主單賣(mài);
凈額:=(主凈)*amount/10000;
多日凈值:=sum(凈額,N);
超大:=sum((特單買(mǎi)-特單賣(mài)) * VOL/CAPITAL * 100,1);
大戶(hù):=sum((大單買(mǎi)-大單賣(mài))*100*v/CAPITAL,1);
主力:=(超大+大戶(hù));
資金動(dòng)能:ma(主力,1),Color66CCFF,LINETHICK0;
多日資金動(dòng)能:=SUM(資金動(dòng)能,N);
(南方財富網(wǎng)SOUTHMONEY.COM)