大智慧股票公式之SV资金流源码
{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);;{判断是否有理想数据}
{条件}
主单买:=IF(TODAY,IF(TODAY1,"1DDEDATA@BIGORDER"(1,2),SELFDATA('特大买入')+SELFDATA('大单买入')),bigorder(1,2));
主单卖:=IF(TODAY,IF(TODAY1,"1DDEDATA@BIGORDER"(2,2),SELFDATA('特大卖出')+SELFDATA('大单卖出')),bigorder(2,2));
特单买:=IF(TODAY,IF(TODAY1,"1DDEDATA@BIGORDER"(1,3),SELFDATA('特大买入')),bigorder(1,3));
特单卖:=IF(TODAY,IF(TODAY1,"1DDEDATA@BIGORDER"(2,3),SELFDATA('特大卖出')),bigorder(2,3));
大单买:=IF(TODAY,IF(TODAY1,("1DDEDATA@BIGORDER"(1,2)-"1DDEDATA@BIGORDER"(1,3)),SELFDATA('大单买入')),(bigorder(1,2)-bigorder(1,3)));
大单卖:=IF(TODAY,IF(TODAY1,("1DDEDATA@BIGORDER"(2,2)-"1DDEDATA@BIGORDER"(2,3)),SELFDATA('大单卖出')),(bigorder(2,2)-bigorder(2,3)));
{计算}
主净:=主单买-主单卖;
净额:=(主净)*amount/10000;
多日净值:=sum(净额,N);
超大:=sum((特单买-特单卖) * VOL/CAPITAL * 100,1);
大户:=sum((大单买-大单卖)*100*v/CAPITAL,1);
主力:=(超大+大户);
资金动能:ma(主力,1),Color66CCFF,LINETHICK0;
多日资金动能:=SUM(资金动能,N);
(南方财富网SOUTHMONEY.COM)
延伸阅读
|
要闻导读
|
||||||||||
|