SHARE
TWEET

Untitled

a guest Nov 17th, 2019 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. study(title="RhapsCombo v8", shorttitle="RCv8", overlay=true)
  2.  
  3. showSMA1 = input(title="SMA 1 - 10/50/80/200", defval=true)
  4. showEMA1 = input(title="EMA 1 - 21/50/89/200/377", defval=true)
  5. showEMAR = input(title="EMAR", defval=false)
  6. showLabels = input(title="EMA/SMA Labels",defval=true)
  7. //showBBEMA = input(title="Show BBEMA", defval=true)
  8. //showPivHL = input(title="Pivots H/L", defval=false)
  9.  
  10. //Simple Moving Averages: 10/30/50/80/200
  11. sma10 = sma(close, 10)
  12. plot(showSMA1 == true ? sma10 : na, color=#8A2BE2, transp=0, linewidth=1, title='SMA 10')
  13. sma30 = sma(close, 30)
  14. plot(showSMA1 == true ? sma30 : na, color=#00FFFF, transp=0, linewidth=1, title='SMA 30')
  15. sma50 = sma(close, 50)
  16. plot(showSMA1 == true ? sma50 : na, color=#556B2F, transp=0, linewidth=1, title='SMA 50')
  17. sma80 = sma(close, 80)
  18. plot(showSMA1 == true ? sma80 : na, color=#DAA520, transp=0, linewidth=1, title='SMA 80')
  19. sma200 = sma(close, 200)
  20. plot(showSMA1 == true ? sma200 : na, color=#800000, transp=0, linewidth=1, title='SMA 200')
  21.  
  22. // SMA Labels
  23. plotshape(showSMA1 == true and showLabels == true ? sma10 : na, style=shape.diamond, location=location.absolute, show_last=1, color=#8A2BE2, transp=0, text='SMA 10', title='SMA 10', offset=4)
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