以下是大智慧机构资金副图源码
大智慧机构资金副图源码
TODAY:=DYNAINFO(7)=CLOSE and DYNAINFO(10)=AMOUNT;
buy1:=BIGORDER(1,2 );
buy2:=”DDEDATA@BIGORDER”(1,2);
sell1:=-BIGORDER(2,2 );
sell2:=-“DDEDATA@BIGORDER”(2,2);
机构买入:=IF(TODAY,buy2,buy1);
机构卖出:=IF(TODAY,sell2,sell1);
机构净额:=(机构买入+机构卖出);
机构【万元】:(机构净额)*amount/10000,PRECIS2,linethick0;
成交比:机构净额*100,PRECIS2,linethick0;
五日净额:sum(机构【万元】,5),PRECIS2,linethick0;
十日净额:sum(机构【万元】,10),PRECIS2,linethick0;
五日成交比:sum(机构【万元】,5)/sum(AMOUNT,5)*1000000,PRECIS2,linethick0;
流通比:=(机构净额)*vul/CAPITAL*100;
a:=sum(流通比,0);
五日流通比:sum(流通比,5),PRECIS2,linethick0;
STICKLINE(机构净额>0,ref(a,1),(ref(a,1)+流通比),4,0),COLORRED;
STICKLINE( 机构净额<0,ref(a,1),(ref(a,1)+流通比),4,0),COLOR00FF00;
STICKLINE(机构净额=0,ref(a,1),(ref(a,1)+流通比),4,0),COLORffffff;
zjqs:=ema(a,5);
JG资金方向:if(zjqs>ref(zjqs,1),1,-1),PRECIS0,COLORMAGENTA,LINETHICK0;
资金趋势:” “;
PARTLINE(zjqs,zjqs>ref(zjqs,1),rgb(255,0,200),zjqs<ref(zjqs,1),rgb(255,255,255)),PRECIS2,LINETHICK2,LAYER0;
评论(0)