OPEN-SOURCE SCRIPT

Three Moving Averages

Updated
This is simply three moving averages in the same indicator, with the possibility to change the source, length, offset and type on every moving average (Simple, Exponential, Weighted, Volume-weighted, Triple EMA or a moving average that uses RSI ).

If you want to disable any of the moving averages, then do that under the "Style"-tab by unchecking the box for that moving average.
Release Notes
Update to Pine Script Version 4 and add resolution to study.
Release Notes
Update: Convert to Pine Script version 5
Exponential Moving Average (EMA)Moving AveragesrmaSimple Moving Average (SMA)vmavolume-weightedweighted

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?


Also on:

Disclaimer