OPEN-SOURCE SCRIPT
Updated 4 Simple Moving Averages

4 SMAs to indicate market regime.
4 Simple Moving Averages — Plots four SMAs (10, 20, 30, 40) on the chart to gauge trend direction and momentum across short to medium timeframes. The 10 (red) tracks immediate price action, while the 40 (black) reflects the broader trend. When the averages stack in order and fan apart, the trend is strong; when they tangle and cross, the market is ranging or shifting. All four lengths are adjustable in settings.
4 Simple Moving Averages — Plots four SMAs (10, 20, 30, 40) on the chart to gauge trend direction and momentum across short to medium timeframes. The 10 (red) tracks immediate price action, while the 40 (black) reflects the broader trend. When the averages stack in order and fan apart, the trend is strong; when they tangle and cross, the market is ranging or shifting. All four lengths are adjustable in settings.
Release Notes
Visualisation change from line width 2 to 1.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.
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.