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.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。