{超大資金}
TODAY:="ddx.ddx"=0;{判斷是否有正版數(shù)據(jù)}
TODAY1:="LXDDX.DDX";{判斷是否有理想數(shù)據(jù)}
{比例}
主單買:=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)));
{計(jì)算}
流入: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;
(南方財(cái)富網(wǎng)SOUTHMONEY.COM)