OPEN-SOURCE SCRIPT

ka66: Normalised/Relative Volume

От ka66
Обновлено
This is an idea taken from a John Bollinger (of Bollinger Bands fame) talk. Instead of showing volume with a moving average overlay, we show volume relative to its moving average:



Now if we get a value of 1, that means the current volume is the same as its historical average. Under 0, less than average, and above zero, greater than its average.

If we get a value like 2, then current volume is twice its average. I hope the implication of this being displayed visually is becoming clearer.

  • We plot this relative volume as columns.
  • We then plot horizontal levels, like 1, 2, 3 to see the magnitude of the current volume relative to its average.
  • Consecutive rising or falling relative volume is shown in the same colour.


I am still exploring volume as trading data point, but we see some ideas from this visual representation:

  • How do volume patterns change across timeframes? Do we get better signals or higher or lower time frames (e.g. big relative volume spikes)
  • Can consecutive rises or falls indicate a big potential move, even though price is just fluctuating.
  • What about a switch from rise to fall.
  • If we get pinbars/spikes with a big relative volume spike, can we then infer more clearly whether buyers or sellers are in control.

Информация о релизе
Changelog

  1. Remove prior coloring scheme, based on rising/falling bars, it was confusing and useless.
  2. Now color the bar, depending on what relative level it hits, by default: Gray, if below its average, blue if greater than its average, but below twice the average. Orange if twice the average but lower than thrice the average, and red if greater than thrice its average.
  3. Apply the moving average on top of the normalised volume, thus we now get essentially the same information as with regular volume, just on a normalised/relative scale!
  4. Allow the relative levels to be adjusted, but we expect that level 1 > level 2 > level 3, or you'll get odd colours!


In the chart, the bottom pane shows regular volume, with a moving average plotted with an area plot style. And above that, the relative volume indicator, to provide an illustration of how they are similar. We have the same relative magnitudes, but we get to quantify how much larger or smaller the volume is compared to the average, on a scale of 0 to N.

3 configurable scale levels are provided, defaulting to 1 (meaning: volume equals its average), 2 (volume twice its average), and 3 (volume thrice its average).

Traders may decide to adjust or even remove some levels, depending on their strategy parameters.
relativevolumeVolume Indicator

Скрипт с открытым кодом

В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.

Хотите использовать этот скрипт на графике?

Отказ от ответственности