OPEN-SOURCE SCRIPT
SMA_20/50/100/200

SMA 20/50/100/200 is a simple overlay indicator that displays four commonly used simple moving averages on the main chart.
This setup helps traders monitor short-term and long-term trend conditions at the same time. The 20 and 50 SMAs are often used for near-term trend and momentum assessment, while the 100 and 200 SMAs provide a broader view of overall market direction and key dynamic support or resistance areas.
By observing price location relative to these moving averages, as well as the order and spacing between them, users can better understand trend strength, trend transitions, and possible pullback zones.
This indicator is intentionally kept simple and lightweight. It does not include alerts, strategy logic, or automatic trade signals. Its purpose is to provide a clear visual framework that can be combined with other analysis methods.
This setup helps traders monitor short-term and long-term trend conditions at the same time. The 20 and 50 SMAs are often used for near-term trend and momentum assessment, while the 100 and 200 SMAs provide a broader view of overall market direction and key dynamic support or resistance areas.
By observing price location relative to these moving averages, as well as the order and spacing between them, users can better understand trend strength, trend transitions, and possible pullback zones.
This indicator is intentionally kept simple and lightweight. It does not include alerts, strategy logic, or automatic trade signals. Its purpose is to provide a clear visual framework that can be combined with other analysis methods.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.