通达信MACD超准公式

[复制链接]
查看141 | 回复0 | 2022-7-24 09:03:38 | 显示全部楼层 |阅读模式

 通达信MACD超准公式

{牛牛指标网提供:www.tdx001.com}

复制内容到剪贴板
  1. {㊣MACD超准㊣}   
  2. SQX:=(C-MA(CLOSE,13))*100;   
  3. DIFF:EMA(MA(SQX,7),1),COLORWHITE;   
  4. DEA:EMA(DIFF,7),COLORYELLOW;   
  5. DRAWBAND(DIFF,RGB(220,160,230),DEA,RGB(110,90,150));   
  6. MACD:(DIFF-DEA)*2,COLORSTICK;   
  7. STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0,0),COLORMAGENTA;   
  8. STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,0,0),COLORGREEN;   
  9. STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,0,0),COLORYELLOW;    
  10. STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,0,0),COLORRED;   
  11. 低位金叉:IF(CROSS(DIFF,DEA) AND DIFF<-0.1,15,DRAWNULL),COLORMAGENTA,LINETHICK9,CROSSDOT;   
  12. IF(CROSS(DIFF,DEA) AND DIFF<-0.1,15,DRAWNULL),COLORYELLOW,LINETHICK4,POINTDOT;   
  13. JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));   
  14. 二次金叉:IF(CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1,28,DRAWNULL),COLORFF00FF,LINETHICK4,CROSSDOT;   
  15. A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));   
  16. 底背离:IF(REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),40,DRAWNULL),COLORRED,LINETHICK4,CROSSDOT;   
  17. 势:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORGREEN;{,COLORRED;}   
  18. A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));   
  19. 顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF),COLORWHITE;   
  20. 顶背离_:IF(REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF   
  21. AND CROSS(DEA,DIFF),66,DRAWNULL)   
  22. ,COLORF08000,LINETHICK4,CROSSDOT;   
  23. 压:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORFFBB99;   
  24. A3:=CROSS(DIFF,DEA) AND DEA<0;   
  25. 零下二次金叉_:IF(FILTER(COUNT(A3,21)=2,10),53,DRAWNULL)   
  26. ,COLORWHITE,LINETHICK4,CROSSDOT;  

9675233927.png

9675233927.png

回复

使用道具 举报

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

本版积分规则