通达信背离共振副图 原码

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

 通达信背离共振副图 原码

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

复制内容到剪贴板
  1. {MA3:=MA(CLOSE,3);     
  2. MA5:=MA(CLOSE,5);     
  3. MA10:=MA(CLOSE,10);     
  4. MA20:=MA(CLOSE,20);     
  5. MA30:=MA(CLOSE,30);     
  6. MA60:=MA(CLOSE,60);     
  7. MA120:=MA(CLOSE,120);     
  8. MA250:=MA(CLOSE,250); }   
  9. DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);   
  10. DEA:=EMA(DIFF,8);   
  11. A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));     
  12. B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);     
  13. MACD底背:IF(B1>0,50,0) AND L-0.1;   
  14. DRAWTEXT(MACD底背,72,'MACDY底背');   
  15. RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;   
  16. K:=SMA(RSV,3,1);   
  17. D:=SMA(K,3,1);   
  18. A2:=BARSLAST(REF(CROSS(K,D),1));     
  19. B2:=REF(C,A2+1)>C AND REF(K,A2+1)<K AND CROSS(K,D);     
  20. KDJ底背:IF(B2>0,50,0) AND L-0.25;   
  21. LC:=REF(CLOSE,1);   
  22. RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;   
  23. RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;   
  24. A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));     
  25. B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1)<RSI1 AND CROSS(RSI1,RSI2);     
  26. RSI底背:IF(B3>0,50,0) AND L-0.4;   
  27. 全底背:IF(MACD底背 OR KDJ底背 OR RSI底背,50,0),COLORFF00FF;   
  28. DRAWTEXT(MACD底背,50,'M底背'),COLOR0000FF;   
  29. DRAWTEXT(KDJ底背,65,'K底背'),COLOR0000FF;   
  30. DRAWTEXT(RSI底背,80,'R底背'),COLOR0000FF;   
  31. DRAWTEXT(全底背,100,'全底背'),COLORYELLOW,LINETHICK2;   
  32. {--------------------}   
  33. 趋势: 5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA((CLOSE-LLV   
  34.   
  35. (LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV   
  36.   
  37. (HIGH,27)-LLV(LOW,27))*100,5,1),3,1),2,1),LINETHICK0,COLOR7F52AF;   
  38. 趋势1: EMA(MA(趋势,5),3),LINETHICK0,COLORA6B8C1;   
  39. STICKLINE(趋势>=趋势1,趋势,趋势1,5,0),COLOR7F52AF;   
  40. STICKLINE(趋势<趋势1,趋势,趋势1,5,0),COLORA6B8C1;   
  41. STICKLINE(趋势>108 AND 趋势>=趋势1,趋势,108,5,0),COLORFF0000;   
  42. STICKLINE(趋势1>108 AND 趋势<趋势1,趋势1,108,5,0),COLORFFFFFF;   
  43. STICKLINE(趋势<0 AND 趋势<趋势1,趋势,0,5,0),COLORF00FF0;   
  44. STICKLINE(趋势1<0 AND 趋势>趋势1,趋势1,0,5,0),COLORF0F000;   
  45. V1:= MA(CLOSE,5)=HHV(MA(CLOSE,5),20);   
  46. V2:= MA(CLOSE,5)>MA(CLOSE,20);   
  47. V3:= COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;   
  48. 风险: IF(V1 AND V2 AND V3,30,0),LINETHICK0,STICK,COLOR00FF00;   
  49. V11:= MA(CLOSE,5)=HHV(MA(CLOSE,5),120);   
  50. V21:= MA(CLOSE,5)>MA(CLOSE,120);   
  51. V31:= COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;   
  52. 风险1: IF(V11 AND V21 AND V31,60,0),LINETHICK0,STICK,COLORF0F000;   
  53. 底部: 5,LINETHICK0,COLOR00FFFF;   
  54. 抄底: IF(CROSS(趋势,底部),40,0),LINETHICK2,STICK,COLOR00FFFF;   
  55. DRAWTEXT(抄底,50,'抄底'),COLOR0000FF;   
  56. 天线: 108,LINETHICK0,COLORFF9D00;   
  57. 逃顶: IF(CROSS(天线,趋势),1,0),LINETHICK0,STICK,COLORFF9D00;   
  58. STICKLINE(CROSS(天线,趋势),90,108,3,0),COLORFF9D00;   
  59. DRAWTEXT(CROSS(天线,趋势),85,'逃顶'),COLORFF9D00;   
  60.   
  61. DRAWTEXT(CROSS(天线,趋势),85,'逃顶'),COLORFF9D00;   

738244123.png

738244123.png

回复

使用道具 举报

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

本版积分规则