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

 找回密码
 立即/注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
上证指数 3090.98 -5.44 -0.18% 香港恒生 29466.279 +57.267 +0.19% 日经225 21551.14 -33.36 -0.15% 韩国综合 2177.62 -1.87 -0.09%
道琼斯 25887.38 -26.72 -0.10% 纳斯达克 7723.95 +9.47 +0.12% 英国富时 7330.54 +31.35 +0.43% 德国DAX 11790.71 +133.65 +1.15%
人民币 6.7117 -0.0014 -0.02% 原油 59.08 -0.0169% NYMEX原油 黄金 1305.5 -0.0765% 黄金全球股市行情 2019年03月20日06时01分
查看: 12953|回复: 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备15023833号-1)点击这里给我发消息 鄂公网安备 42062502000040号 测试

GMT+8, 2019-3-20 06:04

Powered by 今日股市

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

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