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에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?
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)