[RS]Renko Overlay V0

2256 1
Renko Overlay:
  • tf: Timeframe to use.
  • mode:ATR or Traditional.
  • modeValue: can be whole number for ATR mode(ex:.15) or floating point value for Traditional(ex:.0.12345).
  • showOverlay: Display renko bars.
  • showBarColors: Display Bar Colors.
  • showMa: display Renko based ma.
  • MA_length: moving average length.

note: should use with scale series only toggled on, so it doesnt strech.
Remove from Favorite Scripts Add to Favorite Scripts
study(title='[RS]Renko Overlay V0', shorttitle='[RS]RO.V0', overlay=true)
tf = input('5')
mode = input('Traditional')
mode_value = input(0.0005, type=float)
showOverlay = input(true)
showBarColors = input(false)
showMA = input(false)
MA_length = input(12)

rt = renko(tickerid, 'close', mode, mode_value)

ro = security(rt, tf, open)
rc = security(rt, tf, close)

colorf = rc > ro ? #00ff80 : rc < ro ? #ff8000 : gray
plot(not showOverlay ? na : max(rc,ro), color=colorf, style=columns, transp=50)
plot(not showOverlay ? na : min(rc,ro), color=white, style=columns, transp=0)

ma = showMA ? sma(ro, MA_length) : na
plot(not showMA ? na : ma, color=black, linewidth=2)

barcolor(not showBarColors ? na : rc > ro ? lime : red)
How can I use this. It keep stretching on me.
Home Stock Screener Forex Screener Crypto Screener Economic Calendar Shows How It Works Chart Features Pricing House Rules Pine Wizards Moderators Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Help Center Refer a friend Feature Request Blog & News Twitter
Profile Profile Settings Account and Billing Refer a friend My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out