OPEN-SOURCE SCRIPT

Multiple Moving Averages [clean]

By RyanMartin
Updated
Very simple indicator script to display multiple simple moving averages. I know others have made this but they often are too feature-rich and can get cluttered.
Can optionally show a cross when MA 1 crosses MA 3. These are colors such that when MA 1 crosses BELOW MA 3 a red cross is shown, and green when crossing above.
Release Notes
minor tweaks for better UI. I recommend changing the visual order and bringing this to the front on most layouts.
Release Notes
- added ability to use custom resolutions for MAs (i.e. using 1 day for MA periods while viewing a chart that is set to 1 week resolution).
- cosmetic tweaks
- added comment lines to code for anyone interested
basiccleancleanchartMASMoving AveragesmultipleresolutionsimpleSimple Moving Average (SMA)smasmaspreadTrend Analysis
RyanMartin

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