通达信自编图表资金流副图源码

 

主力bbd:=(BIGORDER(1)-BIGORDER(2))*AMOUNT/10000;
超大bbd:=(BIGORDER(1,3)-BIGORDER(2,3))*AMOUNT/10000;
大户bbd:=主力bbd-超大bbd;
中户bbd:=(BIGORDER(1,1)-BIGORDER(2,1))*AMOUNT/10000-主力bbd;
散户bbd:=((1-BIGORDER(1,1))-(1-BIGORDER(2,1)))*AMOUNT/10000;
占比1:=(BIGORDER(1)-BIGORDER(2));
占比2:=(BIGORDER(1)-BIGORDER(2))*AMOUNT/(CAPITAL*c);
DRAWTEXTREL(15,710,'总股本:'+NUMTOSTRn(FINANCE2(35),0)+'万股' +' 流通A股:'+NUMTOSTRn(FINANCE2(37),0)+'万股'+' 每股收益:'+NUMTOSTRN(FINANCE2(3),3)+'元'+' 市盈率:'+NUMTOSTRN(DYNAINFO(39),2)+' 市净率:'+NUMTOSTRN((CLOSE / FINANCE2(4)),2)+' 主营收入同比增长:'+NUMTOSTRN(FINANCE2(11),2)+'%'+' 净利润同比增长:'+NUMTOSTRN(FINANCE2(10),2)+'%'),Color0088FF;
DRAWTEXTREL(80,25,'  Superviiew资金流向'),ColorFFFF00,LINETHICK3;
DRAWTEXTREL(410,25,'    '+STKLABEL),ColorWHITE,LINETHICK3;
DRAWTEXTREL(310,25,'    '+STKNAME),ColorRED,LINETHICK3;
DRAWTEXTREL(550,30,' 所属版块: '+BKNAME),Color555FFF;
DRAWTEXTREL(115,99,'   日   期'),ColorRED;
DRAWTEXTREL(144,139,'月'+DAY),ColorEEFF00;
DRAWTEXTREL(125,139,'年'+MONTH),ColorEEFF00;
DRAWTEXTREL(95,139,' '+YEAR),ColorEEFF00;
DRAWTEXTREL(170,139,'日'),ColorEEFF00;

DRAWTEXTREL(115,189,'前一交易日  '),Color55FF55;
DRAWTEXTREL(115,239,'前二交易日'),Color55EE00;
DRAWTEXTREL(115,289,'前三交易日'),Color55FF00;
DRAWTEXTREL(115,339,'前四交易日'),Color55FF00;
DRAWTEXTREL(115,389,'SV 5日统计'),Color555FFF,LINETHICK2;
DRAWTEXTREL(115,439,'SV10日统计'),Color555FFF,LINETHICK2;
DRAWTEXTREL(115,489,'SV20日统计'),Color555FFF,LINETHICK2;

