OPEN-SOURCE SCRIPT

Ratio Smoothed, Volume Weighted Moving Average

Updated
This is experimental moving average doesn't use a period/length but instead buffers the price per share and transfers that price per share at a given ratio per bar while also releasing the previous values at a decay ratio.

The idea is that volume is the engine by which the price moves but spikes in volume can cause noise. By having a buffer of price per share units, this VWMA style indicator can behave more like a WMA combined with volume (VAWMA) but smooths out the noise of recent volume. The end result is a price movement that is smooth but also still based strongly up on the average price per share and will always eventually catch up to the true price per share value.

A metaphor to understand this could be a bucket with a hole in it where water is flowing sporadically into the bucket. The level of water in the bucket may change drastically but instead of all the water emptying out immediately, it is throttled by the hole in the bottom. As the level rises, the water pressure increases and the flow increases so that the virtual bucket never has a chance to fill up but also never really empties either.
Release Notes
Fixed description and thumbnail.
Release Notes
Added feature for using time instead of bars so that the plot can stay consistent across multiple time-frames.
Release Notes
Allow for smaller minimum.
movingavaragevawmavolumeweightedmovingaverageVolume Weighted Moving Average (VWMA)

Open-source script

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer