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

以下是多空线,三背离,无未来(无源码的请下载附件导入)

多空线,三背离,无未来

 

C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
  1. MA4:MA(CLOSE,5) ,COLORFF00FF,LINETHICK2;   
  2. 判断3:IF(MA4<REF(MA4,1),MA4,DRAWNULL),COLORGREEN,LINETHICK2;DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);   
  3. DEA:=EMA(DIFF,9);   
  4. MACD:=2*(DIFF-DEA);   
  5. A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));   
  6. B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);   
  7. DRAWICON(FILTER(B1>0,5),L*0.94,10);   
  8. DRAWTEXT(FILTER(B1>0,5),L*0.94,'M底'),COLORGREEN;{MACD底背离}   
  9. A2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));   
  10. B2:=REF(C,A2+1)>C AND REF("KDJ.K",A2+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D");   
  11. DRAWICON(FILTER(B2>0,5),L*0.96,10);   
  12. DRAWTEXT(FILTER(B2>0,5),L*0.96,'K底'),COLORYELLOW;{KDJ底背离}   
  13. A3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));   
  14. B3:=REF(C,A3+1)>C AND REF("RSI.RSI1",A3+1)<"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2");   
  15. DRAWICON(FILTER(B3>0,5),L*0.98,10);   
  16. DRAWTEXT(FILTER(B3>0,5),L*0.98,'R底'),COLORCYAN;{RSI底背离}   
  17.   
  18. C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));   
  19. D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);   
  20. DRAWICON(FILTER(D1>0,5),H*1.07,12);   
  21. DRAWTEXT(FILTER(D1>0,5),H*1.07,'M顶'),COLOR0066FF;{MACD顶背离}   
  22. C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));   
  23. D2:=REF(C,C2+1)<C AND REF("KDJ.K",C2+1)>"KDJ.K" AND CROSS("KDJ.D","KDJ.K");   
  24. DRAWICON(FILTER(D2>0,5),H*1.05,12);   
  25. DRAWTEXT(FILTER(D2>0,5),H*1.05,'K顶'),COLORRED;{KDJ顶背离}   
  26. C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));   
  27. D3:=REF(C,C3+1)<C AND REF("RSI.RSI1",C3+1)>"RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1");   
  28. DRAWICON(FILTER(D3>0,5),H*1.03,12),;   
  29. DRAWTEXT(FILTER(D3>0,5),H*1.03,'R顶'),COLORMAGENTA,;{RSI顶背离};   

 



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