xmd79

Ocean Waves

Oct 1st, 2021
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. //@version=4
  2. study("Ocean Waves",overlay=true)
  3. ma1 = ema(close,20)
  4. ma2 = ema(close,40)
  5. ma3 = ema(close,60)
  6. ma4 = ema(close,80)
  7. ma5 = ema(close,100)
  8. ma6 = ema(close,120)
  9. ma7 = ema(close,140)
  10. ma8 = ema(close,160)
  11. a = plot(ma1,transp=100)
  12. b = plot(ma2,transp=100)
  13. c = plot(ma3,transp=100)
  14. d = plot(ma4,transp=100)
  15. e = plot(ma5,transp=100)
  16. f = plot(ma6,transp=100)
  17. g = plot(ma7,transp=100)
  18. h = plot(ma8,transp=100)
  19. F(x)=>x>ma8?#0cb51a:#ff1100
  20. fill(a,b,F(ma1),transp=80)
  21. fill(b,c,F(ma2),transp=70)
  22. fill(c,d,F(ma3),transp=60)
  23. fill(d,e,F(ma4),transp=50)
  24. fill(e,f,F(ma5),transp=40)
  25. fill(f,g,F(ma6),transp=30)
  26. fill(g,h,F(ma7),transp=20)
  27. // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
  28. //By: © Jesus_Emmanuel
Advertisement
Add Comment
Please, Sign In to add comment