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

 找回密码
 立即/注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
上证指数 2576.65 -21.32 -0.82% 香港恒生 25814.250 -273.730 -1.05% 日经225 21126.00 -380.88 -1.77% 韩国综合 2061.47 -9.62 -0.46%
道琼斯 23719.70 +126.72 +0.54% 纳斯达克 6800.42 +46.69 +0.69% 英国富时 6713.77 -59.47 -0.88% 德国DAX 10755.90 -16.30 -0.15%
人民币 6.8968 -0.0003 -0.00% 原油 46.19 -7.3978% NYMEX原油 黄金 1253.1 +0.1038% 黄金全球股市行情 2018年12月19日04时47分
查看: 4398|回复: 0

[通达信] 通达信量线量柱擒涨停主图指标公式

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

  1. DING:=MAX(O,C);{实顶}
  2. DI:=MIN(O,C);{实底}
  3. YANG:=(DI>=REF(DING,1)) OR (C>O AND NOT(DINGREF(C,1) AND C=O) OR (C=REF(C,1) AND C=O AND REF(DING,1)=C);{阳线}
  4. YIN:=NOT(YANG);
  5. {YIN:=(C=REF(DING,1))) OR (C>O AND DING=REF(DING,BARSLAST(YIN)) AND (V>REF(V,BARSLAST(YIN)) OR (BETWEEN(V,REF(V,BARSLAST(YIN))*0.95,REF(V,BARSLAST(YIN))*1.05))),NODRAW;
  6. DRAWTEXT(YANGSHENG AND REF(NOT(YANGSHENG),1),L*0.99,'△'),COLORRED;
  7. DRAWTEXT(YANGSHENG AND REF(NOT(YANGSHENG),1) AND VREF(V,BARSLAST(YANG)));
  8. DRAWTEXT(YINSHENG AND REF(NOT(YINSHENG),1),H*1.02,'▽'),COLORGREEN;
  9. LIANGJIABI:V/C,NODRAW;
  10. MALIANGJIABI:MA(LIANGJIABI,3),NODRAW;
  11. LIANGJIABIXISHU:=1.5;
  12. BLZ:=V>REF(V,1)*1.5;
  13. GLZ:=V=HHV(V,3) AND V=REFX(HHV(V,3),2);
  14. TLZ:=(V*1.1REF(V,1)*1.1 AND V*1.1REF(V,1)*1.1 AND REF(V,1)>REF(V,2)*1.1);
  15. JSLS:=CREFX(LIANGJIABI,1) AND REFX(LIANGJIABI,1)>REFX(LIANGJIABI,2);
  16. JZ:=BLZ OR GLZ OR TLZ,NODRAW;
  17. JJZ:=CURRBARSCOUNT>=4 AND YANG AND (YANGSHENG) AND JZ AND REFX(LLV(DI,3),3)>=DI AND (REFX(MA(LIANGJIABI,3),3)=DING,NODRAW;
  18. HJZ1:=JJZ AND REFX(MA(C,3),3)>=DING AND REFX(MA(LIANGJIABI,3),3)=DI AND REFX(JJZ,2) AND REFX(C,2)>DING AND REFX(LIANGJIABI,1)=DI AND REFX(JJZ,3) AND REFX(C,3)>DING AND REFX(MA(LIANGJIABI,2),2)=DING AND REFX(MA(LIANGJIABI,3),3)REF(PZ,1),1,DRAWNULL);
  19. P1DI:=REF(DI,1);
  20. P1L:=REF(L,1);
  21. P2DI:=REF(DI,2);
  22. P2L:=REF(L,2);
  23. P3DI:=REF(DI,3);
  24. P3L:=REF(L,3);
  25. P4DI:=REF(DI,4);
  26. P4L:=REF(L,4);
  27. P5DI:=REF(DI,5);
  28. P5L:=REF(L,5);
  29. P6DI:=REF(DI,6);
  30. P6L:=REF(L,6);
  31. P7DI:=REF(DI,7);
  32. P7L:=REF(L,7);
  33. P8DI:=REF(DI,8);
  34. P8L:=REF(L,8);
  35. P9DI:=REF(DI,9);
  36. P9L:=REF(L,9);
  37. P10DI:=REF(DI,10);
  38. P10L:=REF(L,10);
  39. P11DI:=REF(DI,11);
  40. P11L:=REF(L,11);
  41. P12DI:=REF(DI,12);
  42. P12L:=REF(L,12);
  43. P13DI:=REF(DI,13);
  44. P13L:=REF(L,13);
  45. P14DI:=REF(DI,14);
  46. P14L:=REF(L,14);
  47. P15DI:=REF(DI,15);
  48. P15L:=REF(L,15);
  49. P16DI:=REF(DI,16);
  50. P16L:=REF(L,16);
  51. P17DI:=REF(DI,17);
  52. P17L:=REF(L,17);
  53. P18DI:=REF(DI,18);
  54. P18L:=REF(L,18);
  55. P19DI:=REF(DI,19);
  56. P19L:=REF(L,19);
  57. P20DI:=REF(DI,20);
  58. P20L:=REF(L,20);
  59. JZX1:=ABS(DI-P1DI)<=0.01 OR ABS(DI-P2DI)<=0.01 OR ABS(DI-P3DI)<=0.01 OR ABS(DI-P4DI)<=0.01 OR ABS(DI-P5DI)<=0.01 OR ABS(DI-P6DI)<=0.01 OR ABS(DI-P7DI)<=0.01 OR ABS(DI-P8DI)<=0.01 OR ABS(DI-P9DI)<=0.01 OR ABS(DI-P10DI)<=0.01 OR
  60. ABS(DI-P11DI)<=0.01 OR ABS(DI-P12DI)<=0.01 OR ABS(DI-P13DI)<=0.01 OR ABS(DI-P14DI)<=0.01 OR ABS(DI-P15DI)<=0.01 OR ABS(DI-P16DI)<=0.01 OR ABS(DI-P17DI)<=0.01 OR ABS(DI-P18DI)<=0.01 OR ABS(DI-P19DI)<=0.01 OR ABS(DI-P20DI)<=0.01;
  61. JZX2:=ABS(DI-P1L)<=0.01 OR ABS(DI-P2L)<=0.01 OR ABS(DI-P3L)<=0.01 OR ABS(DI-P4L)<=0.01 OR ABS(DI-P5L)<=0.01 OR ABS(DI-P6L)<=0.01 OR ABS(DI-P7L)<=0.01 OR ABS(DI-P8L)<=0.01 OR ABS(DI-P9L)<=0.01 OR ABS(DI-P10L)<=0.01 OR
  62. ABS(DI-P11L)<=0.01 OR ABS(DI-P12L)<=0.01 OR ABS(DI-P13L)<=0.01 OR ABS(DI-P14L)<=0.01 OR ABS(DI-P15L)<=0.01 OR ABS(DI-P16L)<=0.01 OR ABS(DI-P17L)<=0.01 OR ABS(DI-P18L)<=0.01 OR ABS(DI-P19L)<=0.01 OR ABS(DI-P20L)<=0.01;
  63. JZX3:=ABS(L-P1DI)<=0.01 OR ABS(L-P2DI)<=0.01 OR ABS(L-P3DI)<=0.01 OR ABS(L-P4DI)<=0.01 OR ABS(L-P5DI)<=0.01 OR ABS(L-P6DI)<=0.01 OR ABS(L-P7DI)<=0.01 OR ABS(L-P8DI)<=0.01 OR ABS(L-P9DI)<=0.01 OR ABS(L-P10DI)<=0.01 OR
  64. ABS(L-P11DI)<=0.01 OR ABS(L-P12DI)<=0.01 OR ABS(L-P13DI)<=0.01 OR ABS(L-P14DI)<=0.01 OR ABS(L-P15DI)<=0.01 OR ABS(L-P16DI)<=0.01 OR ABS(L-P17DI)<=0.01 OR ABS(L-P18DI)<=0.01 OR ABS(L-P19DI)<=0.01 OR ABS(L-P20DI)<=0.01;
  65. JZX4:=ABS(L-P1L)<=0.01 OR ABS(L-P2L)<=0.01 OR ABS(L-P3L)<=0.01 OR ABS(L-P4L)<=0.01 OR ABS(L-P5L)<=0.01 OR ABS(L-P6L)<=0.01 OR ABS(L-P7L)<=0.01 OR ABS(L-P8L)<=0.01 OR ABS(L-P9L)<=0.01 OR ABS(L-P10L)<=0.01 OR
  66. ABS(L-P11L)<=0.01 OR ABS(L-P12L)<=0.01 OR ABS(L-P13L)<=0.01 OR ABS(L-P14L)<=0.01 OR ABS(L-P15L)<=0.01 OR ABS(L-P16L)<=0.01 OR ABS(L-P17L)<=0.01 OR ABS(L-P18L)<=0.01 OR ABS(L-P19L)<=0.01 OR ABS(L-P20L)<=0.01;
  67. DRAWTEXT(JZX1 OR JZX2,DI,'+'),COLORWHITE;
  68. DRAWTEXT(JZX3 OR JZX4,L,'+'),COLORWHITE;
  69. P1DING:=REF(DING,1);
  70. P1H:=REF(H,1);
  71. P2DING:=REF(DING,2);
  72. P2H:=REF(H,2);
  73. P3DING:=REF(DING,3);
  74. P3H:=REF(H,3);
  75. P4DING:=REF(DING,4);
  76. P4H:=REF(H,4);
  77. P5DING:=REF(DING,5);
  78. P5H:=REF(H,5);
  79. P6DING:=REF(DING,6);
  80. P6H:=REF(H,6);
  81. P7DING:=REF(DING,7);
  82. P7H:=REF(H,7);
  83. P8DING:=REF(DING,8);
  84. P8H:=REF(H,8);
  85. P9DING:=REF(DING,9);
  86. P9H:=REF(H,9);
  87. P10DING:=REF(DING,10);
  88. P10H:=REF(H,10);
  89. P11DING:=REF(DING,11);
  90. P11H:=REF(H,11);
  91. P12DING:=REF(DING,12);
  92. P12H:=REF(H,12);
  93. P13DING:=REF(DING,13);
  94. P13H:=REF(H,13);
  95. P14DING:=REF(DING,14);
  96. P14H:=REF(H,14);
  97. P15DING:=REF(DING,15);
  98. P15H:=REF(H,15);
  99. P16DING:=REF(DING,16);
  100. P16H:=REF(H,16);
  101. P17DING:=REF(DING,17);
  102. P17H:=REF(H,17);
  103. P18DING:=REF(DING,18);
  104. P18H:=REF(H,18);
  105. P19DING:=REF(DING,19);
  106. P19H:=REF(H,19);
  107. P20DING:=REF(DING,20);
  108. P20H:=REF(H,20);
  109. JZX5:=ABS(DI-P1DING)<=0.01 OR ABS(DI-P2DING)<=0.01 OR ABS(DI-P3DING)<=0.01 OR ABS(DI-P4DING)<=0.01 OR ABS(DI-P5DING)<=0.01 OR ABS(DI-P6DING)<=0.01 OR ABS(DI-P7DING)<=0.01 OR ABS(DI-P8DING)<=0.01 OR ABS(DI-P9DING)<=0.01 OR ABS(DI-P10DING)<=0.01 OR
  110. ABS(DI-P11DING)<=0.01 OR ABS(DI-P12DING)<=0.01 OR ABS(DI-P13DING)<=0.01 OR ABS(DI-P14DING)<=0.01 OR ABS(DI-P15DING)<=0.01 OR ABS(DI-P16DING)<=0.01 OR ABS(DI-P17DING)<=0.01 OR ABS(DI-P18DING)<=0.01 OR ABS(DI-P19DING)<=0.01 OR ABS(DI-P20DING)<=0.01;
  111. JZX6:=ABS(DI-P1H)<=0.01 OR ABS(DI-P2H)<=0.01 OR ABS(DI-P3H)<=0.01 OR ABS(DI-P4H)<=0.01 OR ABS(DI-P5H)<=0.01 OR ABS(DI-P6H)<=0.01 OR ABS(DI-P7H)<=0.01 OR ABS(DI-P8H)<=0.01 OR ABS(DI-P9H)<=0.01 OR ABS(DI-P10H)<=0.01 OR
  112. ABS(DI-P11H)<=0.01 OR ABS(DI-P12H)<=0.01 OR ABS(DI-P13H)<=0.01 OR ABS(DI-P14H)<=0.01 OR ABS(DI-P15H)<=0.01 OR ABS(DI-P16H)<=0.01 OR ABS(DI-P17H)<=0.01 OR ABS(DI-P18H)<=0.01 OR ABS(DI-P19H)<=0.01 OR ABS(DI-P20H)<=0.01;
  113. JZX7:=ABS(L-P1DING)<=0.01 OR ABS(L-P2DING)<=0.01 OR ABS(L-P3DING)<=0.01 OR ABS(L-P4DING)<=0.01 OR ABS(L-P5DING)<=0.01 OR ABS(L-P6DING)<=0.01 OR ABS(L-P7DING)<=0.01 OR ABS(L-P8DING)<=0.01 OR ABS(L-P9DING)<=0.01 OR ABS(L-P10DING)<=0.01 OR
  114. ABS(L-P11DING)<=0.01 OR ABS(L-P12DING)<=0.01 OR ABS(L-P13DING)<=0.01 OR ABS(L-P14DING)<=0.01 OR ABS(L-P15DING)<=0.01 OR ABS(L-P16DING)<=0.01 OR ABS(L-P17DING)<=0.01 OR ABS(L-P18DING)<=0.01 OR ABS(L-P19DING)<=0.01 OR ABS(L-P20DING)<=0.01;
  115. JZX8:=ABS(L-P1H)<=0.01 OR ABS(L-P2H)<=0.01 OR ABS(L-P3H)<=0.01 OR ABS(L-P4H)<=0.01 OR ABS(L-P5H)<=0.01 OR ABS(L-P6H)<=0.01 OR ABS(L-P7H)<=0.01 OR ABS(L-P8H)<=0.01 OR ABS(L-P9H)<=0.01 OR ABS(L-P10H)<=0.01 OR
  116. ABS(L-P11H)<=0.01 OR ABS(L-P12H)<=0.01 OR ABS(L-P13H)<=0.01 OR ABS(L-P14H)<=0.01 OR ABS(L-P15H)<=0.01 OR ABS(L-P16H)<=0.01 OR ABS(L-P17H)<=0.01 OR ABS(L-P18H)<=0.01 OR ABS(L-P19H)<=0.01 OR ABS(L-P20H)<=0.01;
  117. DRAWTEXT(JZX5 OR JZX6,DI,' +'),COLORYELLOW;
  118. DRAWTEXT(JZX7 OR JZX8,L,' +'),COLORYELLOW;
复制代码
回复

使用道具 举报

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

本版积分规则



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

GMT+8, 2018-12-19 04:51

Powered by 今日股市

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

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