您現(xiàn)在的位置: 南方財富網(wǎng) >> 股票知識 >> 股票公式 >> 正文
南財搜索

大智慧股票公式之資金統(tǒng)計

2013/6/18 16:42:13   來源:本站原創(chuàng)   佚名
    

大智慧股票公式之資金統(tǒng)計

  {超大資金}

  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)));

  {計算}

  流入: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;

[1] [2] 下一頁

(南方財富網(wǎng)SOUTHMONEY.COM)
    南方財富網(wǎng)聲明:股市資訊來源于合作媒體及機構,屬作者個人觀點,僅供投資者參考,并不構成投資建議。投資者據(jù)此操作,風險自擔。
延伸閱讀
商務進行時
每日必讀
學院24小時排行
證券導讀
熱圖推薦

關于南方財富網(wǎng) -版權聲明誠聘英才廣告服務網(wǎng)站地圖友情鏈接
特此聲明:廣告商的言論與行為均與南方財富網(wǎng)無關
m.dixmanbetx.com
南方財富網(wǎng) © 版權所有 閩ICP備09035581號