Couple of features added:
1. When chart resolution is Daily or Intraday (D, 4H, 1H, 5min, etc), both True Range and Relative Volume shows value based on DAILY.
2. When resolution is changed to Weekly or Monthly, then both True Range and Relative Volume shows corresponding value. i.e. Weekly shows weekly true range vs past 'N' weekly ATR. Weekly Relative Volume shows relative volume of this week compared to past 'N' weeks. Likewise for Monthly. You would see change in label name. Like, Weekly chart shows WTR (Weekly True Range) and W_RVol (Weekly Relative Volume). Likewise, Daily & Intraday shows DTR & D_RVol. Monthly shows MTR (Monthly True Range) and M_RVol (Monthly Relative Volume).
3. Added a plot (by default hidden) for this specific reason: When you move the cursor to focus specific candle, then Indicator Value displays relative volume of that specific candle. This applies to Intraday as well. So if you're in 1HR chart and move the cursor to a specific candle, Indicator Value shows relative volume for that specific candlestick bar.
Hope you find this useful.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.
I was able it with (barsRight = input(-35) and y-axis 10e10)
but its not working properly if i have multiple charts in same panel like shown in image below
as shown here:
I have to use y=close and the problem is the label is not at a fixed location
Ideally i want my label to be at left-most top side near Stock symbol label