通达信风险评测副图波段指标 有图 源码

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

 通达信风险评测副图波段指标 有图 源码

{牛牛指标网提供:www.tdx001.com}复制内容到剪贴板
  1. RSVA1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;       
  2. RSVA2:=100*(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9));       
  3. VAR21:=SMA(RSVA2,9,1)+100;       
  4. VAR11:=SMA(RSVA1,3,1);       
  5. VAR51:=SMA(VAR11,3,1)+100;       
  6. 顶底线:=VAR51-VAR21+50;       
  7. VAR2:=LLV(LOW,33);       
  8. VAR3:=HHV(HIGH,21);       
  9. VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,10)*-1+100;       
  10. 趋势:=100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1);       
  11. STICKLINE(C,100,90,4,0),COLORFFCC33;       
  12. STICKLINE(C,90,80,4,0),COLORFF9933;       
  13. STICKLINE(顶底线>REF(顶底线,1),20,80,4,0),COLOR9999FF;       
  14. STICKLINE(顶底线<REF(顶底线,1),20,80,4,0),COLOR009966;       
  15. STICKLINE((趋势>REF(趋势,1) AND 顶底线<REF(顶底线,1)),20,80,4,0),COLOR9999FF;       
  16. STICKLINE((趋势<REF(趋势,1) AND 顶底线>REF(顶底线,1)),20,80,4,0),COLOR009966;       
  17. STICKLINE(C,20,10,4,0),COLORFF6633;       
  18. STICKLINE(C,10,0,4,0),COLORFF3333;       
  19. 底线:10,COLORWHITE;       
  20. 顶线:90,COLORWHITE;       
  21. 趋势线:100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1),LINETHICK2,COLORBLUE;       
  22. 当前安全度:100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1),CIRCLEDOT,LINETHICK2,COLORRED;       
  23. DRAWTEXT(CURRBARSCOUNT=6,5,'高安全区'),COLORWHITE;       
  24. DRAWTEXT(CURRBARSCOUNT=6,15,'安全区'),COLORWHITE;       
  25. DRAWTEXT(CURRBARSCOUNT=6,45,'绿区持币'),COLORFFC000;       
  26. DRAWTEXT(CURRBARSCOUNT=6,50,'(投资区)'),COLORWHITE;       
  27. DRAWTEXT(CURRBARSCOUNT=6,55,'粉区持股'),COLORFFC000;       
  28. DRAWTEXT(CURRBARSCOUNT=6,85,'风险区'),COLORWHITE;       
  29. DRAWTEXT(CURRBARSCOUNT=6,95,'高风险区'),COLORWHITE;       
  30. {强拉升}       
  31. Y1:=LLV(L,17);       
  32. Y2:=SMA(ABS(L-REF(L,1)),17,1);       
  33. Y3:=SMA(MAX(L-REF(L,1),0),17,2);       
  34. Q:=-(EMA(IF(L<=Y1,Y2/Y3,-3),1));       
  35. STICKLINE(CROSS(Q,0),15,0,4,0), , COLORYELLOW;       
  36. 强拉升: IF(CROSS(Q,0),1,0),COLORYELLOW;        
  37. Q1:= (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100, , COLOR00FF00,LINETHICK2;       
  38. STICKLINE(CROSS(Q1,-24),20,0,4,0), , COLORMAGENTA;       
  39. 加强拉升: IF(CROSS(Q1,-24),1,0),COLORMAGENTA;       
  40. VAR22:=EXPMA(EXPMA(EXPMA((2*CLOSE+HIGH+LOW)/4,4),4),4);       
  41. 天:=( MA((VAR22-REF(VAR22,1))/REF(VAR22,1)*100,2));       
  42. 地:=( MA((VAR22-REF(VAR22,1))/REF(VAR22,1)*100,1));       
  43. STICKLINE(地>天 AND 地<0,10,0,1,0),COLORRED;       
  44. 开始拉升:STICKLINE(地>天 AND 地<0,10,0,1,0)=1,COLORRED;       
  45. {<<波段绝品>>}       
  46. VAR1B:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;       
  47. VAR2B:=SMA(VAR1B,9,1)+100;       
  48. VAR3B:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;       
  49. VAR4B:=SMA(VAR3B,3,1);       
  50. VAR5B:=SMA(VAR4B,3,1)+100;       
  51. VAR6B:=VAR5B-VAR2B;       
  52. 趋势1: IF(VAR6B>45,VAR6B-45,0),COLOR00FFFF,LINETHICK2;       
  53. VAR2Q:=REF(LOW,1);       
  54. VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;       
  55. VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);       
  56. VAR5Q:=LLV(LOW,30);       
  57. VAR6Q:=HHV(VAR4Q,30);       
  58. VAR7Q:=IF(MA(CLOSE,58),1,0);       
  59. VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/999*VAR7Q;       
  60. 火焰山:=IF(VAR8Q>100,100,VAR8Q);       
  61. STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,3.5,0 ),COLOR4444FF;       
  62. STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,2.5,0 ),COLOR5555FF;       
  63. STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,1.5,0 ),COLOR7777FF;       
  64. STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,0.5,0 ),COLOR9999FF;       
  65. STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),3.5,0),COLOR000033;       
  66. STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),2.8,0),COLOR000055;       
  67. STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),2.0,0),COLOR000077;       
  68. STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),1.2,0),COLOR000099;       
  69. STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),0.4,0),COLOR0000DD;       
  70. STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),3.5,0),COLOR003300;       
  71. STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),2.8,0),COLOR005500;       
  72. STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),2.0,0),COLOR007700;       
  73. STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),1.2,0),COLOR009900;       
  74. STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),0.4,0),COLOR00DD00;       
  75. 逃顶:=CROSS(82,RSI);       
  76. STICKLINE( 逃顶,逃顶,10,3.5,0),COLORFF5500;       
  77. STICKLINE( 逃顶,逃顶,15,2.5,0),COLORFF8800;       
  78. STICKLINE( 逃顶,逃顶,20,1.5,0),COLORFFAA00;       
  79. STICKLINE( 逃顶,逃顶,25,0.5,0),COLORFFCC00;       
  80. STICKLINE( 逃顶,逃顶,30,0.1,0),COLORFFFF00;       
  81. D1:=(C+L+H)/3;        
  82. D2:=EMA(D1,6);        
  83. D3:=EMA(D2,5);       
  84. BBUY:=CROSS(D2,D3);       
  85. 强弱线:50,COLORGREEN,POINTDOT;       
  86. DRAWICON(BBUY,20,1);       
  87. VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;       
  88. DRAWICON(CROSS(82,VARR1),10,15);       
  89. DRAWTEXT(CROSS(82,VARR1),35,'逃'),COLORYELLOW;   

CB73710654.jpg

CB73710654.jpg

回复

使用道具 举报

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

本版积分规则