OPEN-SOURCE SCRIPT

Logarithmic Moving Average

Logarithmically weighted moving average.

Here is how weight is distributed in LMA and RMA (exponential moving average)
snapshot

As you know, logarithm of 1 is 0... This means the last bar in specified period will be ignored, and the log curve above applies to LMA of 9 bars.
So one bar should be added to the length when calculating the weight.

Result is faster than simple moving average, but a bit slower than linearly weighted moving average.
LOGARITHMICMoving AveragesTrend Analysis

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