Renko percent

31
//version=5
indicator("Renko Percentage Change", overlay=true)

// Get the Renko brick size
brick_size = request.security(syminfo.ticker, "1D", high - low)

// Calculate percentage change
perc_change = (brick_size / close) * 100

// Plot the percentage change as a label
label.new(bar_index, high, text=str.tostring(perc_change, "#.##") + "%", color=color.green, textcolor=color.white, size=size.small)

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.