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

 找回密码
 立即/注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
上证指数 2862.35 -29.36 -1.02% 香港恒生 27336.762 -369.177 -1.33% 日经225 21087.00 -196.37 -0.92% 韩国综合 2050.86 -14.00 -0.68%
道琼斯 25776.61 -100.72 -0.39% 纳斯达克 7750.84 -34.88 -0.45% 英国富时 7343.97 +15.05 +0.21% 德国DAX 12169.44 +25.97 +0.21%
人民币 6.9145 +0.0081 +0.12% 原油 61.06 -0.59% NYMEX原油 黄金 1273.4 -0.06% 黄金全球股市行情 2019年05月23日09时38分
查看: 30938|回复: 0

[通达信] 通达信分型顶底主图指标公式

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

  1. 重心线:(H+L+O+C*3)/6;
  2. NX:=(3*CLOSE+LOW+OPEN+HIGH)/6;   
  3. 牛线:(20*NX+19*REF(NX,1)+18*REF(NX,2)+17*REF(NX,3)+16*REF(NX,4)   
  4. +15*REF(NX,5)+14*REF(NX,6)+13*REF(NX,7)+12*REF(NX,8)+11*REF(NX,9)   
  5. +10*REF(NX,10)+9*REF(NX,11)+8*REF(NX,12)+7*REF(NX,13)+6*REF(NX,14)   
  6. +5*REF(NX,15)+4*REF(NX,16)+3*REF(NX,17)    +2*REF(NX,18)+REF(NX,20))/210;
  7. 牛熊线:MA(牛线,6),COLORGREEN,LINETHICK2;
  8. 顶:=BBI+3*STD(BBI,13),COLOR004AFF;
  9. 底:=BBI-3*STD(BBI,13),COLOR67FF00;
  10. KU1:=IF(HIGH=HHV(HIGH,3),1,0);
  11. KD1:=IF(LOW=LLV(LOW,3),1,0);
  12. UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0
  13. AND KU1=0,REF(HIGH,2),REF(HIGH,2+BARSLAST(REF(KU1,2)=1
  14. AND REF(KU1,1)=0 AND KU1=0)));
  15. DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0
  16. AND KD1=0,REF(LOW,2),REF(LOW,2+BARSLAST(REF(KD1,2)=1
  17. AND REF(KD1,1)=0 AND KD1=0)));
  18. HV:=H>UL AND H>REF(H,1);
  19. LV:=L3;
  20. HHV1:=HV AND IP AND H>=HHV(H,BARSLAST(LV));
  21. LV1:=LV AND IP AND LREF(LOW,1);
  22. V02:=HIGH>REF(HIGH,1) AND LOWREF(HIGH,1) AND LOW>REF(LOW,1);
  23. V04:=REF(HIGH,2)REF(HIGH,1) AND REF(LOW,2)=3 AND COUNT(V01 OR V02,5)=0 AND LLVBARS(LOW,6)=1 AND HHVBARS(HIGH,6)>=5 AND V03;
  24. V2:=COUNT(V00,7)>=3 AND COUNT(V01 OR V02,6)=1 AND LLVBARS(LOW,7)=2 AND HHVBARS(HIGH,7)>=6 AND V04;
  25. V3:=COUNT(V00,7)>=3 AND COUNT(V01 OR V02,6)=1 AND LLVBARS(LOW,7)=1 AND HHVBARS(HIGH,7)>=6 AND V03;
  26. V4:=COUNT(V00,8)>=3 AND COUNT(V01 OR V02,7)=7 AND V04;
  27. V5:=COUNT(V00,8)>=3 AND COUNT(V01 OR V02,7)=7 AND V03;
  28. V6:=COUNT(V00,9)>=3 AND COUNT(V01 OR V02,8)=8 AND V04;
  29. V7:=COUNT(V00,9)>=3 AND COUNT(V01 OR V02,8)=8 AND V03;
  30. V8:=COUNT(V00,10)>=3 AND COUNT(V01 OR V02,9)=9 AND V04;
  31. V9:=COUNT(V00,10)>=3 AND COUNT(V01 OR V02,9)=9 AND V03;
  32. V10:=COUNT(V00,11)>=3 AND COUNT(V01 OR V02,10)=10 AND V04;
  33. XG:=V1 OR V2 OR V3 OR V4 OR V5 OR V6 OR V7 OR V8 OR V9 OR V10;
  34. HV00:=HIGH>REF(HIGH,1) AND LOW>REF(LOW,1);
  35. HV01:=HIGHREF(LOW,1);
  36. HV02:=HIGH>REF(HIGH,1) AND LOWHIGH AND REF(LOW,2)>LOW AND REF(HIGH,2)>REF(HIGH,1) AND REF(LOW,2)=3 AND COUNT(HV01 OR HV02,5)=0 AND HHVBARS(HIGH,6)=1 AND LLVBARS(LOW,6)>=5 AND HV03;
  37. HV2:=COUNT(HV00,7)>=3 AND COUNT(HV01 OR HV02,6)=1 AND HHVBARS(HIGH,7)=2 AND LLVBARS(LOW,7)>=6 AND HV04;
  38. HV3:=COUNT(HV00,7)>=3 AND COUNT(HV01 OR HV02,6)=1 AND HHVBARS(HIGH,7)=1 AND LLVBARS(LOW,7)>=6 AND HV03;
  39. HV4:=COUNT(HV00,8)>=3 AND COUNT(HV01 OR HV02,7)=7 AND HV04;
  40. HV5:=COUNT(HV00,8)>=3 AND COUNT(HV01 OR HV02,7)=7 AND HV03;
  41. HV6:=COUNT(HV00,9)>=3 AND COUNT(HV01 OR HV02,8)=8 AND HV04;
  42. HV7:=COUNT(HV00,9)>=3 AND COUNT(HV01 OR HV02,8)=8 AND HV03;
  43. HV8:=COUNT(HV00,10)>=3 AND COUNT(HV01 OR HV02,9)=9 AND HV04;
  44. HV9:=COUNT(HV00,10)>=3 AND COUNT(HV01 OR HV02,9)=9 AND HV03;
  45. HV10:=COUNT(HV00,11)>=3 AND COUNT(HV01 OR HV02,10)=10 AND HV04;
  46. HXG:=HV1 OR HV2 OR HV3 OR HV4 OR HV5 OR HV6 OR HV7 OR HV8 OR HV9 OR HV10;
  47. 底分型:FILTER(XG=1,5) AND 重心线REF(CLOSE,1),HIGH,LOW,0,1),COLORRED;
  48. STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR000055;
  49. STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR000077;
  50. STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR000099;
  51. STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLOR0000BB;
  52. STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLOR0000DD;
  53. STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLOR0000FF;
  54. STICKLINE(CLOSE=REF(CLOSE,1),HIGH,LOW,0,1),COLORWHITE;
  55. STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR555555;
  56. STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR777777;
  57. STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR999999;
  58. STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORBBBBBB;
  59. STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORDDDDDD;
  60. STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORFFFFFF;
  61. STICKLINE(CLOSE<REF(CLOSE,1),HIGH,LOW,0,1),COLORCYAN;
  62. STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR990000;
  63. STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLORCC0000;
  64. STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLORFF4400;
  65. STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORFF8800;
  66. STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORFFCC00;
  67. STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORCYAN;
  68. DRAWTEXT(FILTER(XG=1,5) AND 重心线<10.5 AND 牛线<12 AND 牛熊线<10.2,L*0.97,'底分型'),COLORYELLOW;
  69. DRAWTEXT(FILTER(HXG=1,3),H*1.02,'顶分型');
复制代码
回复

使用道具 举报

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

本版积分规则



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

GMT+8, 2019-5-23 09:44

Powered by 今日股市

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

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