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

 找回密码
 立即/注册

扫一扫,访问微社区

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%
道琼斯 25296.73 -90.45 -0.36% 纳斯达克 7242.48 +41.61 +0.58% 英国富时 7028.50 -24.58 -0.35% 德国DAX 11363.85 +38.41 +0.34%
人民币 6.9560 -0.0075 -0.11% 原油 57.31 -4.3718% NYMEX原油 黄金 1202.6 -0.0748% COMEX黄金全球股市行情 2018年11月13日23时49分
查看: 4360|回复: 0

[通达信] 通达信特色MACD指标公式

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

  1. 0,LINETHICK2;
  2. DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26),COLORFFFFFF,LINETHICK2;
  3. DEA1:=EMA(DIFF1,9),COLORYELLOW,LINETHICK2;
  4. MACD1:=2*(DIFF1-DEA1);
  5. MACD2:=EMA(MACD1,5);
  6. STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,3,0),COLOR000055;
  7. STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2.5,0),COLOR000077;
  8. STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1.5,0),COLOR000099;
  9. STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1,0),COLOR0000FF;
  10. STICKLINE(MACD1>MACD2 AND MACD1MACD2 AND MACD1MACD2 AND MACD1MACD2 AND MACD1=0));
  11. 二次金叉:=CROSS(DIFF1,DEA1) AND DEA1CLOSE AND DIFF1>REF(DIFF1,A1+1) AND CROSS(DIFF1,DEA1);
  12. STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;
  13. DRAWLINE(A1=0,DEA1,底背离,DEA1,0),COLORRED,LINETHICK1;
  14. DRAWTEXT(底背离,0.03,' 底背离'),COLORFF00FF;
  15. A2:=BARSLAST(REF(CROSS(DEA1,DIFF1),1));
  16. 顶背离:=REF(CLOSE,A2+1)DIFF1 AND CROSS(DEA1,DIFF1);
  17. DRAWLINE(A2=0,DEA1,顶背离,DEA1,0),COLORFF8800,LINETHICK1;
  18. DRAWTEXT(顶背离,-0.02,' 顶背离'),COLORFFFF00;
  19. DIFF:DIFF1,COLOR009922,LINETHICK2;
  20. DEA:DEA1,COLORYELLOW,LINETHICK2;
  21. ZT:=CROSS(DEA,DIFF);
  22. LS0:=BARSLAST(ZT);
  23. S1:=IF(1,LS0=1,ZT) AND IF(1,DIFF0,DIFF*0.8,'1'),COLOR00FF00;
  24. DRAWTEXT(S1 AND DIFF0,DIFF*0.8,'3'),COLOR00FF00;
  25. DRAWTEXT(S3 AND DIFF0,DIFF*0.8,'5'),COLOR00FF00;
  26. DRAWTEXT(S5 AND DIFF0,DIFF*0.8,'8'),COLOR00FF00;
  27. DRAWTEXT(S8 AND DIFF0,DIFF*0.8,'13'),COLOR00FF00;
  28. DRAWTEXT(S13 AND DIFF0,DIFF*0.8,'21'),COLOR00FF00;
  29. DRAWTEXT(S21 AND DIFF0,DIFF*0.8,'26'),COLOR00FF00;
  30. DRAWTEXT(S26 AND DIFF0,DIFF*0.8,'29'),COLOR00FF00;
  31. DRAWTEXT(S29 AND DIFF0,DIFF*0.8,'34'),COLOR00FF00;
  32. DRAWTEXT(S34 AND DIFF0,DIFF*0.8,'55'),COLOR00FF00;
  33. DRAWTEXT(S55 AND DIFF0,DIFF*0.8,'68'),COLOR00FF00;
  34. DRAWTEXT(S68 AND DIFFDEA,0);
  35. DRAWTEXT(SJ1 AND DIFF>0,DIFF*1.2,'1'),COLORFFFFFF;
  36. DRAWTEXT(SJ1 AND DIFFDEA,0);
  37. DRAWTEXT(SJ3 AND DIFF>0,DIFF*1.2,'3'),COLORFFFFFF;
  38. DRAWTEXT(SJ3 AND DIFFDEA,0);
  39. DRAWTEXT(SJ5 AND DIFF>0,DIFF*1.2,'5'),COLORFFFFFF;
  40. DRAWTEXT(SJ5 AND DIFFDEA,0);
  41. DRAWTEXT(SJ8 AND DIFF>0,DIFF*1.2,'8'),COLORFFFFFF;
  42. DRAWTEXT(SJ8 AND DIFFDEA,0);
  43. DRAWTEXT(SJ13 AND DIFF>0,DIFF*1.2,'13'),COLORFFFFFF;
  44. DRAWTEXT(SJ13 AND DIFFDEA,0);
  45. DRAWTEXT(SJ18 AND DIFF>0,DIFF*1.2,'18'),COLORFFFFFF;
  46. DRAWTEXT(SJ18 AND DIFFDEA,0);
  47. DRAWTEXT(SJ21 AND DIFF>0,DIFF*1.2,'21'),COLORFFFFFF;
  48. DRAWTEXT(SJ21 AND DIFFDEA,0);
  49. DRAWTEXT(SJ26 AND DIFF>0,DIFF*1.2,'26'),COLORFFFFFF;
  50. DRAWTEXT(SJ26 AND DIFFDEA,0);
  51. DRAWTEXT(SJ29 AND DIFF>0,DIFF*1.2,'29'),COLORFFFFFF;
  52. DRAWTEXT(SJ29 AND DIFFDEA,0);
  53. DRAWTEXT(SJ34 AND DIFF>0,DIFF*1.2,'34'),COLORFFFFFF;
  54. DRAWTEXT(SJ34 AND DIFFDEA,0);
  55. DRAWTEXT(SJ47 AND DIFF>0,DIFF*1.2,'47'),COLORFFFFFF;
  56. DRAWTEXT(SJ47 AND DIFFDEA,0);
  57. DRAWTEXT(SJ55 AND DIFF>0,DIFF*1.2,'55'),COLORFFFFFF;
  58. DRAWTEXT(SJ55 AND DIFFDEA,0);
  59. DRAWTEXT(SJ60 AND DIFF>0,DIFF*1.2,'63'),COLORFFFFFF;
  60. DRAWTEXT(SJ60 AND DIFFDEA,0);
  61. DRAWTEXT(SJ68 AND DIFF>0,DIFF*1.2,'68'),COLORFFFFFF;
  62. DRAWTEXT(SJ68 AND DIFF<0,DIFF*0.8,'68'),COLORFFFFFF;
  63. DRAWICON(CROSS(MACD,0),MACD,1);
  64. DRAWICON(CROSS(DIFF,DEA),DIFF,1);
  65. DRAWICON(CROSS(DEA,DIFF),DEA,2);
复制代码
回复

使用道具 举报

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

本版积分规则



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

GMT+8, 2018-11-14 00:03

Powered by 今日股市

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

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