DRAWTEXTREL(245,99,'散户净流入(万元)'),Color555FFF;
DRAWTEXTREL(365,99,'中户净流入(万元)'),Color555FFF;
DRAWTEXTREL(485,99,'大户净流入(万元)'),Color555FFF;
DRAWTEXTREL(605,99,'超大户净流入(万元)'),Color555FFF;
DRAWTEXTREL(735,99,'主力净流入(万元)'),Color555FFF;
DRAWTEXTREL(875,99,'占总成交额比(%)'),Color555FFF;
DRAWTEXTREL(1000,99,'占流通市值比(%)'),Color555FFF;
DRAWTEXTREL(85,69,'────────────────────────────────────────────────────────────────────────────────────'),ColorRED;
DRAWTEXTREL(245,139,'    '+散户bbd),Color208FFF;
DRAWTEXTREL(365,139,'    '+中户bbd),Color208FFF;
DRAWTEXTREL(485,139,'    '+大户bbd),Color208FFF;
DRAWTEXTREL(605,139,'    '+超大bbd),Color208FFF;
DRAWTEXTREL(735,139,'    '+主力bbd),Color208FFF;
DRAWTEXTREL(875,139,'    '+占比1),Color208FFF;
DRAWTEXTREL(1000,139,'    '+占比2),Color208FFF;
DRAWTEXTREL(245,189,'    '+REF(散户bbd,1)),Color208FFF;
DRAWTEXTREL(365,189,'    '+REF(中户bbd,1)),Color208FFF;
DRAWTEXTREL(485,189,'    '+REF(大户bbd,1)),Color208FFF;
DRAWTEXTREL(605,189,'    '+REF(超大bbd,1)),Color208FFF;
DRAWTEXTREL(735,189,'    '+REF(主力bbd,1)),Color208FFF;
DRAWTEXTREL(875,189,'    '+REF(占比1,1)),Color208FFF;
DRAWTEXTREL(1000,189,'    '+REF(占比2,1)),Color208FFF;
DRAWTEXTREL(245,239,'    '+REF(散户bbd,2)),Color208FFF;
DRAWTEXTREL(365,239,'    '+REF(中户bbd,2)),Color208FFF;
DRAWTEXTREL(485,239,'    '+REF(大户bbd,2)),Color208FFF;
DRAWTEXTREL(605,239,'    '+REF(超大bbd,2)),Color208FFF;
DRAWTEXTREL(735,239,'    '+REF(主力bbd,2)),Color208FFF;
DRAWTEXTREL(875,239,'    '+REF(占比1,2)),Color208FFF;
DRAWTEXTREL(1000,239,'    '+REF(占比2,2)),Color208FFF;
DRAWTEXTREL(245,289,'    '+REF(散户bbd,3)),Color208FFF;
DRAWTEXTREL(365,289,'    '+REF(中户bbd,3)),Color208FFF;
DRAWTEXTREL(485,289,'    '+REF(大户bbd,3)),Color208FFF;
DRAWTEXTREL(605,289,'    '+REF(超大bbd,3)),Color208FFF;
DRAWTEXTREL(735,289,'    '+REF(主力bbd,3)),Color208FFF;
DRAWTEXTREL(875,289,'    '+REF(占比1,3)),Color208FFF;
DRAWTEXTREL(1000,289,'    '+REF(占比2,3)),Color208FFF;
DRAWTEXTREL(245,339,'    '+REF(散户bbd,4)),Color208FFF;
DRAWTEXTREL(365,339,'    '+REF(中户bbd,4)),Color208FFF;
DRAWTEXTREL(485,339,'    '+REF(大户bbd,4)),Color208FFF;
DRAWTEXTREL(605,339,'    '+REF(超大bbd,4)),Color208FFF;
DRAWTEXTREL(735,339,'    '+REF(主力bbd,4)),Color208FFF;
DRAWTEXTREL(875,339,'    '+REF(占比1,4)),Color208FFF;
DRAWTEXTREL(1000,339,'    '+REF(占比2,4)),Color208FFF;
DRAWTEXTREL(245,389,'    '+SUM(散户bbd,5)),Color208FFF;
DRAWTEXTREL(365,389,'    '+SUM(中户bbd,5)),Color208FFF;
DRAWTEXTREL(485,389,'    '+SUM(大户bbd,5)),Color208FFF;
DRAWTEXTREL(605,389,'    '+SUM(超大bbd,5)),Color208FFF;
DRAWTEXTREL(735,389,'    '+SUM(主力bbd,5)),Color208FFF;
DRAWTEXTREL(875,389,'    '+SUM(占比1,5)),Color208FFF;
DRAWTEXTREL(1000,389,'    '+SUM(占比2,5)),Color208FFF;
DRAWTEXTREL(245,439,'    '+SUM(散户bbd,10)),Color208FFF;
DRAWTEXTREL(365,439,'    '+SUM(中户bbd,10)),Color208FFF;
DRAWTEXTREL(485,439,'    '+SUM(大户bbd,10)),Color208FFF;
DRAWTEXTREL(605,439,'    '+SUM(超大bbd,10)),Color208FFF;
DRAWTEXTREL(735,439,'    '+SUM(主力bbd,10)),Color208FFF;
DRAWTEXTREL(875,439,'    '+SUM(占比1,10)),Color208FFF;
DRAWTEXTREL(1000,439,'    '+SUM(占比2,10)),Color208FFF;
DRAWTEXTREL(245,489,'    '+SUM(散户bbd,20)),Color208FFF;
DRAWTEXTREL(365,489,'    '+SUM(中户bbd,20)),Color208FFF;
DRAWTEXTREL(485,489,'    '+SUM(大户bbd,20)),Color208FFF;
DRAWTEXTREL(605,489,'    '+SUM(超大bbd,20)),Color208FFF;
DRAWTEXTREL(735,489,'    '+SUM(主力bbd,20)),Color208FFF;
DRAWTEXTREL(875,489,'    '+SUM(占比1,20)),Color208FFF;
DRAWTEXTREL(1000,489,'    '+SUM(占比2,20)),Color208FFF;
 






来函数检测结果如下
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE

