OPEN-SOURCE SCRIPT
Moving Averages With Cross Alerts

A simple way to add up to 5 moving averages with optional crossover/crossunder alerts.
Available options for Moving Average Type are:
By default, 5 moving averages are enabled and set to the following:
Each moving average has the following options:
Available options for Moving Average Type are:
- SMA
- EMA (default)
- HMA
- RMA
- WMA
- VWMA
- VWAP
- ALMA
By default, 5 moving averages are enabled and set to the following:
- MA1 set to 5
- MA2 set to 13
- MA3 set to 50
- MA4 set to 200
- MA5 set to 800
Each moving average has the following options:
- Enable/Disable
- Source (default is close)
- Length
- Color
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.
For quick access on a chart, add this script to your favorites — learn more here.
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.
For quick access on a chart, add this script to your favorites — learn more here.
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.