OPEN-SOURCE SCRIPT
Updated Many Moving Averages

This script allows you to add two moving averages to a chart, where the type of moving average can be chosen from a collection of 15 different moving average algorithms. Each moving average can also have different lengths and crossovers/unders can be displayed and alerted on.
The supported moving average types are:
Many of the moving average algorithms were taken from other peoples' scripts. I'd like to thank the authors for making their code available.
The supported moving average types are:
- Simple Moving Average ( SMA )
- Exponential Moving Average ( EMA )
- Double Exponential Moving Average ( DEMA )
- Triple Exponential Moving Average ( TEMA )
- Weighted Moving Average ( WMA )
- Volume Weighted Moving Average ( VWMA )
- Smoothed Moving Average ( SMMA )
- Hull Moving Average ( HMA )
- Least Square Moving Average/Linear Regression ( LSMA )
- Arnaud Legoux Moving Average ( ALMA )
- Jurik Moving Average ( JMA )
- Volatility Adjusted Moving Average ( VAMA )
- Fractal Adaptive Moving Average ( FRAMA )
- Zero-Lag Exponential Moving Average ( ZLEMA )
- Kauman Adaptive Moving Average ( KAMA )
Many of the moving average algorithms were taken from other peoples' scripts. I'd like to thank the authors for making their code available.
Release Notes
Replaced crosses with triangles and made them a little bit smaller, in order to make them visually less distracting, yet still easily visible.Release Notes
Added ALMA to the dropdownOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.