OPEN-SOURCE SCRIPT
Updated

4 Simple Moving Averages

128
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.
Release Notes
Visualisation change from line width 2 to 1.

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.