Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // @author LazyBear
- //
- // List of my public indicators: http://bit.ly/1LQaPK8
- // List of my app-store indicators: http://blog.tradingview.com/?p=970
- // For @energyfx
- //
- study("2EMA Ribbon [LazyBear]", shorttitle="2EMARIBBON_LB", overlay=true)
- src=input(close, title="Source")
- l1=input(10, title="Length 1")
- l2=input(20, title="Length 2")
- ma(s,l) => ema(s,l)
- e1=ma(src, l1), e2=ma(src, l2), d=e1>e2?e2:e1
- dl=plot(d, title="dummy", style=circles, color=gray, linewidth=0)
- e1l=plot(e1, color=black, linewidth=2, title="MA 1"), e2l=plot(e2, color=gray, linewidth=2, title="MA 2")
- fill(e1l,dl, blue, transp=70, title="PositiveFill"), fill(e2l,dl, fuchsia, transp=70, title="NegativeFill")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement