OPEN-SOURCE SCRIPT
SMA Dynamic

Since you're publishing this on TradingView, you'll want a description that looks professional and clearly explains the logic so other traders (or your future self) understand the value.
Here is a clean, effective English description for your script:
SMA Dynamic Matrix: Adaptive Multi-Timeframe Strategy
Overview
The SMA Dynamic Matrix is an intelligent, context-aware indicator designed to streamline technical analysis across multiple timeframes. Instead of cluttering your chart with dozens of moving averages, this script automatically detects your current chart interval and applies a specific "Matrix" of three Simple Moving Averages (SMAs) tailored for that timeframe.
How it Works
The indicator synchronizes perfectly with your analysis flow. When you switch timeframes, the SMA periods update instantly based on a pre-defined optimized matrix:
5 Min: 12, 24, 78 SMAs
30 Min: 13, 26, 65 SMAs
Daily: 10, 21, 63 SMAs
Weekly: 12, 27, 55 SMAs
Monthly: 12, 24, 36 SMAs
Note: To keep your charts clean, the indicator will automatically hide itself if you switch to a timeframe not included in the matrix (e.g., 1-hour or 15-min).
Visual Hierarchy
The script uses a "Heatmap" color logic for instant recognition:
Yellow Line: Short-term momentum (Fastest)
Orange Line: Medium-term trend (Intermediate)
Red Line: Major trend/Structure (Slowest/Most Significant)
Key Features
Zero Clutter: Only shows the 3 relevant averages for your current view.
High Visibility: Optimized colors (Yellow, Orange, Red) with 100% opacity for clarity on both dark and light themes.
Clean UI: Thin line weights (1px) to ensure price action remains the primary focus.
Automated Logic: No manual input changes required when switching from intraday scalping to long-term investing.
Here is a clean, effective English description for your script:
SMA Dynamic Matrix: Adaptive Multi-Timeframe Strategy
Overview
The SMA Dynamic Matrix is an intelligent, context-aware indicator designed to streamline technical analysis across multiple timeframes. Instead of cluttering your chart with dozens of moving averages, this script automatically detects your current chart interval and applies a specific "Matrix" of three Simple Moving Averages (SMAs) tailored for that timeframe.
How it Works
The indicator synchronizes perfectly with your analysis flow. When you switch timeframes, the SMA periods update instantly based on a pre-defined optimized matrix:
5 Min: 12, 24, 78 SMAs
30 Min: 13, 26, 65 SMAs
Daily: 10, 21, 63 SMAs
Weekly: 12, 27, 55 SMAs
Monthly: 12, 24, 36 SMAs
Note: To keep your charts clean, the indicator will automatically hide itself if you switch to a timeframe not included in the matrix (e.g., 1-hour or 15-min).
Visual Hierarchy
The script uses a "Heatmap" color logic for instant recognition:
Yellow Line: Short-term momentum (Fastest)
Orange Line: Medium-term trend (Intermediate)
Red Line: Major trend/Structure (Slowest/Most Significant)
Key Features
Zero Clutter: Only shows the 3 relevant averages for your current view.
High Visibility: Optimized colors (Yellow, Orange, Red) with 100% opacity for clarity on both dark and light themes.
Clean UI: Thin line weights (1px) to ensure price action remains the primary focus.
Automated Logic: No manual input changes required when switching from intraday scalping to long-term investing.
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.