Besides, I tried to use this code in a 2min TF, but it didn’t work properly since there can be gaps between candles in that TF (the full amount of candles is 195 per day in the US market, but you sometimes get 194 or 193 because of gaps in the price).
Hi,
I am trying to replicate the indicator Relative Volume at Time, from TV service. I find it efficient in indicating if the tendence is likely to continue or not.
Basically it takes the current candle volume and divides it by the average of that single bar for the last X days. This is typically done on 5 minutes bars.
Here is the link https://www.tradingview.com/support/solutions/43000635874-how-do-we-calculate-relative-volume-and-relative-volume-at-time/
I would like to use this on a screener later on. Any help would be appreciated
Cheers