AnthonyAlexander

T3 RSI

Jan 4th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. //@version=3
  2. study("T3 RSI", overlay=false)
  3.  
  4. length1 = 5
  5. a1 = 0.618
  6. e1=ema((high + low + 2*close)/4, length1)
  7. e2=ema(e1,length1)
  8. e3=ema(e2,length1)
  9. e4=ema(e3,length1)
  10. e5=ema(e4,length1)
  11. e6=ema(e5,length1)
  12. c1=-a1*a1*a1
  13. c2=3*a1*a1+3*a1*a1*a1
  14. c3=-6*a1*a1-3*a1-3*a1*a1*a1
  15. c4=1+3*a1+a1*a1*a1+3*a1*a1
  16. T3=c1*e6+c2*e5+c3*e4+c4*e3
  17.  
  18. //plot(T3, color=blue, linewidth=3, title="T3")
  19. //////
  20.  
  21. length2 = 8
  22. _a1 = 0.618
  23. _e1=ema((high + low + 2*close)/4, length2)
  24. _e2=ema(_e1,length2)
  25. _e3=ema(_e2,length2)
  26. _e4=ema(_e3,length2)
  27. _e5=ema(_e4,length2)
  28. _e6=ema(_e5,length2)
  29. _c1=-_a1*_a1*_a1
  30. _c2=3*_a1*_a1+3*_a1*_a1*_a1
  31. _c3=-6*_a1*_a1-3*_a1-3*_a1*_a1*_a1
  32. _c4=1+3*_a1+_a1*_a1*_a1+3*_a1*_a1
  33. _T3=_c1*_e6+_c2*_e5+_c3*_e4+_c4*_e3
  34.  
  35. myOSC1 = T3 -_T3
  36. myT3RSI = rsi(myOSC1, 8)
  37.  
  38. final = ema(myT3RSI, 13)
  39. hline(80)
  40. hline(20)
  41. plot(final,color=blue,transp=0)
Advertisement
Add Comment
Please, Sign In to add comment