通达信多日资金流表格(源码副图贴图)
分享一个自己编的L2数据多日表格,因为本人不太会指标所以表格可能编得有点差,如果有高手是否能帮我改改在此谢谢了。
1.因为不会在副图里画横竖线所以表格是用一个个矩形框代替这直接导致了输入占用比较大,从而让后面的数据我只能以一行一个输出代替,导致数据因各个股票数据大小会有出框现象。
2.能不能让数据定点显示
3.能不能让负为绿色,正为红色,我试过加了代码显示无效不知道为什么
{多日资金流表格
{DRAWGBK(C>0,RGB(00,0,150),RGB(0,00,0),0,'',0);}
{DRAWRECTREL(0,0,999,999.4,IF(120,RGB(10,0,0),0));}
超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);
总量:=ABS(超B+大B+中B+小B)+(超S+大S+中S+小S);
机构净%:=((超B+大B)-(超S+大S))*100/总量;
散户净%:=((中B+小B)-(中S+小S))*100/总量;
总成交额:=(超B+大B+中B+小B)+(超S+大S+中S+小S);
总净流额:=(超B+大B+中B+小B)-(超S+大S+中S+小S);
机构净流:=(超B+大B)-(超S+大S);
散户净流:=(中B+小B)-(中S+小S);
超大净:=(超B)-(超S);
大单净:=(大B)-(大S);
中单净:=(中B)-(中S);
小单净:=(小B)-(小S);
N:=3;N1:=5;N2:=10;N3:=20;N4:=60;{N5:=144;N6:=233;}
近N净入:=SUM(净流入,N);
近N机构净:=SUM(机构净流,N);
近N超大净:=SUM(超大净,N);
近N大单净:=SUM(大单净,N);
近N中单净:=SUM(中单净,N);
近N小单净:=SUM(小单净,N);
近N散户净:=SUM(散户净流,N);
近N总成交额:=SUM(总成交额,N);
三净%:=近N机构净*100/近N总成交额;
三净额:=SUM(净流入,N);
近N1净入:=SUM(净流入,N1);
近N1机构净:=SUM(机构净流,N1);
近N1超大净:=SUM(超大净,N1);
近N1大单净:=SUM(大单净,N1);
近N1中单净:=SUM(中单净,N1);
近N1小单净:=SUM(小单净,N1);
近N1散户净:=SUM(散户净流,N1);
近N1总成交额:=SUM(总成交额,N1);
五净%:=近N1机构净*100/近N1总成交额;
五净额:=SUM(净流入,N1);
近N2净入:=SUM(净流入,N2);
近N2机构净:=SUM(机构净流,N2);
近N2超大净:=SUM(超大净,N2);
近N2大单净:=SUM(大单净,N2);
近N2中单净:=SUM(中单净,N2);
近N2小单净:=SUM(小单净,N2);
近N2散户净:=SUM(散户净流,N2);
近N2总成交额:=SUM(总成交额,N2);
十三净%:=近N2机构净*100/近N2总成交额;
十三净额:=SUM(净流入,N2);
近N3净入:=SUM(净流入,N3);
近N3机构净:=SUM(机构净流,N3);
近N3超大净:=SUM(超大净,N3);
近N3大单净:=SUM(大单净,N3);
近N3中单净:=SUM(中单净,N3);
近N3小单净:=SUM(小单净,N3);
近N3散户净:=SUM(散户净流,N3);
近N3总成交额:=SUM(总成交额,N3);
二一净%:=近N3机构净*100/近N3总成交额;
二一净额:=SUM(净流入,N3);
近N4净入:=SUM(净流入,N4);
近N4机构净:=SUM(机构净流,N4);
近N4超大净:=SUM(超大净,N4);
近N4大单净:=SUM(大单净,N4);
近N4中单净:=SUM(中单净,N4);
近N4小单净:=SUM(小单净,N4);
近N4散户净:=SUM(散户净流,N4);
近N4总成交额:=SUM(总成交额,N4);
五五净%:=近N4机构净*100/近N4总成交额;
五五净额:=SUM(净流入,N4);
{近N5净入:=SUM(净流入,N5);
近N5机构净:=SUM(机构净流,N5);
近N5散户净:=SUM(散户净流,N5);
近N5总成交额:=SUM(总成交额,N5);
一四四净%:=近N5机构净*100/近N5总成交额;
一四四净额:=SUM(净流入,N5);}
{近N6净入:=SUM(净流入,N6);
近N6机构净:=SUM(机构净流,N6);
近N6散户净:=SUM(散户净流,N6);
近N6总成交额:=SUM(总成交额,N6);
二三三净%:=近N6机构净*100/近N6总成交额;
二三三净额:=SUM(净流入,N6);}
DAZHI:=CONST(MAX(ABS(净流入),MAX(ABS(超大净),MAX(ABS(大单净),MAX(ABS(中单净),ABS(小单净)))))),NODRAW;
{表头}
DRAWRECTREL(40,40,150,150.4,IF(120,RGB(323,125,175),0));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.06,0.076,0,'资金搏弈 (万元) '),COLORYELLOW;
DRAWRECTREL(150,40,250,150.4,IF(120,RGB(323,125,175),0));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.17,0.076,0,'超大单(万元) 占比'),COLORYELLOW;
DRAWRECTREL(250,40,350,150.4,IF(120,RGB(323,125,175),0));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.27,0.076,0,'大单(万元) 占比'),COLORYELLOW;
DRAWRECTREL(350,40,450,150.4,IF(120,RGB(323,125,175),0));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.37,0.076,0,'中单(万元) 占比'),COLORYELLOW;
DRAWRECTREL(450,40,550,150.4,IF(120,RGB(323,125,175),0));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.47,0.076,0,'小单(万元) 占比'),COLORYELLOW;
DRAWRECTREL(550,40,650,150.4,IF(120,RGB(323,125,175),0));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.56,0.076,0,'机构净流入(万元) 占比'),COLORYELLOW;
DRAWRECTREL(650,40,750,150.4,IF(120,RGB(323,125,175),0));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.66,0.076,0,'散户净流(万元) 占比'),COLORYELLOW;
DRAWRECTREL(750,40,850,150.4,IF(120,RGB(323,125,175),0));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.76,0.076,0,'整体净流入(万元) 占比'),COLORYELLOW;
{表栏}
DRAWRECTREL(40,260,150,151.4,IF(120,RGB(323,125,175),0));{第二行第一}
DRAWRECTREL(150,260,250,151.4,IF(120,RGB(0,0,0),0));{第二行第二}
DRAWRECTREL(250,260,350,151.4,IF(120,RGB(0,0,0),0));{第二行第三}
DRAWRECTREL(350,260,450,151.4,IF(120,RGB(0,0,0),0));{第二行第四}
- 上一篇公式:【熊百组合】个人花钱买来的指标,现在无私奉献,预警涨停抓大牛
- 下一篇公式:通达信 买进就是赚(指标副图贴图)