Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@version=4
- study("Ocean Waves",overlay=true)
- ma1 = ema(close,20)
- ma2 = ema(close,40)
- ma3 = ema(close,60)
- ma4 = ema(close,80)
- ma5 = ema(close,100)
- ma6 = ema(close,120)
- ma7 = ema(close,140)
- ma8 = ema(close,160)
- a = plot(ma1,transp=100)
- b = plot(ma2,transp=100)
- c = plot(ma3,transp=100)
- d = plot(ma4,transp=100)
- e = plot(ma5,transp=100)
- f = plot(ma6,transp=100)
- g = plot(ma7,transp=100)
- h = plot(ma8,transp=100)
- F(x)=>x>ma8?#0cb51a:#ff1100
- fill(a,b,F(ma1),transp=80)
- fill(b,c,F(ma2),transp=70)
- fill(c,d,F(ma3),transp=60)
- fill(d,e,F(ma4),transp=50)
- fill(e,f,F(ma5),transp=40)
- fill(f,g,F(ma6),transp=30)
- fill(g,h,F(ma7),transp=20)
- // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
- //By: © Jesus_Emmanuel
Advertisement
Add Comment
Please, Sign In to add comment