大智慧股票公式之资金统计
{超大资金}
TODAY:="ddx.ddx"=0;{判断是否有正版数据}
TODAY1:="LXDDX.DDX";{判断是否有理想数据}
{比例}
主单买:=IF(TODAY,IF(TODAY1,"DDEDATA@BIGORDER"(1,2),SELFDATA('特大买入')+SELFDATA('大单买入')),bigorder(1,2));
主单卖:=IF(TODAY,IF(TODAY1,"DDEDATA@BIGORDER"(2,2),SELFDATA('特大卖出')+SELFDATA('大单卖出')),bigorder(2,2));
特单买:=IF(TODAY,IF(TODAY1,"DDEDATA@BIGORDER"(1,3),SELFDATA('特大买入')),bigorder(1,3));
特单卖:=IF(TODAY,IF(TODAY1,"DDEDATA@BIGORDER"(2,3),SELFDATA('特大卖出')),bigorder(2,3));
大单买:=IF(TODAY,IF(TODAY1,("DDEDATA@BIGORDER"(1,2)-"DDEDATA@BIGORDER"(1,3)),SELFDATA('大单买入')),(bigorder(1,2)-bigorder(1,3)));
大单卖:=IF(TODAY,IF(TODAY1,("DDEDATA@BIGORDER"(2,2)-"DDEDATA@BIGORDER"(2,3)),SELFDATA('大单卖出')),(bigorder(2,2)-bigorder(2,3)));
中单买:=IF(TODAY,IF(TODAY1,("DDEDATA@BIGORDER"(1,1)-"DDEDATA@BIGORDER"(1,2)),SELFDATA('中单买入')),(bigorder(1,1)-bigorder(1,2)));
中单卖:=IF(TODAY,IF(TODAY1,("DDEDATA@BIGORDER"(2,1)-"DDEDATA@BIGORDER"(2,2)),SELFDATA('中单卖出')),(bigorder(2,1)-bigorder(2,2)));
散单买:=IF(TODAY,IF(TODAY1,1-("DDEDATA@BIGORDER"(1,1)),1-(SELFDATA('特大买入')+SELFDATA('大单买入')+SELFDATA('中单买入'))),1-(bigorder(1,1)));
散单卖:=IF(TODAY,IF(TODAY1,1-("DDEDATA@BIGORDER"(2,1)),1-(SELFDATA('特大卖出')+SELFDATA('大单卖出')+SELFDATA('中单卖出'))),1-(bigorder(2,1)));
{计算}
流入:amount*特单买/10000,colorred,linethick0;
流出:amount*特单卖/10000,colorgreen,linethick0;
净额:流入-流出,linethick0,COLOR39FFFF;
净值:=特单买-特单卖;
总买:=特单买+大单买+中单买+散单买;
总卖:=特单卖+大单卖+中单卖+散单卖;
总净:=总买-总卖;
连红:last(净额>0),linethick0,PRECIS0,colorred;
十红:count(净额>0,10),linethick0,PRECIS0,Color4080FF;
二日:=sum(净额,2);
三日:=sum(净额,3);
四日:=sum(净额,4);
五日:=sum(净额,5);
十日总净:sum(净额,10),PRECIS0,linethick0,Color40FF00;
十五日总净:sum(净额,15),PRECIS0,linethick0,ColorFFFF00;
二十日总净:sum(净额,20),PRECIS0,linethick0,ColorFF8000;
三十日总净:sum(净额,30),PRECIS0,linethick0,ColorFF0000;
0,DOTLINE,COLORFF0000;
{红柱图}
STICKLINE(净额>0,0,净额,7,0), COLOR000033;
STICKLINE(净额>0,0,净额,6,0), COLOR000066;
STICKLINE(净额>0,0,净额,5,0), COLOR000088;
STICKLINE(净额>0,0,净额,4,0), COLOR0000BB;
STICKLINE(净额>0,0,净额,2.5,0), COLOR0000EE;
STICKLINE(净额>0,0,净额,1,0), COLOR0033FF;
{绿柱图}
STICKLINE(净额<0,0,净额,7,0),COLOR003300;
STICKLINE(净额<0,0,净额,6,0),COLOR006600;
STICKLINE(净额<0,0,净额,5,0),COLOR008800;
STICKLINE(净额<0,0,净额,4,0),COLOR00BB00;
STICKLINE(净额<0,0,净额,2.5,0),COLOR00EE00;
STICKLINE(净额<0,0,净额,1,0),COLOR00FF00;
{表格}
DRAWRECTABS(0,0,100,15,734333),COLOR0000C0;
DRAWRECTABS(100,0,200,15,734333),COLOR0000C0;
DRAWRECTABS(200,0,250,15,734333),COLOR0000C0;
DRAWRECTABS(250,0,300,15,734333),COLOR0000C0;
DRAWRECTABS(300,0,350,15,734333),COLOR0000C0;
DRAWRECTABS(350,0,400,15,734333),COLOR0000C0;
DRAWRECTABS(400,0,450,15,734333),COLOR0000C0;
(南方财富网SOUTHMONEY.COM)
延伸阅读
|
要闻导读
|
||||||||||
|