超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;
testskip(not(超b or 大b or 中b or 小b or 超s or 大s or 中s or 小s)!=0);
净流入:=(超b+大b+中b+小b)-(超s+大s+中s+小s);
超大单:=(超b)-(超s);
大单:=(大b)-(大s);
中单:=(中b)-(中s);
小单:=(小b)-(小s);
dazhi:=const(max(abs(净流入),max(abs(超大单),max(abs(大单),max(abs(中单),abs(小单)))))),nodraw;
近5净入:=sum(净流入,5);
近5超:=sum(超大单,5);
近5大:=sum(大单,5);
近5中:=sum(中单,5),;
近5小:=sum(小单,5);
近10净入:=sum(净流入,10);
近10超:=sum(超大单,10);
近10大:=sum(大单,10);
近10中:=sum(中单,10),;
近10小:=sum(小单,10);
近20净入:=sum(净流入,20);
近20超:=sum(超大单,20);
近20大:=sum(大单,20);
近20中:=sum(中单,20);
近20小:=sum(小单,20);
{}
流入:=abs(超b+大b+中b+小b)*1000/vol;
流出:=abs(超s+大s+中s+小s)*1000/vol;
近5流入:=abs(sum(超b,5)+sum(大b,5)+sum(中b,5)+sum(小b,5))*1000/vol;
近5流出:=abs(sum(超s,5)+sum(大s,5)+sum(中s,5)+sum(小s,5))*1000/vol;
近10流入:=abs(sum(超b,10)+sum(大b,10)+sum(中b,10)+sum(小b,10))*1000/vol;
近10流出:=abs(sum(超s,10)+sum(大s,10)+sum(中s,10)+sum(小s,10))*1000/vol;
近20流入:=abs(sum(超b,20)+sum(大b,20)+sum(中b,20)+sum(小b,20))*1000/vol;
近20流出:=abs(sum(超s,20)+sum(大s,20)+sum(中s,20)+sum(小s,20))*1000/vol;
净流买比:=流入*100/(流入+流出);
净流买比5:=近5流入*100/(近5流入+近5流出);
净流买比10:=近10流入*100/(近10流入+近10流出);
净流买比20:=近20流入*100/(近20流入+近20流出);
aas:=const(max(abs(流入),abs(流出)))*4,nodraw;
{ 当日 }
drawrectrel(0,0,243,999.2,if(120,rgb(10,0,0),0));
{drawtext_fix(currbarscount=1,0.0,0.001,0,'单位(万元)'),colordddddd;}
drawrectrel(10,abs(const(880-(abs(净流入)*50/dazhi))),25,880,if(const(净流入)>0,rgb(170,0,170),rgb(0,155,0)));
drawrectrel(48,abs(const(880-(abs(超大单)*50/dazhi))),80,880,if(const(超大单)>0,rgb(240,130,140),rgb(23,125,255)));
drawrectrel(96,abs(const(880-(abs(大单)*50/dazhi))),128,880,if(const(大单)>0,rgb(255,0,0),rgb(23,125,255)));
drawrectrel(144,abs(const(880-(abs(中单)*50/dazhi))),176,880,if(const(中单)>0,rgb(255,0,0),rgb(23,125,255)));
drawrectrel(192,abs(const(880-(abs(小单)*50/dazhi))),224,880,if(const(小单)>0,rgb(255,0,0),rgb(23,125,255)));
drawrectrel(30,205,190,145,rgb(0,140,0));
drawrectrel(30,195,190,155,rgb(0,160,0));
drawrectrel(30,185,190,165,rgb(0,180,0));
drawrectrel(30,175,190,175,rgb(0,210,0));
drawrectrel(30,205,30+const(净流买比*160/100),145,rgb(140,0,0));
drawrectrel(30,195,30+const(净流买比*160/100),155,rgb(160,0,0));
drawrectrel(30,185,30+const(净流买比*160/100),165,rgb(180,0,0));
drawrectrel(30,175,30+const(净流买比*160/100),175,rgb(210,0,0));
drawtext_fix(1,0.05,0.01,0,strcat(strcat('净流买比',con2str(净流买比,2)),'%')),coloryellow;
drawrectrel(110,205,110,145,rgb(250,250,0));
drawtext_fix(currbarscount=1,0.2,0.001,0,'当日'),colorffffff;
drawtext_fix(currbarscount=1,0.005,1,0,'净流'),colorffffff;
drawtext_fix(currbarscount=1,0.050,1,0,'超大'),color00ffff;
drawtext_fix(currbarscount=1,0.095,1,0,'大单'),colorred;
drawtext_fix(currbarscount=1,0.145,1,0,'中单'),colorred;
drawtext_fix(currbarscount=1,0.192,1,0,'小单'),colorgreen;
drawnumber_fix(currbarscount=1,0.005,0.79,0,ceiling(净流入)),coloryellow;
drawnumber_fix(currbarscount=1,0.048,0.71,0,ceiling(超大单)),coloryellow;
drawnumber_fix(currbarscount=1,0.096,0.63,0,ceiling(大单)),coloryellow;
drawnumber_fix(currbarscount=1,0.148,0.55,0,ceiling(中单)),coloryellow;
drawnumber_fix(currbarscount=1,0.192,0.47,0,ceiling(小单)),coloryellow;
{5日 }
drawrectrel(243,0,505,999.2,if(120,rgb(10,0,0),0));
drawrectrel(260,abs(const(880-(abs(近5净入)*35/dazhi))),275,880,if(const(近5净入)>0,rgb(180,0,180),rgb(000,155,000)));
drawrectrel(301,abs(const(880-(abs(近5超)*35/dazhi))),333,880,if(const(近5超)>0,rgb(240,130,140),rgb(23,125,255)));
drawrectrel(349,abs(const(880-(abs(近5大)*35/dazhi))),381,880,if(const(近5大)>0,rgb(255,0,0),rgb(23,125,255)));
drawrectrel(397,abs(const(880-(abs(近5中)*35/dazhi))),429,880,if(const(近5中)>0,rgb(255,0,0),rgb(23,125,255)));
drawrectrel(445,abs(const(880-(abs(近5小)*35/dazhi))),477,880,if(const(近5小)>0,rgb(255,0,0),rgb(23,125,255)));
drawrectrel(280,205,440,145,rgb(0,155,0));
drawrectrel(280,205,280+const(净流买比5*160/100),145,rgb(160,0,0));
drawtext_fix(1,0.3,0.01,0,strcat(strcat('净流买比',con2str(净流买比5,2)),'%')),coloryellow;
drawrectrel(360,205,360,145,rgb(250,250,0));
drawtext_fix(currbarscount=1,0.460,0.001,0,'5日'),colorffffff;
drawtext_fix(currbarscount=1,0.260,1,0,'净流'),colorffffff;
drawtext_fix(currbarscount=1,0.305,1,0,'超大'),color00ffff;
drawtext_fix(currbarscount=1,0.353,1,0,'大单'),colorred;
drawtext_fix(currbarscount=1,0.400,1,0,'中单'),colorred;
drawtext_fix(currbarscount=1,0.447,1,0,'小单'),colorgreen;
drawnumber_fix(currbarscount=1,0.260,0.790,0,ceiling(近5净入)),coloryellow;
drawnumber_fix(currbarscount=1,0.301,0.710,0,ceiling(近5超)),coloryellow;
drawnumber_fix(currbarscount=1,0.349,0.630,0,ceiling(近5大)),coloryellow;
drawnumber_fix(currbarscount=1,0.397,0.550,0,ceiling(近5中)),coloryellow;
drawnumber_fix(currbarscount=1,0.445,0.470,0,ceiling(近5小)),coloryellow;
{ 10 }
drawrectrel(500,0,750,999.3,if(120,rgb(10,0,0),0));
drawtext_fix(currbarscount=1,0.70,0.001,0,'10日'),colorffffff;
drawrectrel(520,abs(const(880-(abs(近10净入)*25/dazhi))),535,880,if(const(近10净入)>0,rgb(180,0,180),rgb(000,155,000)));
drawrectrel(565,abs(const(880-(abs(近10超)*25/dazhi))),595,880,if(const(近10超)>0,rgb(240,130,140),rgb(23,125,255)));
drawrectrel(613,abs(const(880-(abs(近10大)*25/dazhi))),645,880,if(const(近10大)>0,rgb(255,0,0),rgb(23,125,255)));
drawrectrel(661,abs(const(880-(abs(近10中)*25/dazhi))),693,880,if(const(近10中)>0,rgb(255,0,0),rgb(23,125,255)));
drawrectrel(709,abs(const(880-(abs(近10小)*25/dazhi))),741,876,if(const(近10小)>0,rgb(255,0,0),rgb(23,125,255)));
drawrectrel(530,205,690,145,rgb(0,155,0));
{drawrectrel(530,195,690,155,rgb(0,175,0));
drawrectrel(530,185,690,165,rgb(0,195,0));
drawrectrel(530,175,690,175,rgb(0,225,0));}
drawrectrel(530,205,530+const(净流买比10*160/100),145,rgb(160,0,0));
{drawrectrel(530,195,530+const(净流买比20*160/100),155,rgb(180,0,0));
drawrectrel(530,185,530+const(净流买比20*160/100),165,rgb(200,0,0));
drawrectrel(530,175,530+const(净流买比20*160/100),175,rgb(230,0,0));}
drawtext_fix(1,0.55,0.01,0,strcat(strcat('净流买比',con2str(净流买比10,2)),'%')),coloryellow;
drawrectrel(610,205,610,145,rgb(250,250,0));
drawtext_fix(currbarscount=1,0.520,1,0,'净流'),colorffffff;
drawtext_fix(currbarscount=1,0.565,1,0,'超大'),color00ffff;
drawtext_fix(currbarscount=1,0.618,1,0,'大单'),colorred;
drawtext_fix(currbarscount=1,0.666,1,0,'中单'),colorred;
drawtext_fix(currbarscount=1,0.710,1,0,'小单'),colorgreen;
drawnumber_fix(currbarscount=1,0.520,0.79,0,ceiling(近10净入)),coloryellow;
drawnumber_fix(currbarscount=1,0.565,0.71,0,ceiling(近10超)),coloryellow;
drawnumber_fix(currbarscount=1,0.613,0.63,0,ceiling(近10大)),coloryellow;
drawnumber_fix(currbarscount=1,0.661,0.55,0,ceiling(近10中)),coloryellow;
drawnumber_fix(currbarscount=1,0.709,0.470,0,ceiling(近10小)),coloryellow;
{ 20 }
drawrectrel(750,0,1001,999.3,if(120,rgb(10,0,0),0));
drawtext_fix(currbarscount=1,0.95,0.001,0,'20日'),colorffffff;
drawrectrel(770,abs(const(880-(abs(近20净入)*25/dazhi))),785,880,if(const(近20净入)>0,rgb(180,0,180),rgb(000,155,000)));
drawrectrel(815,abs(const(880-(abs(近20超)*25/dazhi))),845,880,if(const(近20超)>0,rgb(240,130,140),rgb(23,125,255)));
drawrectrel(863,abs(const(880-(abs(近20大)*25/dazhi))),895,880,if(const(近20大)>0,rgb(255,0,0),rgb(23,125,255)));
drawrectrel(911,abs(const(880-(abs(近20中)*25/dazhi))),943,880,if(const(近20中)>0,rgb(255,0,0),rgb(23,125,255)));
drawrectrel(959,abs(const(880-(abs(近20小)*25/dazhi))),991,876,if(const(近20小)>0,rgb(255,0,0),rgb(23,125,255)));
drawrectrel(800,205,960,145,rgb(0,155,0));
{drawrectrel(800,195,960,155,rgb(0,175,0));
drawrectrel(800,185,960,165,rgb(0,195,0));
drawrectrel(800,175,960,175,rgb(0,225,0));}
drawrectrel(800,205,800+const(净流买比20*160/100),145,rgb(160,0,0));
{drawrectrel(800,195,800+const(净流买比20*160/100),155,rgb(180,0,0));
drawrectrel(800,185,800+const(净流买比20*160/100),165,rgb(200,0,0));
drawrectrel(800,175,800+const(净流买比20*160/100),175,rgb(230,0,0));}
drawtext_fix(1,0.80,0.01,0,strcat(strcat('净流买比',con2str(净流买比20,2)),'%')),coloryellow;
drawrectrel(880,205,880,145,rgb(250,250,0));
drawtext_fix(currbarscount=1,0.770,1,0,'净流'),colorffffff;
drawtext_fix(currbarscount=1,0.815,1,0,'超大'),color00ffff;
drawtext_fix(currbarscount=1,0.863,1,0,'大单'),colorred;
drawtext_fix(currbarscount=1,0.911,1,0,'中单'),colorred;
drawtext_fix(currbarscount=1,0.959,1,0,'小单'),colorgreen;
drawnumber_fix(currbarscount=1,0.770,0.79,0,ceiling(近20净入)),coloryellow;
drawnumber_fix(currbarscount=1,0.815,0.71,0,ceiling(近20超)),coloryellow;
drawnumber_fix(currbarscount=1,0.863,0.63,0,ceiling(近20大)),coloryellow;
drawnumber_fix(currbarscount=1,0.911,0.55,0,ceiling(近20中)),coloryellow;
drawnumber_fix(currbarscount=1,0.959,0.470,0,ceiling(近20小)),coloryellow;
上一指标公式:强势狙击之飞檐走壁 通达信强势狙击
下一指标公式:黄金拐点 黄金拐点介入 黄金拐点关注 通达信介入黄金
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文冠军资金 通达信冠军仅供学习研究。