决策主力股票论坛|今日股市行情大盘分析查询

 找回密码
 立即/注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
上证指数 2679.11 +10.94 +0.41% 香港恒生 26183.529 +80.189 +0.31% 日经225 21684.59 -119.03 -0.55% 韩国综合 2092.40 +4.34 +0.21%
道琼斯 25413.22 +123.95 +0.49% 纳斯达克 7247.87 -11.16 -0.15% 英国富时 7029.29 -8.72 -0.12% 德国DAX 11354.68 +1.01 +0.01%
人民币 6.9380 -0.0012 -0.02% 原油 56.83 +0.6553% NYMEX原油 黄金 1222.0 +0.5761% COMEX黄金全球股市行情 2018年11月17日23时47分
查看: 31849|回复: 0

[通达信] 通达信倍量基本面左主图指标公式

[复制链接]
发表于 2018-9-14 14:03:03 | 显示全部楼层 |阅读模式

  1. M1:=5;
  2. M2:=10;
  3. M3:=20;
  4. M4:=60;
  5. MA1:MA(CLOSE,M1);
  6. MA2:MA(CLOSE,M2);
  7. MA3:MA(CLOSE,M3);
  8. MA4:MA(CLOSE,M4);
  9. 五日换手:SUM(HSL,5),NODRAW;
  10. 十日换手:SUM(HSL,10),NODRAW;
  11. 二十日换手:SUM(HSL,20),NODRAW;
  12. 三十日换手:SUM(HSL,30),NODRAW;
  13. STICKLINE(V>=REF(V,1)*2,O,C,3,0)COLORYELLOW;
  14. STICKLINE(V>=REF(V,1)*2,H,L,0,0)COLORYELLOW;
  15. STICKLINE(C/REF(C,1)>=1.098,O,C,3,0)COLORRED;
  16. STICKLINE(C/REF(C,1)>=1.098,H,L,0,0)COLORRED;
  17. STICKLINE(C/REF(C,1)<=0.901,O,C,3,0)COLORBLUE;
  18. STICKLINE(C/REF(C,1)<=0.901,H,L,0,0)COLORBLUE;
  19. {距形}
  20. {DRAWRECTREL(0,0,378,348,RGB(36,36,36))NOFRAME;}
  21. {基本资料}
  22. 品种类型:=FINANCE(3);
  23. 所属板块:=HYBLOCK;
  24. 上市天数:=FINANCE(42);
  25. 股总市值:=ROUND(FINANCE(41)/100000000);
  26. 流通市值:=ROUND(FINANCE(40)/100000000);
  27. 股东人数:=FINANCE(8);
  28. 人均持股:=ROUND(FINANCE(7)/FINANCE(8));
  29. DRAWTEXT_FIX(1,0.008,0.01,0,'基本资料:'),COLORLIBLUE;
  30. DRAWTEXT_FIX(1,0.008,0.05,0,'上市天数:'),COLORLIGREEN;
  31. DRAWTEXT_FIX(1,0.008,0.09,0,'股东人数:'),COLORLIGREEN;
  32. DRAWTEXT_FIX(1,0.008,0.13,0,'人均持股:'),COLORLIGREEN;
  33. DRAWTEXT_FIX(1,0.008,0.17,0,'品种类型:'),COLORLIGREEN;
  34. DRAWTEXT_FIX(1,0.008,0.25,0,'行业板块:'),COLORLIGREEN;
  35. DRAWTEXT_FIX(品种类型=1,0.066,0.17,0,'沪 深 A 股'),COLORYELLOW;
  36. DRAWTEXT_FIX(品种类型=2,0.066,0.17,0,' 中 小 板'),COLORYELLOW;
  37. DRAWTEXT_FIX(品种类型=3,0.066,0.17,0,' 创 业 板'),COLORYELLOW;
  38. DRAWTEXT_FIX(1,0.068,0.25,0,HYBLOCK),COLORYELLOW;{行业板块}
  39. DRAWTEXT_FIX(1,0.068,0.05,0,CON2STR(上市天数,0)),COLORWHITE;{数值}
  40. DRAWTEXT_FIX(1,0.068,0.09,0,CON2STR(股东人数,0)),COLORWHITE;
  41. DRAWTEXT_FIX(1,0.068,0.13,0,CON2STR(人均持股,0)),COLORWHITE;
  42. DRAWTEXT_FIX(1,0.110,0.05,0,'天'),COLORWHITE;{单位}
  43. DRAWTEXT_FIX(1,0.110,0.09,0,'人'),COLORWHITE;
  44. DRAWTEXT_FIX(1,0.110,0.13,0,'股'),COLORWHITE;
  45. DRAWTEXT_FIX(1,0.008,0.21,0,'地区板块:')COLORLIGREEN;{所属板块}
  46. DRAWTEXT_FIX(1,0.068,0.21,0,DYBLOCK)COLORCYAN;
  47. DRAWTEXT_FIX(1,0.136,0.25,0,'概念板块:')COLORLIGREEN;
  48. DRAWTEXT_FIX(1,0.196,0.25,0,GNBLOCK)COLORCYAN;
  49. DRAWTEXT_FIX(1,0.008,0.29,0,'风格板块:')COLORLIGREEN;
  50. DRAWTEXT_FIX(1,0.068,0.29,0,FGBLOCK)COLORCYAN;
  51. {财务(1)}
  52. 净资收益率:=(FINANCE(33)/FINANCE(34)*100);
  53. 主营利润率:=(FINANCE(23)/FINANCE(20)*100);
  54. 现金负债比:=(FINANCE(25)/FINANCE(15));
  55. 主营收入同比:=FINANCE(44);{主营收入同比增长率}
  56. 净利润同比:=FINANCE(43);{净利润同比增长率}
  57. DRAWTEXT_FIX(1,0.133,0.01,0,'财务资料(1):'),COLORLIBLUE;
  58. DRAWTEXT_FIX(1,0.133,0.05,0,'净资产收益率:'),COLORLIGREEN;
  59. DRAWTEXT_FIX(1,0.133,0.09,0,'主营业务利润率:'),COLORLIGREEN;
  60. DRAWTEXT_FIX(1,0.133,0.13,0,'现金流动负债比:'),COLORLIGREEN;
  61. DRAWTEXT_FIX(1,0.133,0.17,0,'主营收入同比:'),COLORLIGREEN;
  62. DRAWTEXT_FIX(1,0.133,0.21,0,'净利润同比:'),COLORLIGREEN;
  63. DRAWTEXT_FIX(1,0.226,0.05,0,STRCAT(VAR2STR(净资收益率,2),' %')),COLORCYAN;
  64. DRAWTEXT_FIX(1,0.226,0.09,0,STRCAT(VAR2STR(主营利润率,2),' %')),COLORCYAN;
  65. DRAWTEXT_FIX(1,0.226,0.13,0,CON2STR(现金负债比,2)),COLORCYAN;
  66. DRAWTEXT_FIX(1,0.226,0.17,0,STRCAT(VAR2STR(主营收入同比,0),' %')),COLORCYAN;
  67. DRAWTEXT_FIX(1,0.226,0.21,0,STRCAT(VAR2STR(净利润同比,0),' %')),COLORCYAN;
  68. {财务(2)}
  69. 每股收益:=CONST(FINANCE(38));{近期}{每股税后利润}
  70. 每股收益年:=CONST(FINANCE(33));
  71. 每股净资产:=CONST(FINANCE(34));
  72. 每股现金流:=CONST((FINANCE(25)/FINANCE(1)));
  73. 每股未分配:=CONST(FINANCE(32));
  74. 每股公积金:=CONST(FINANCE(18));
  75. DRAWTEXT_FIX(1,0.285,0.01,0,'财务资料(2):'),COLORLIBLUE;
  76. DRAWTEXT_FIX(1,0.285,0.05,0,'每股收益(近):'),COLORLIGREEN;
  77. DRAWTEXT_FIX(1,0.285,0.09,0,'每股收益年:'),COLORLIGREEN;
  78. DRAWTEXT_FIX(1,0.285,0.13,0,'每股净资产:'),COLORLIGREEN;
  79. DRAWTEXT_FIX(1,0.285,0.17,0,'每股未分配:'),COLORLIGREEN;
  80. DRAWTEXT_FIX(1,0.285,0.21,0,'每股公积金:'),COLORLIGREEN;
  81. DRAWTEXT_FIX(1,0.386,0.05,1,CON2STR(每股收益,2)),COLORCYAN;
  82. DRAWTEXT_FIX(1,0.386,0.09,1,CON2STR(每股收益年,2)),COLORCYAN;
  83. DRAWTEXT_FIX(1,0.386,0.13,1,CON2STR(每股净资产,2)),COLORCYAN;
  84. DRAWTEXT_FIX(1,0.386,0.17,1,CON2STR(每股未分配,2)),COLORCYAN;
  85. DRAWTEXT_FIX(1,0.386,0.21,1,CON2STR(每股公积金,2)),COLORCYAN;
  86. {财务(3)}
  87. 市盈率:=DYNAINFO(39);
  88. 市销率:=CONST(FINANCE(1)*DYNAINFO(7)/FINANCE(20));
  89. 市净率:=CONST(DYNAINFO(7) / FINANCE(34));
  90. 毛利率:=((FINANCE(20)-FINANCE(21))/FINANCE(20)*100);
  91. 净利润率:=CONST(FINANCE(30)/FINANCE(20));
  92. DRAWTEXT_FIX(1,0.406,0.01,0,'财务资料(3):'),COLORLIBLUE;
  93. DRAWTEXT_FIX(1,0.406,0.05,0,'市盈率:'),COLORLIGREEN;
  94. DRAWTEXT_FIX(1,0.406,0.09,0,'市销率:'),COLORLIGREEN;
  95. DRAWTEXT_FIX(1,0.406,0.13,0,'市净率:'),COLORLIGREEN;
  96. DRAWTEXT_FIX(1,0.406,0.17,0,'毛利率:'),COLORLIGREEN;
  97. DRAWTEXT_FIX(1,0.406,0.21,0,'净利润率:'),COLORLIGREEN;
  98. DRAWTEXT_FIX(1,0.489,0.05,1,CON2STR(市盈率,2)),COLORCYAN;
  99. DRAWTEXT_FIX(1,0.489,0.09,1,CON2STR(市销率,2)),COLORCYAN;
  100. DRAWTEXT_FIX(1,0.489,0.13,1,CON2STR(市净率,2)),COLORCYAN;
  101. DRAWTEXT_FIX(1,0.489,0.17,1,CON2STR(毛利率,2)),COLORCYAN;
  102. DRAWTEXT_FIX(1,0.489,0.21,1,CON2STR(净利润率,2)),COLORCYAN;
  103. {{财务(4)}
  104. 经营现金流量:=FINANCE(25)/10000;
  105. 资产负债率:=FINANCE(9);
  106. 应收帐款:=FINANCE(22)/10000;
  107. DRAWTEXT_FIX(1,0.518,0.01,0,'财务资料(4):'),COLORLIBLUE;
  108. DRAWTEXT_FIX(1,0.518,0.05,0,'资产负债率:'),COLORLIGREEN;
  109. DRAWTEXT_FIX(1,0.636,0.05,1,STRCAT(CON2STR(资产负债率,2),' %')),COLORCYAN;
  110. DRAWTEXT_FIX(1,0.518,0.09,0,STRCAT('经营现金流量:',STRCAT(VAR2STR(经营现金流量,0),' 万元'))),COLORWHITE;
  111. DRAWTEXT_FIX(1,0.518,0.13,0,STRCAT('应收帐款:',STRCAT(VAR2STR(应收帐款,0),' 万元'))),COLORWHITE;
  112. 市值:=STRCAT(STRCAT(' 流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'亿元');
  113. DRAWTEXT_FIX(1,0.598,0.01,0,市值),COLOR0080FF;
  114. AAA5:=STRCAT('成交金额:',CON2STR(DYNAINFO(10)/100000000,2));
  115. AAA6:=STRCAT('成交金额:',CON2STR(DYNAINFO(7)/100000000,2)),'亿元';
  116. DRAWTEXT_FIX(1,0.728,0.01,0,AAA5),COLORYELLOW;
  117. DRAWTEXT_FIX(1,0.818,0.01,0,AAA6),COLORYELLOW;
  118. AAA7:=STRCAT('换手率:',CON2STR(DYNAINFO(37)*100,2));
  119. AAA8:=STRCAT('成交金额:',CON2STR(DYNAINFO(7)/100000000,2)),'(%)';
  120. DRAWTEXT_FIX(1,0.868,0.01,0,AAA7),COLORYELLOW;
  121. DRAWTEXT_FIX(1,0.928,0.01,0,AAA8),COLORYELLOW;
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即/注册

本版积分规则



手机版|今日股市行情|决策主力股票论坛 ( 鄂ICP备15023833号-1)点击这里给我发消息 鄂公网安备 42062502000040号

GMT+8, 2018-11-17 23:48

Powered by 今日股市

© 2001-2017 http://jue-ce.com/

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