通达信资金博弈成交量副图源码

2016-11-18 21:43:00来源:本站整理浏览:1169

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.283,0.98,0,'大'),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.307,0.98,0,'中'),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.333,0.98,0,'小'),COLORWHITE;
DRAWTEXT_FIX(C>0,0.196,0.42,0,'近'),COLORLIBLUE;
DRAWTEXT_FIX(C>0,0.196,0.54,0,'5'),COLORLIBLUE;
DRAWTEXT_FIX(C>0,0.196,0.66,0,'天'),COLORLIBLUE;
DRAWTEXT_FIX(C>0,0.196,0.78,0,'资'),COLORLIBLUE;
DRAWTEXT_FIX(C>0,0.196,0.90,0,'金'),COLORLIBLUE;
DRAWTEXT_FIX(C>0,0.212,0.60,0,'万'),COLORLIBLUE;
DRAWTEXT_FIX(C>0,0.212,0.75,0,'元'),COLORLIBLUE;

{最近10天和20天的资金流量}
N1:=10;{默认10天}
N2:=20;{默认20天}
DRAWRECTREL(420,0,350,999,IF(120,RGB(0,64,64),0))NOFRAME;
{超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
超S:=L2_AMO(0,3)/10000.0;
大S:=L2_AMO(1,3)/10000.0;
中S:=L2_AMO(2,3)/10000.0;
小S:=L2_AMO(3,3)/10000.0;
净流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S);
超大单:=(超B)-(超S);
大单:=(大B)-(大S);
中单:=(中B)-(中S);
小单:=(小B)-(小S);}
净流入N1天和:=SUM(净流入,N1);
净流入N2天和:=SUM(净流入,N2);
DAZHIXZ:=CONST(MAX(ABS(净流入N1天和),ABS(净流入N2天和))),NODRAW;
DRAWRECTREL(360,CONST(950-(ABS(净流入N1天和)*680/DAZHIXZ)),380,950,IF(CONST(净流入N1天和)>0,RGB(192,0,64),RGB(0,128,128)))NOFRAME;
DRAWRECTREL(390,CONST(950-(ABS(净流入N2天和)*680/DAZHIXZ)),410,950,IF(CONST(净流入N2天和)>0,RGB(190,0,64),RGB(0,128,128)))NOFRAME;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.355,0.35,0,INTPART(净流入N1天和)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.390,0.50,0,INTPART(净流入N2天和)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.350,0.05,0,'10天净流 (万元)'),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.385,0.20,0,'20天净流'),COLORWHITE;
 


 


上一页  [1] [2] [3] 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式