通达信财务风险提示主图指标 源码分享

{股票信息源码}
{左下角公式}
DRAWTEXT_FIX(1,0,0.25,0,'所属板块:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.06,0.25,0,HYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0.12,0.25,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0.18,0.25,0,GNBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0,0.3,0,'风格:'),COLORGREEN;
DRAWTEXT_FIX(1,0.04,0.3,0,FGBLOCK),COLORGREEN;
总股本:=STRCAT(STRCAT('总股本: ',CON2STR(TOTALCAPITAL/1000000,3)),'亿股');
流通盘:=STRCAT(STRCAT('流通盘: ',CON2STR(CAPITAL/1000000,3)),'亿股');
总市值:=STRCAT(STRCAT('总市值: ',CON2STR(FINANCE(1)*C/100000000,3)),'亿元');
市值:=STRCAT(STRCAT('流通值: ',CON2STR((CAPITAL/1000000)*C,3)),'亿元');   
DRAWTEXT_FIX(ISLASTBAR,0.001,0.9,0,总市值),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.001,0.95,0,市值),COLORYELLOW;

{财务风险提示1}
X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;
X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积用资本公积金代替};
X3:=FINANCE(23)/FINANCE(10)*3.3;
X4:=FINANCE(19)/FINANCE(15)*0.6;{缺长期负债或负债总额}
X5:=FINANCE(20)/FINANCE(15)*0.999;
Z值:=X1+X2+X3+X4+X5;
预警:=IF(Z值<1.2,'重警',IF(Z值>=1.2 AND Z值<2.6,'轻警','无警'));
财务预警:=STRCAT('财务预警: ',STRCAT(预警,STRCAT('-Z值: ',CON2STR(Z值,3))));
优质资产率:=STRCAT('优质资产率: ',CON2STR((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19)*100,2));{理论上越大越好但不同行业有不同标准};
现金负债比:=STRCAT('现金负债比: ',CON2STR(FINANCE(25)/FINANCE(15)*100,3));{缺长期负债或负债总额,理论上越大越好但不同行业有不同标准};
财务系数:=STRCAT('(风险系数)',STRCAT(STRCAT(财务预警,优质资产率),现金负债比));
DRAWTEXT_FIX(ISLASTBAR,0.001,0.35,0,财务系数),COLORYELLOW;
 



未来函数检测结果如下:
该公式包含未来函数:CAPITAL
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图