OPEN-SOURCE SCRIPT
5 SMA - Customizable Multi-SMA Indicator

5 SMA — Customizable Multi-SMA Indicator
A clean, all-in-one Simple Moving Average indicator that plots up to 5 SMAs on a single chart, so you don't need to load five separate instances cluttering your indicator list.
Features:
Use cases:
Just open the settings, toggle the SMAs you want, set your lengths, and style them however you like. Defaults can be reused across instruments without reconfiguring each time.
A clean, all-in-one Simple Moving Average indicator that plots up to 5 SMAs on a single chart, so you don't need to load five separate instances cluttering your indicator list.
Features:
- 5 independent SMAs, each with its own show/hide toggle
- Fully customizable length, color, line thickness, and line style (solid/dashed/dotted) per SMA
- Shared source and offset inputs
- Sensible defaults out of the box: 20, 50, 100, 150, 200
Use cases:
- Trend-following setups using classic MA combinations (e.g. 50/200 golden cross, 20/50 short-term trend)
- Multi-timeframe confluence by stacking key MAs
- Dynamic support and resistance reference
Just open the settings, toggle the SMAs you want, set your lengths, and style them however you like. Defaults can be reused across instruments without reconfiguring each time.
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.