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

 找回密码
 立即/注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
上证指数 2654.88 +24.36 +0.93% 香港恒生 25792.871 +159.689 +0.62% 日经225 21818.59 -451.29 -2.03% 韩国综合 2069.88 -10.56 -0.51%
道琼斯 25216.15 -171.03 -0.67% 纳斯达克 7208.33 +7.46 +0.10% 英国富时 7030.90 -22.18 -0.31% 德国DAX 11367.87 +42.43 +0.37%
人民币 6.9560 -0.0075 -0.11% 原油 57.28 -4.4218% NYMEX原油 黄金 1200.3 -0.2659% COMEX黄金全球股市行情 2018年11月13日23时30分
查看: 5582|回复: 0

[通达信] 通达信KDJ能量柱指标公式

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

  1. DRAWGBK(OPEN>0,RGB(185,135,0),RGB(85,55,0),0,'02',0);
  2. NOTEXT顶:95,DOTLINE,COLORLIGRAY;
  3. NOTEXT底:0,DOTLINE,COLORLIGRAY;
  4. NOTEXT分界线:50,DOTLINE,COLORLIGRAY;
  5. A1:=(CLOSE+HIGH+LOW+OPEN)/4;
  6. MA1:=EMA(A1,5);
  7. RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
  8. K1:=SMA(RSV1,3,1);
  9. D1:=SMA(K1,3,1);
  10. J1:=3*K1-2*D1;
  11. RSV2:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
  12. K2:=SMA(RSV2,3,1);
  13. D2:=SMA(K2,3,1);
  14. J2:=3*K2-2*D2;
  15. RSV3:=(CLOSE-LLV(LOW,31))/(HHV(HIGH,31)-LLV(LOW,31))*100;
  16. K3:=SMA(RSV3,3,1);
  17. D3:=SMA(K3,3,1);
  18. J3:=3*K3-2*D3;
  19. RSV4:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
  20. K4:=SMA(RSV4,3,1);
  21. D4:=SMA(K4,3,1);
  22. J4:=3*K4-2*D4;
  23. K:EMA((K1+K2+K3+K4)/4,3),COLORWHITE,NODRAW;
  24. D:EMA((D1+D2+D3+D4)/4,3),COLORYELLOW,NODRAW;
  25. J:EMA(J1,3)COLORMAGENTA,NODRAW;
  26. 过滤:= K>REF(K,1) AND K3>=REF(K3,1);
  27. STICKLINE(过滤,0,K,3,0),COLOR993333;
  28. STICKLINE(过滤,0,K,2.7.5,0),COLOR995533;
  29. STICKLINE(过滤,0,K,2.4,0),COLOR996633;
  30. STICKLINE(过滤,0,K,2.1,0),COLOR998833;
  31. STICKLINE(过滤,0,K,1.8,0),COLOR999966;
  32. STICKLINE(过滤,0,K,1.5,0),COLOR999933;
  33. STICKLINE(过滤,0,K,1.2,0),COLOR999966;
  34. STICKLINE(过滤,0,K,0.9,0),COLOR999988;
  35. STICKLINE(过滤,0,K,0.6,0),COLORLIGRAY;
  36. STICKLINE(过滤,0,K,0.3,0),COLORCCCCCC;
  37. RSV6:=(INDEXC-LLV(INDEXL,7))/(HHV(INDEXH,7)-LLV(INDEXL,7))*100;
  38. KI:=SMA(RSV6,3,1);
  39. DI:=SMA(KI,3,1);
  40. JI:=3*KI-2*DI;
  41. WIN:=WINNER(CLOSE*0.9)*100;
  42. VAR1:=EMA(EMA(CLOSE,9),9);
  43. 控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
  44. 开始控盘:=过滤 AND (控盘>0 OR WIN>1) AND K>REF(K,1) AND K3>REF(K3,1);
  45. STICKLINE(开始控盘,0,K,3,0),COLOR0000FF;
  46. STICKLINE(开始控盘,0,K,2.7,0),COLOR001BFF;
  47. STICKLINE(开始控盘,0,K,2.4,0),COLOR0025FF;
  48. STICKLINE(开始控盘,0,K,2.1,0),COLOR0039FF;
  49. STICKLINE(开始控盘,0,K,1.8,0),COLOR0052FF;
  50. STICKLINE(开始控盘,0,K,1.5,0),COLOR006AFF;
  51. STICKLINE(开始控盘,0,K,1.2,0),COLOR0089FF;
  52. STICKLINE(开始控盘,0,K,0.9,0),COLOR009CFF;
  53. STICKLINE(开始控盘,0,K,0.6,0),COLOR00C0FF;
  54. STICKLINE(开始控盘,0,K,0.3,0),COLOR00CAFF;
  55. 趋势:=MA1>=REF(MA1,1) AND K2>REF(K2,1) AND K3>REF(K3,1) AND K4>REF(K4,1) AND K>REF(K,1) AND WIN>1;
  56. STICKLINE(开始控盘 AND 趋势,0,K,0.6,0),COLOR99A9FF;
  57. STICKLINE(开始控盘 AND 趋势,0,K,0.3,0),COLOR9999FF;
  58. 指数趋势:EMA(JI,3),COLORFF9966,LINETHICK1,NODRAW;
  59. 筹码:WIN,COLOR009CFF,NODRAW;
  60. NOTEXTK:K,COLORWHITE,LINETHICK1;
  61. NOTEXTD:D,COLORYELLOW,LINETHICK1;
  62. NOTEXTJ:J,COLORMAGENTA,LINETHICK1;
  63. X1:=BARSLAST(REF(CROSS(K,D),1));
  64. 底背离:=REF(CLOSE,X1+1)>CLOSE AND K>REF(K,A1+1) AND CROSS(K,D);
  65. DRAWICON(底背离,67,1);
  66. DRAWTEXT(底背离,60,' 底背离'),COLORRED;
  67. X2:=BARSLAST(REF(CROSS(D,K),1));
  68. 顶背离:=REF(CLOSE,X2+1)K AND CROSS(D,K);
  69. DRAWICON(顶背离,92,2);
  70. DRAWTEXT(顶背离,85,' 顶背离'),COLORGREEN;
  71. 底部:=CROSS(K3,D3) AND K325));
  72. 再次探底:=CROSS(K3,D3) AND K3<25 AND COUNT(JCCOUNT=2,15)=1;
  73. DRAWTEXT(再次探底,45,'再次探底'),COLORYELLOW;
复制代码
回复

使用道具 举报

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

本版积分规则



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

GMT+8, 2018-11-13 23:35

Powered by 今日股市

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

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