SHARE
TWEET

2EMA Ribbon [LazyBear]

lazybeartv May 26th, 2015 264 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. // @author LazyBear
  3. //
  4. // List of my public indicators: http://bit.ly/1LQaPK8
  5. // List of my app-store indicators: http://blog.tradingview.com/?p=970
  6. // For @energyfx
  7. //
  8. study("2EMA Ribbon [LazyBear]", shorttitle="2EMARIBBON_LB", overlay=true)
  9. src=input(close, title="Source")
  10. l1=input(10, title="Length 1")
  11. l2=input(20, title="Length 2")
  12. ma(s,l) => ema(s,l)
  13. e1=ma(src, l1), e2=ma(src, l2), d=e1>e2?e2:e1
  14. dl=plot(d, title="dummy", style=circles, color=gray, linewidth=0)
  15. e1l=plot(e1, color=black, linewidth=2, title="MA 1"), e2l=plot(e2, color=gray, linewidth=2, title="MA 2")
  16. fill(e1l,dl, blue, transp=70, title="PositiveFill"), fill(e2l,dl, fuchsia, transp=70, title="NegativeFill")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top