Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- study(title="RhapsCombo v8", shorttitle="RCv8", overlay=true)
- showSMA1 = input(title="SMA 1 - 10/50/80/200", defval=true)
- showEMA1 = input(title="EMA 1 - 21/50/89/200/377", defval=true)
- showEMAR = input(title="EMAR", defval=false)
- showLabels = input(title="EMA/SMA Labels",defval=true)
- //showBBEMA = input(title="Show BBEMA", defval=true)
- //showPivHL = input(title="Pivots H/L", defval=false)
- //Simple Moving Averages: 10/30/50/80/200
- sma10 = sma(close, 10)
- plot(showSMA1 == true ? sma10 : na, color=#8A2BE2, transp=0, linewidth=1, title='SMA 10')
- sma30 = sma(close, 30)
- plot(showSMA1 == true ? sma30 : na, color=#00FFFF, transp=0, linewidth=1, title='SMA 30')
- sma50 = sma(close, 50)
- plot(showSMA1 == true ? sma50 : na, color=#556B2F, transp=0, linewidth=1, title='SMA 50')
- sma80 = sma(close, 80)
- plot(showSMA1 == true ? sma80 : na, color=#DAA520, transp=0, linewidth=1, title='SMA 80')
- sma200 = sma(close, 200)
- plot(showSMA1 == true ? sma200 : na, color=#800000, transp=0, linewidth=1, title='SMA 200')
- // SMA Labels
- 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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement