大智慧超赢BBD 免费版 有图有源码介绍
大智慧超赢BBD 免费版 有图有源码
资金流 【BBD】
jj:=(HIGH+LOW+CLOSE)/3;qj0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
TD1:=qj0*(MIN(OPEN,CLOSE)-LOW);
XD1:=qj0*(jj-MIN(CLOSE,OPEN));
XD2:=qj0*(HIGH-MAX(OPEN,CLOSE));
TD2:=qj0*(MAX(CLOSE,OPEN)-jj);
日净额:((TD1+XD1)-(TD2+XD2))/10000,PRECIS2,linethick0;
周净额:sum(日净额,5),PRECIS2,linethick0;
月净额:sum(日净额,22),PRECIS2,linethick0;
FILLRGN(周净额,0,周净额>0,RGB(80,0,0),周净额<0,RGB(0,50,0));
stickline(日净额>0,0,日净额,6,0),color0000aa;
stickline(日净额>0,0,日净额,3,0),color0000cc;
stickline(日净额>0,0,日净额,1,0),color0000ff;
stickline(日净额<0,日净额,0,6,0),color00aa00;
stickline(日净额<0,日净额,0,3,0),color00cc00;
stickline(日净额<0,日净额,0,1,0),color00ff00;
DRAWTEXTREL(0,0,'资金流(万元)'),COLORYELLOW;
DRAWTEXTREL(0,80,'证券代码: '+STKLABEL+' 证券名称: '+STKNAME+''),ColorFFAA00;
主力持仓
jj:=(HIGH+LOW+CLOSE)/3;qj0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
买1:=qj0*(MIN(OPEN,CLOSE)-LOW);
买2:=qj0*(jj-MIN(CLOSE,OPEN));
卖1:=qj0*(MAX(CLOSE,OPEN)-jj);
卖2:=qj0*(HIGH-MAX(OPEN,CLOSE));
DT:=((买1+买2)-(卖1+卖2))/10000;
主力持仓线:sum(DT,66),COLOR888888,linethick2;
STICKLINE(DT>0,主力持仓线,主力持仓线+DT,2,0),COLOR0000FF;
STICKLine(DT<0,主力持仓线+DT,主力持仓线,2,0),COLOR00FF00;
DRAWTEXT(DISPSTATUS=2,主力持仓线,'主力线 ');
DRAWTEXTREL(0,0,'主力持仓线 '),COLORYELLOW;
散户持仓
jj:=(HIGH+LOW+CLOSE)/3;qj0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
TD1:=qj0*(MIN(OPEN,CLOSE)-LOW);DD1:=qj0*(jj-MIN(CLOSE,OPEN));
DD2:=qj0*(HIGH-MAX(OPEN,CLOSE));TD2:=qj0*(MAX(CLOSE,OPEN)-jj);
td:=TD1-TD2;da:=DD1-DD2;xd1:=1-(TD1+DD1);xd2:=1-(TD2+DD2);
tz:=v/sum(v,60)*100;DT:=((xd1-xd2)/10000)/tz;
散户持仓线:sum(DT,22),COLOR888888,LINETHICK2;
STICKLINE(DT>0,散户持仓线,散户持仓线+DT,2,0),COLORFF00FF;
STICKLine(DT<0,散户持仓线+DT,散户持仓线,2,0),COLORFF8800;
DRAWTEXT(DISPSTATUS=2,散户持仓线,'散户线 ');
DRAWTEXTREL(0,0,'散户持仓线'),COLORYELLOW;
gd11217