RicardoSantos

[RS]Renko Overlay V0

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.
開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?
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)