【LEVEL 2指标】吐血逐单统计、逐笔统计

之前从坛里下载来一个逐笔统计指标,觉得挺好用,修改了一下下,弄了个逐单的。喜欢的请下载。需要LEVEL 2数据。

合买单:=sum(ORDERNUM(1,0),0);
合卖单:=sum(ORDERNUM(2,0),0);
庄买单:=sum(ORDERNUM(1,3),0);
庄卖单:=sum(ORDERNUM(2,3),0);
大买单:=sum(ORDERNUM(1,2),0)-庄买单;
大卖单:=sum(ORDERNUM(2,2),0)-庄卖单;
中买单:=sum(ORDERNUM(1,1),0)-sum(ORDERNUM(1,2),0);
中卖单:=sum(ORDERNUM(2,1),0)-sum(ORDERNUM(2,2),0);
小买单:=合买单-sum(ORDERNUM(1,1),0);
小卖单:=合卖单-sum(ORDERNUM(2,1),0);
总量:=sum(ORDERVOL(0,0),0);
总买量:=sum(ORDERVOL(1,0),0);
总卖量:=sum(ORDERVOL(2,0),0);
总净量:=总买量-总卖量;
庄买量:=sum(ORDERVOL(1,3),0);
庄卖量:=sum(ORDERVOL(2,3),0);
大买量:=sum(ORDERVOL(1,2),0)-庄买量;
大卖量:=sum(ORDERVOL(2,2),0)-庄卖量;
中买量:=sum(ORDERVOL(1,1),0)-sum(ORDERVOL(1,2),0);
中卖量:=sum(ORDERVOL(2,1),0)-sum(ORDERVOL(2,2),0);
小买量:=总买量-sum(ORDERVOL(1,1),0);
小卖量:=总卖量-sum(ORDERVOL(2,1),0);
庄净量:(庄买量-庄卖量),PRECIS0,LineThick0,COLORRED;
大净量:(大买量-大卖量),PRECIS0,LineThick0,color208fff;
中净量:(中买量-中卖量),PRECIS0,LineThick0,coloryellow;
分时净量:(ORDERVOL(1,0)-ORDERVOL(2,0)),PRECIS0,LineThick0,color3d;
 X:=IF(HOUR<13,0,0);
 y:=13;
 DRAWTEXTABS(2,2,'说明:庄单:>50万股或100万元,大单:>10万股或20万元,中单:>2万股或4万元'),colorbbbbbb;
 DRAWTEXTABS(5+X,5+y,'分  类    庄单   大 单   中 单   总 单   庄   大   中   小   总    买撤 卖撤'),COLORwhite;
 DRAWRECTABS(0+X,2+y,240+X,20+y,rgb(255,0,0)),COLORcyan;
 DRAWRECTABS(0+X,18+y,240+X,50+y,rgb(1,1,1)),COLORcyan;
 DRAWRECTABS(0+X,48+y,240+X,65+y,rgb(0,0,255)),COLORcyan;
 DRAWRECTABS(0+X,63+y,240+X,95+y,rgb(1,1,1)),COLORcyan;
 DRAWRECTABS(0+X,93+y,240+X,110+y,rgb(0,0,255)),COLORcyan;
 DRAWRECTABS(239+X,2+y,400+X,20+y,rgb(255,0,0)),COLORcyan;
 DRAWRECTABS(239+X,110+y,400+X,18+y,rgb(1,1,1)),COLORcyan;
 DRAWRECTABS(399+X,2+y,470+X,20+y,rgb(255,0,0)),COLORcyan;
 DRAWRECTABS(399+X,110+y,470+X,18+y,rgb(1,1,1)),COLORcyan;
 DRAWTEXTABS(5+X,20+y,'主买单'+STRRIGHT('          '+NUMTOSTRN(庄买单,0),8)+STRRIGHT('          '+NUMTOSTRN(大买单,0),8)+STRRIGHT('          '+NUMTOSTRN(中买单,0),8)+STRRIGHT('          '+NUMTOSTRN(合买单,0),8)),COLORRED;
 DRAWTEXTABS(5+X,35+y,'主卖单'+STRRIGHT('          '+NUMTOSTRN(庄卖单,0),8)+STRRIGHT('          '+NUMTOSTRN(大卖单,0),8)+STRRIGHT('          '+NUMTOSTRN(中卖单,0),8)+STRRIGHT('          '+NUMTOSTRN(合卖单,0),8)),COLORFF8000;
 DRAWTEXTABS(5+X,50+y,'净  单'+STRRIGHT('          '+NUMTOSTRN(庄买单-庄卖单,0),8)+STRRIGHT('          '+NUMTOSTRN(大买单-大卖单,0),8)+STRRIGHT('          '+NUMTOSTRN(中买单-中卖单,0),8)+STRRIGHT('          '+NUMTOSTRN(合买单-合卖单,0),8)),COLORwhite;
 DRAWTEXTABS(5+X,65+y,'主买量'+STRRIGHT('          '+NUMTOSTRN(庄买量,0),8)+STRRIGHT('          '+NUMTOSTRN(大买量,0),8)+STRRIGHT('          '+NUMTOSTRN(中买量,0),8)+STRRIGHT('          '+NUMTOSTRN(总买量,0),8)),COLORRED;
 DRAWTEXTABS(5+X,80+y,'主卖量'+STRRIGHT('          '+NUMTOSTRN(庄卖量,0),8)+STRRIGHT('          '+NUMTOSTRN(大卖量,0),8)+STRRIGHT('          '+NUMTOSTRN(中卖量,0),8)+STRRIGHT('          '+NUMTOSTRN(总卖量,0),8)),COLORFF8000;
 DRAWTEXTABS(5+X,96+y,'净  量'+STRRIGHT('          '+NUMTOSTRN(庄买量-庄卖量,0),8)+STRRIGHT('          '+NUMTOSTRN(大买量-大卖量,0),8)+STRRIGHT('          '+NUMTOSTRN(中买量-中卖量,0),8)+STRRIGHT('          '+NUMTOSTRN(总买量-总卖量,0),8)),COLORwhite;
 MA1:=max(总买量,总卖量,SUM(WIDTHDRAWORDER(1),0),sum(WIDTHDRAWORDER(2),0));
 DRAWRECTABS(250+X,108+y,258+X,108+y-88*庄买量/ma1,rgb(255,0,0)),COLORRED;
 DRAWRECTABS(260+X,108+y,268+X,108+y-88*庄卖量/ma1,rgb(0,128,255)), COLORFF8000;
 DRAWRECTABS(280+X,108+y,288+X,108+y-88*大买量/ma1,rgb(255,0,0)),COLORRED;
 DRAWRECTABS(290+X,108+y,298+X,108+y-88*大卖量/ma1,rgb(0,128,255)),COLORFF8000;
 DRAWRECTABS(310+X,108+y,318+X,108+y-88*中买量/ma1,rgb(255,0,0)),COLORRED;
 DRAWRECTABS(320+X,108+y,328+X,108+y-88*中卖量/ma1,rgb(0,128,255)),COLORFF8000;
 DRAWRECTABS(340+X,108+y,348+X,108+y-88*小买量/ma1,rgb(255,0,0)),COLORRED;
 DRAWRECTABS(350+X,108+y,358+X,108+y-88*小卖量/ma1,rgb(0,128,255)),COLORFF8000;
 DRAWRECTABS(370+X,108+y,378+X,108+y-88*总买量/ma1,rgb(255,0,0)),COLORRED;
 DRAWRECTABS(380+X,108+y,388+X,108+y-88*总卖量/ma1,rgb(0,128,255)),COLORFF8000;
 DRAWRECTABS(416+X,108+y,424+X,108+y-88*sum(WIDTHDRAWORDER(1),0)/ma1,rgb(0,128,255)),COLORFF8000;
 DRAWRECTABS(443+X,108+y,451+X,108+y-88*sum(WIDTHDRAWORDER(2),0)/ma1,rgb(255,0,0)),COLORRED;
 {DRAWTEXTABS(405+X,75+y,'买撤:'+sum(WIDTHDRAWORDER(1),0)),colorff00ff;
 DRAWTEXTABS(405+X,90+y,'卖撤:'+sum(WIDTHDRAWORDER(2),0)),colorcyan;};




来函数检测结果如下:
该公式没有未来函数

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图