当前位置:→ 公式网 > 通达信公式 > 正文  公式解密、改选股等业务 联系点击查看详情...

以下是MACD超准(无源码的请下载附件导入)

 

C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
  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;  



关于我们 - 联系我们 - 广告合作 - 下载声明 - 网站帮助 - 友情链接 - 网站地图 - RSS订阅 - TOP
湘ICP备09016573号-3 增值电信业务经营ICP许可证:湘B2-20210269 湘公网安备43108102000039号
Copyright © 铭网科技,All Rights Reserved.
股票公式,股票指标,股票软件,股票知识