股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 「指标」通达信基本面主图公式源码


    [-----复制链接-----]

22万

主题

22万

帖子

14

精华

积分
11042
楼主
2024-2-19 22:32:45
【资料名称】:通达信基本面主图公式源码介绍
【资料描述】:

通达信基本面主图公式源码

可以叠加在主图上的基本面公式源码


 

{-----------------------------------------------------------------------------------------------------}
{-------------------------------------------------基本面----------------------------------------------}
{距形}
DRAWRECTREL(0,0,288,348,RGB(68,52,75));
{基本资料}
品种类型:=FINANCE(3);
所属板块:=HYBLOCK;
上市天数:=FINANCE(42);
股总市值:=ROUND(FINANCE(41)/100000000);
流通市值:=ROUND(FINANCE(40)/100000000);
股东人数:=FINANCE(8);
人均持股:=ROUND(FINANCE(7)/FINANCE(8));
{}
DRAWTEXT_FIX(1,0.008,0.01,0,'基本资料:'),COLORFFCC99;
DRAWTEXT_FIX(1,0.008,0.05,0,'品种类型:'),COLOR99CCFF;
DRAWTEXT_FIX(1,0.008,0.09,0,'行业板块:'),COLOR99CCFF;
DRAWTEXT_FIX(1,0.008,0.13,0,'上市天数:'),COLOR99CCFF;
DRAWTEXT_FIX(1,0.008,0.17,0,'股东人数:'),COLOR99CCFF;
DRAWTEXT_FIX(1,0.008,0.21,0,'人均持股:'),COLOR99CCFF;
{}
DRAWTEXT_FIX(品种类型=1,0.055,0.05,0,'沪 深 A 股'),COLORYELLOW;
DRAWTEXT_FIX(品种类型=2,0.055,0.05,0,' 中 小 板'),COLORYELLOW;
DRAWTEXT_FIX(品种类型=3,0.055,0.05,0,' 创 业 板'),COLORYELLOW;
DRAWTEXT_FIX(1,0.055,0.09,0,HYBLOCK),COLORYELLOW;{行业板块}
{数值}
DRAWNUMBER_FIX(1,0.050,0.13,0,上市天数),COLORGREEN;
DRAWNUMBER_FIX(1,0.050,0.17,0,股东人数),COLORGREEN;
DRAWNUMBER_FIX(1,0.050,0.21,0,人均持股),COLORGREEN;
{单位}
DRAWTEXT_FIX(1,0.08,0.13,0,'天'),COLORWHITE;
DRAWTEXT_FIX(1,0.08,0.17,0,'人'),COLORWHITE;
DRAWTEXT_FIX(1,0.08,0.21,0,'股'),COLORWHITE;
{所属板块}
DRAWTEXT_FIX(1,0.008,0.25,0,'地区板块:')COLOR99CCFF;
DRAWTEXT_FIX(1,0.048,0.25,0,DYBLOCK)COLORGREEN;
DRAWTEXT_FIX(1,0.088,0.25,0,'概念板块:')COLOR99CCFF;
DRAWTEXT_FIX(1,0.128,0.25,0,GNBLOCK)COLORGREEN;
DRAWTEXT_FIX(1,0.008,0.29,0,'风格板块:')COLOR99CCFF;
DRAWTEXT_FIX(1,0.048,0.29,0,FGBLOCK)COLORGREEN;
{业绩指标}
净资收益率:=(FINANCE(33)/FINANCE(34)*100);
主营利润率:=(FINANCE(23)/FINANCE(20)*100);
现金负债比:=(FINANCE(25)/FINANCE(15));
收入同比:=FINANCE(44);{主营收入同比增长率}
利润同比:=FINANCE(43);{净利润同比增长率}
{}
DRAWTEXT_FIX(1,0.108,0.01,0,'业绩资料:'),COLORFFCC99;
DRAWTEXT_FIX(1,0.108,0.05,0,'净资产收益率:'),COLOR99CCFF;
DRAWTEXT_FIX(1,0.108,0.09,0,'主营业务利润率:'),COLOR99CCFF;
DRAWTEXT_FIX(1,0.108,0.13,0,'现金流动负债比:'),COLOR99CCFF;
DRAWTEXT_FIX(1,0.092,0.17,0,'主营收入同比增长率:'),COLOR99CCFF;
DRAWTEXT_FIX(1,0.099,0.21,0,'净利润同比增长率:'),COLOR99CCFF;
{}
DRAWNUMBER_FIX(1,0.173,0.05,0,净资收益率),COLORYELLOW;
DRAWNUMBER_FIX(1,0.173,0.09,0,主营利润率),COLORGREEN;
DRAWNUMBER_FIX(1,0.173,0.13,0,现金负债比),COLORGREEN;
DRAWNUMBER_FIX(1,0.173,0.17,0,收入同比),COLORYELLOW;
DRAWNUMBER_FIX(1,0.173,0.21,0,利润同比),COLORYELLOW;
{财务指标}
每股收益季:=CONST(FINANCE(33)/(5-FINANCE(37)));
每股收益年:=CONST(FINANCE(33));
每股收益:=CONST(FINANCE(38));
每股净资产:=CONST(FINANCE(34));
每股现金流:=CONST((FINANCE(25)/FINANCE(1)));
每股未分配:=CONST(FINANCE(32));
每股公积金:=CONST(FINANCE(18));
{}
DRAWTEXT_FIX(1,0.207,0.01,0,'财务资料:'),COLORFFCC99;
DRAWTEXT_FIX(1,0.207,0.05,0,'每股收益:'),COLOR99CCFF;
DRAWTEXT_FIX(1,0.207,0.09,0,'每股净资产:'),COLOR99CCFF;
DRAWTEXT_FIX(1,0.207,0.13,0,'每股现金流:'),COLOR99CCFF;
DRAWTEXT_FIX(1,0.207,0.17,0,'每股未分配:'),COLOR99CCFF;
DRAWTEXT_FIX(1,0.207,0.21,0,'每股公积金:'),COLOR99CCFF;
{}
DRAWNUMBER_FIX(1,0.278,0.05,1,每股收益),COLORGREEN;
DRAWNUMBER_FIX(1,0.278,0.09,1,每股净资产),COLORGREEN;
DRAWNUMBER_FIX(1,0.278,0.13,1,每股现金流),COLORGREEN;
DRAWNUMBER_FIX(1,0.278,0.17,1,每股未分配),COLORGREEN;
DRAWNUMBER_FIX(1,0.278,0.21,1,每股公积金),COLORGREEN;
{-----------------------------------------------------------------------------------------------------}
{-----------------------------------------------------------------------------------------------------}









{距形}
DRAWRECTREL(0,0,288,348,RGB(10,10,10));

RGB改为10,距形的背景为黑色



gd40010


【下载地址隐藏】:                    点:回复可见地址
游客,如果您要查看本帖隐藏内容请回复






上一篇:「指标」通达信筹码追踪副图指标 主力动向一目了然
下一篇:「指标」候鸟风控指标(大智慧、通达信均可使用)
回复

举报

QQ|

GMT+8, 2024-11-24 22:13

快速回复 返回顶部 返回列表