{超大資金}
TODAY:="ddx.ddx"=0;{判斷是否有正版數據}
TODAY1:="LXDDX.DDX";{判斷是否有理想數據}
{比例}
主單買(mǎi):=IF(TODAY,IF(TODAY1,"DDEDATA@BIGORDER"(1,2),SELFDATA('特大買(mǎi)入')+SELFDATA('大單買(mǎi)入')),bigorder(1,2));
主單賣(mài):=IF(TODAY,IF(TODAY1,"DDEDATA@BIGORDER"(2,2),SELFDATA('特大賣(mài)出')+SELFDATA('大單賣(mài)出')),bigorder(2,2));
特單買(mǎi):=IF(TODAY,IF(TODAY1,"DDEDATA@BIGORDER"(1,3),SELFDATA('特大買(mǎi)入')),bigorder(1,3));
特單賣(mài):=IF(TODAY,IF(TODAY1,"DDEDATA@BIGORDER"(2,3),SELFDATA('特大賣(mài)出')),bigorder(2,3));
大單買(mǎi):=IF(TODAY,IF(TODAY1,("DDEDATA@BIGORDER"(1,2)-"DDEDATA@BIGORDER"(1,3)),SELFDATA('大單買(mǎi)入')),(bigorder(1,2)-bigorder(1,3)));
大單賣(mài):=IF(TODAY,IF(TODAY1,("DDEDATA@BIGORDER"(2,2)-"DDEDATA@BIGORDER"(2,3)),SELFDATA('大單賣(mài)出')),(bigorder(2,2)-bigorder(2,3)));
中單買(mǎi):=IF(TODAY,IF(TODAY1,("DDEDATA@BIGORDER"(1,1)-"DDEDATA@BIGORDER"(1,2)),SELFDATA('中單買(mǎi)入')),(bigorder(1,1)-bigorder(1,2)));
中單賣(mài):=IF(TODAY,IF(TODAY1,("DDEDATA@BIGORDER"(2,1)-"DDEDATA@BIGORDER"(2,2)),SELFDATA('中單賣(mài)出')),(bigorder(2,1)-bigorder(2,2)));
散單買(mǎi):=IF(TODAY,IF(TODAY1,1-("DDEDATA@BIGORDER"(1,1)),1-(SELFDATA('特大買(mǎi)入')+SELFDATA('大單買(mǎi)入')+SELFDATA('中單買(mǎi)入'))),1-(bigorder(1,1)));
散單賣(mài):=IF(TODAY,IF(TODAY1,1-("DDEDATA@BIGORDER"(2,1)),1-(SELFDATA('特大賣(mài)出')+SELFDATA('大單賣(mài)出')+SELFDATA('中單賣(mài)出'))),1-(bigorder(2,1)));
{計算}
流入:amount*特單買(mǎi)/10000,colorred,linethick0;
流出:amount*特單賣(mài)/10000,colorgreen,linethick0;
凈額:流入-流出,linethick0,COLOR39FFFF;
凈值:=特單買(mǎi)-特單賣(mài);
總買(mǎi):=特單買(mǎi)+大單買(mǎi)+中單買(mǎi)+散單買(mǎi);
總賣(mài):=特單賣(mài)+大單賣(mài)+中單賣(mài)+散單賣(mài);
總凈:=總買(mǎi)-總賣(mài);
連紅: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;
(南方財富網(wǎng)SOUTHMONEY.COM)