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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 毛利率、营业增长、换手率指标公式


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2020-2-24 07:55:00
毛利率、营业增长、换手率指标公式
DRAWTEXT_FIX(ISLASTBAR,0.01,0,0,STRCAT(STRCAT('营业收入增长率:',CON2STR(FINVALUE(183),2)),'%')),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.4,0,STRCAT(STRCAT('净利润增长率:',CON2STR(FINVALUE(184),2)),'%')),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.415,0.0,1.0,STRCAT(STRCAT('一日换手率累计: ', CON2STR(SUM(DYNAINFO(37)*100,1),2)),'%')),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.42,0.4,1.0,STRCAT(STRCAT('五日换手率累计: ', CON2STR(SUM(DYNAINFO(37)*100,5),2)),'%')),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.56,0.0,1.0,STRCAT(STRCAT('十日换手率累计: ', CON2STR(SUM(DYNAINFO(37)*100,10),2)),'%')),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.577,0.4,1.0,STRCAT(STRCAT('二十日换手率累计: ', CON2STR(SUM(DYNAINFO(37)*100,20),2)),'%')),COLORYELLOW;
毛利率:=STRCAT(STRCAT('销售毛利率: ',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2)),'%');
每股收益:=STRCAT(STRCAT('每股收益: ',CON2STR(FINANCE(38),2)),'元');
DRAWTEXT_FIX(ISLASTBAR,0.17,0.0,0,毛利率),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.17,0.4,0,每股收益),COLORYELLOW;
上涨家数:=STRCAT('沪深总上涨家数:',CON2STR(DYNAINFO(60),0));
下跌家数:=STRCAT('沪深总下跌家数:',CON2STR(DYNAINFO(61),0));
DRAWTEXT_FIX(ISLASTBAR,0.62,0,0,上涨家数),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.62,0.4,0,下跌家数),COLORYELLOW;




回复

举报

QQ|

GMT+8, 2024-11-17 05:07

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