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

 找回密码
 立即/注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
上证指数 3090.64 -0.33 -0.01% 香港恒生 29320.969 -145.310 -0.49% 日经225 21598.53 +31.68 +0.15% 韩国综合 2177.10 -0.52 -0.02%
道琼斯 25887.38 -26.72 -0.10% 纳斯达克 7723.95 +9.47 +0.12% 英国富时 7328.11 +4.11 +0.06% 德国DAX 11640.43 -147.98 -1.26%
人民币 6.6940 -0.0177 -0.26% 原油 58.50 -0.8978% NYMEX原油 黄金 1305.7 -0.0612% 黄金全球股市行情 2019年03月20日20时05分
查看: 19807|回复: 0

[通达信] 通达信MACDKDJ叠加指标公式

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

  1. DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
  2. DEA:EMA(DIFF,9);
  3. DRAWBAND(DIFF,RGB(150,30,80),DEA,RGB(0,100,0));
  4. MACD:(DIFF-DEA)*2,COLORCYAN,COLORSTICK;
  5. STICKLINE(MACD>=0,MACD,0,0.5,1),COLORF00FF0;
  6. STICKLINE(MACD0,0,MACD,0.1,0 ),COLOR00AAFF;
  7. STICKLINE(MACD0,0,MACD,0.1,0 ),COLOR00BBFF;
  8. STICKLINE(MACD0,0,MACD,0.1,0 ),COLOR00CCFF;
  9. STICKLINE(MACD0,0,MACD,0.1,0 ),COLOR00DDFF;
  10. STICKLINE(MACD0,0,MACD,0.1,0 ),COLOR00EEFF;
  11. STICKLINE(MACD0,0,MACD,0.1,0 ),COLOR00FFFF;
  12. STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0.0.1,0 ),COLOR0000AA;
  13. STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0.1,0 ),COLOR0011BB;
  14. STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0.1,0 ),COLOR0022CC;
  15. STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0.1,0 ),COLOR0033DD;
  16. STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0.1,0 ),COLOR0044EE;
  17. STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0.0.1,0 ),COLOR0055FF;
  18. STICKLINE(MACD>REF(MACD,1)AND MACDREF(MACD,1)AND MACDREF(MACD,1)AND MACDREF(MACD,1)AND MACDREF(MACD,1)AND MACDREF(MACD,1)AND MACD<0,0,MACD,0.1,0 ),COLORFF55BB;
  19. STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.1,0 ),COLORFFAA00;
  20. STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.1,0 ),COLORFFBB11;
  21. STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.1,0 ),COLORFFCC22;
  22. STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.1,0 ),COLORFFDD33;
  23. STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.1,0 ),COLORFFEE44;
  24. STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.1,0 ),COLORFFFF55;AX1:=MAX(MAX(DIFF,DEA),MACD);
  25. AX2:=MIN(MIN(DIFF,DEA),MACD);
  26. AA1:REFDATE(HHV(AX1,120),DATE)COLORGRAY,DOTLINE;
  27. AA2:REFDATE(LLV(AX2,120),DATE)COLORGRAY,DOTLINE;
  28. AA3:=(0+AA1)+(0-AA2);
  29. AA4:REFDATE((AA1+AA2)/2,DATE)COLORGRAY,DOTLINE;
  30. {http://jue-ce.com}
  31. RSV:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*AA3;
  32. 假K:SMA(RSV,3,1)+AA2,COLORWHITE;
  33. 假D:SMA(SMA(RSV,3,1)+AA2,3,1),COLORYELLOW;
  34. 假J:(3*SMA(RSV,3,1)-2*SMA(SMA(RSV,3,1),3,1))+AA2,COLORMAGENTA;
  35. {http://jue-ce.com}
  36. ZRSV:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;
  37. 真K:SMA(ZRSV,3,1)COLORCYAN,NODRAW;
  38. 真D:SMA(真K,3,1)COLORBROWN,NODRAW;
  39. 真J:3*真K-2*真D,COLORLIRED,NODRAW;
  40. {http://jue-ce.com}
  41. DRAWTEXT_FIX(ISLASTBAR,0.01,0.02,0,'上中下虚线分别是KDJ的100,50,0轴')COLORYELLOW;
复制代码
回复

使用道具 举报

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

本版积分规则



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

GMT+8, 2019-3-20 20:10

Powered by 今日股市

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

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