Relative volume
This candle's volume compared with the average volume of the candles before it.
Relative volume = this candle's volume ÷ the average volume of the previous length candles (current excluded, so a spike is compared with what came before it). Ready at length + 1 candles; not ready when that average is 0. Mirror: neutral (volume does not change in a mirror).
Settings
| Setting | Default | Range | What it does |
|---|---|---|---|
| length | 20 | 1 to 5000 | Previous candles averaged. |
What it gives
| Output | What it is |
|---|---|
| rvol | Volume ÷ average, 1 = average. |
What it reads
It reads volume, quote_volume, volume by default.
Warm-up
With its default settings, Relative volume needs 21 closed candles before its first value. A backtest loads them before its start date, so the first trade can already use it.
Test it
Copy this sentence into the Algonney chat to backtest it:
Backtest a strategy on BTC that uses Relative volume with its default settings