OPEN-SOURCE SCRIPT

ka66: Normalised/Relative Volume

Cập nhật
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.

Phát hành các Ghi chú
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

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Thông báo miễn trừ trách nhiệm