解密、定制、编写公式指标请联系QQ或微信同号:88652583
置顶指标

相关指标公式

主力BBD赋值:(BIGORDER(1)-BIGORDER(2))*成交额(元)/10000
超大BBD赋值:(BIGORDER(1,3)-BIGORDER(2,3))*成交额(元)/10000
大户BBD赋值:主力BBD-超大BBD
中户BBD赋值:(BIGORDER(1,1)-BIGORDER(2,1))*成交额(元)/10000-主力BBD
散户BBD赋值:((1-BIGORDER(1,1))-(1-BIGORDER(2,1)))*成交额(元)/10000
占比1赋值:(BIGORDER(1)-BIGORDER(2))
占比2赋值:(BIGORDER(1)-BIGORDER(2))*成交额(元)/(当前流通股本(手)*收盘价)
输出输出输出DRAWTEXTREL(15,710,'总股本:'+NUMTOSTRN(FINANCE2(35),0)+'万股' +' 流通A股:'+NUMTOSTRN(FINANCE2(37),0)+'万股'+' 每股收益:'+NUMTOSTRN(FINANCE2(3),3)+'元'+' 云数据指标:'+NUMTOSTRN(市盈(动),2)+' 云数据指标:'+NUMTOSTRN((收盘价 / FINANCE2(4)),2)+' 主营收入同比增长:'+NUMTOSTRN(FINANCE2(11),2)+'%'+' 净利润同比增长:'+NUMTOSTRN(FINANCE2(10),2)+'%'),COLOR0088FF
DRAWTEXTREL(80,25,' SUPERVIIEW资金流向'),COLORFFFF00,线宽为3
DRAWTEXTREL(410,25,' '+STKLABEL),画白色,线宽为3
DRAWTEXTREL(310,25,' '+品种名称),画红色,线宽为3
输出DRAWTEXTREL(550,30,' 所属版块: '+BKNAME),COLOR555FFF
DRAWTEXTREL(115,99,' 日 期'),画红色
DRAWTEXTREL(144,139,'月'+日),COLOREEFF00
DRAWTEXTREL(125,139,'年'+月份),COLOREEFF00
DRAWTEXTREL(95,139,' '+年份),COLOREEFF00
DRAWTEXTREL(170,139,'日'),COLOREEFF00
DRAWTEXTREL(115,189,'前一交易日 '),COLOR55FF55
DRAWTEXTREL(115,239,'前二交易日'),COLOR55EE00
DRAWTEXTREL(115,289,'前三交易日'),COLOR55FF00
DRAWTEXTREL(115,339,'前四交易日'),COLOR55FF00
DRAWTEXTREL(115,389,'SV 5日统计'),COLOR555FFF,线宽为2
DRAWTEXTREL(115,439,'SV10日统计'),COLOR555FFF,线宽为2
DRAWTEXTREL(115,489,'SV20日统计'),COLOR555FFF,线宽为2
DRAWTEXTREL(245,99,'散户净流入(万元)'),COLOR555FFF
DRAWTEXTREL(365,99,'中户净流入(万元)'),COLOR555FFF
DRAWTEXTREL(485,99,'大户净流入(万元)'),COLOR555FFF
DRAWTEXTREL(605,99,'超大户净流入(万元)'),COLOR555FFF
DRAWTEXTREL(735,99,'主力净流入(万元)'),COLOR555FFF
DRAWTEXTREL(875,99,'占总成交额比(%)'),COLOR555FFF
DRAWTEXTREL(1000,99,'占流通市值比(%)'),COLOR555FFF
DRAWTEXTREL(85,69,'────────────────────────────────────────────────────────────────────────────────────'),画红色
DRAWTEXTREL(245,139,' '+散户BBD),COLOR208FFF
DRAWTEXTREL(365,139,' '+中户BBD),COLOR208FFF
DRAWTEXTREL(485,139,' '+大户BBD),COLOR208FFF
DRAWTEXTREL(605,139,' '+超大BBD),COLOR208FFF
DRAWTEXTREL(735,139,' '+主力BBD),COLOR208FFF
DRAWTEXTREL(875,139,' '+占比1),COLOR208FFF
DRAWTEXTREL(1000,139,' '+占比2),COLOR208FFF
DRAWTEXTREL(245,189,' '+1日前的散户BBD),COLOR208FFF
DRAWTEXTREL(365,189,' '+1日前的中户BBD),COLOR208FFF
DRAWTEXTREL(485,189,' '+1日前的大户BBD),COLOR208FFF
DRAWTEXTREL(605,189,' '+1日前的超大BBD),COLOR208FFF
DRAWTEXTREL(735,189,' '+1日前的主力BBD),COLOR208FFF
DRAWTEXTREL(875,189,' '+1日前的占比1),COLOR208FFF
DRAWTEXTREL(1000,189,' '+1日前的占比2),COLOR208FFF
DRAWTEXTREL(245,239,' '+2日前的散户BBD),COLOR208FFF
DRAWTEXTREL(365,239,' '+2日前的中户BBD),COLOR208FFF
DRAWTEXTREL(485,239,' '+2日前的大户BBD),COLOR208FFF
DRAWTEXTREL(605,239,' '+2日前的超大BBD),COLOR208FFF
DRAWTEXTREL(735,239,' '+2日前的主力BBD),COLOR208FFF
DRAWTEXTREL(875,239,' '+2日前的占比1),COLOR208FFF
DRAWTEXTREL(1000,239,' '+2日前的占比2),COLOR208FFF
DRAWTEXTREL(245,289,' '+3日前的散户BBD),COLOR208FFF
DRAWTEXTREL(365,289,' '+3日前的中户BBD),COLOR208FFF
DRAWTEXTREL(485,289,' '+3日前的大户BBD),COLOR208FFF
DRAWTEXTREL(605,289,' '+3日前的超大BBD),COLOR208FFF
DRAWTEXTREL(735,289,' '+3日前的主力BBD),COLOR208FFF
DRAWTEXTREL(875,289,' '+3日前的占比1),COLOR208FFF
DRAWTEXTREL(1000,289,' '+3日前的占比2),COLOR208FFF
DRAWTEXTREL(245,339,' '+4日前的散户BBD),COLOR208FFF
DRAWTEXTREL(365,339,' '+4日前的中户BBD),COLOR208FFF
DRAWTEXTREL(485,339,' '+4日前的大户BBD),COLOR208FFF
DRAWTEXTREL(605,339,' '+4日前的超大BBD),COLOR208FFF
DRAWTEXTREL(735,339,' '+4日前的主力BBD),COLOR208FFF
DRAWTEXTREL(875,339,' '+4日前的占比1),COLOR208FFF
DRAWTEXTREL(1000,339,' '+4日前的占比2),COLOR208FFF
DRAWTEXTREL(245,389,' '+散户BBD的5日累和),COLOR208FFF
DRAWTEXTREL(365,389,' '+中户BBD的5日累和),COLOR208FFF
DRAWTEXTREL(485,389,' '+大户BBD的5日累和),COLOR208FFF
DRAWTEXTREL(605,389,' '+超大BBD的5日累和),COLOR208FFF
DRAWTEXTREL(735,389,' '+主力BBD的5日累和),COLOR208FFF
DRAWTEXTREL(875,389,' '+占比1的5日累和),COLOR208FFF
DRAWTEXTREL(1000,389,' '+占比2的5日累和),COLOR208FFF
DRAWTEXTREL(245,439,' '+散户BBD的10日累和),COLOR208FFF
DRAWTEXTREL(365,439,' '+中户BBD的10日累和),COLOR208FFF
DRAWTEXTREL(485,439,' '+大户BBD的10日累和),COLOR208FFF
DRAWTEXTREL(605,439,' '+超大BBD的10日累和),COLOR208FFF
DRAWTEXTREL(735,439,' '+主力BBD的10日累和),COLOR208FFF
DRAWTEXTREL(875,439,' '+占比1的10日累和),COLOR208FFF
DRAWTEXTREL(1000,439,' '+占比2的10日累和),COLOR208FFF
DRAWTEXTREL(245,489,' '+散户BBD的20日累和),COLOR208FFF
DRAWTEXTREL(365,489,' '+中户BBD的20日累和),COLOR208FFF
DRAWTEXTREL(485,489,' '+大户BBD的20日累和),COLOR208FFF
DRAWTEXTREL(605,489,' '+超大BBD的20日累和),COLOR208FFF
DRAWTEXTREL(735,489,' '+主力BBD的20日累和),COLOR208FFF
DRAWTEXTREL(875,489,' '+占比1的20日累和),COLOR208FFF
DRAWTEXTREL(1000,489,' '+占比2的20日累和),COLOR208FFF

指标安装下载帮助  |   联系我们  |  乐淘公式网  |  公式网   |  指标公式  |   加入收藏   |  设为主页

@2005-2025 浙ICP备2024071487号-1 乐淘公式网公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:乐淘公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图