通达信改版的风险测评

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

通达信改版的风险测评

改版的{风险测评},看起来更清晰明了!感谢:思言2009。
原图与现图:{牛牛指标网提供: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.   
  8. VAR2:=LLV(LOW,33);   
  9. VAR3:=HHV(HIGH,21);   
  10. VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,10)*-1+100;   
  11. 趋势:=100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1);   
  12. STICKLINE(C,100,90,4,0),COLORFFCC33;   
  13. STICKLINE(C,90,80,4,0),COLORFF9933;   
  14. STICKLINE(顶底线>REF(顶底线,1),20,80,4,0),COLOR9999FF;   
  15. STICKLINE(顶底线<REF(顶底线,1),20,80,4,0),COLOR009966;   
  16. STICKLINE((趋势>REF(趋势,1) AND 顶底线<REF(顶底线,1)),20,80,4,0),COLOR9999FF;   
  17. STICKLINE((趋势<REF(趋势,1) AND 顶底线>REF(顶底线,1)),20,80,4,0),COLOR009966;   
  18. STICKLINE(C,20,10,4,0),COLORFF6633;   
  19. STICKLINE(C,10,0,4,0),COLORFF3333;   
  20. 10,COLORWHITE;   
  21. 90,COLORWHITE;   
  22. DRAWTEXT(FILTER(CLOSE>0,25),5,'高安全区'),COLORWHITE;   
  23. DRAWTEXT(FILTER(CLOSE>0,25),15,'安全区'),COLORWHITE;   
  24. DRAWTEXT(FILTER(CLOSE>0,25),45,'绿区持币'),COLORWHITE;   
  25. DRAWTEXT(FILTER(CLOSE>0,25),50,'(投资区)'),COLORWHITE;   
  26. DRAWTEXT(FILTER(CLOSE>0,25),55,'粉区持股'),COLORWHITE;   
  27. DRAWTEXT(FILTER(CLOSE>0,25),85,'风险区'),COLORWHITE;   
  28. DRAWTEXT(FILTER(CLOSE>0,25),95,'高风险区'),COLORWHITE;   
  29. 趋势线:100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1),LINETHICK2,COLORBLUE;   
  30. 当前安全度:100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1),CIRCLEDOT,LINETHICK2,COLORRED;   

 

86566455.png

86566455.png

回复

使用道具 举报

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

本版积分规则