OPEN-SOURCE SCRIPT
Cập nhật Multi_MA

Description:
Multi MA plots four moving averages on a single chart, letting you monitor short-, mid-, and long-term trends at a glance.
Features
Four moving averages with fully customizable lengths (defaults: 7, 21, 60, 120).
Selectable MA type applied to all four lines: SMA, EMA, RMA, WMA, or VWMA. Switch types instantly from a single dropdown.
Adjustable line width for each average, so you can emphasize the ones that matter most to you.
Cross marker that highlights every crossover between the third and fourth averages (default 60 and 120) — a common signal for shifts in the longer-term trend.
How to use
The fast lines (7, 21) track momentum and short-term direction, while the slower lines (60, 120) define the broader trend. When the 60 crosses the 120, a "Cross" label marks the event, helping you spot potential trend transitions. Adjust the lengths and MA type to fit your instrument and timeframe.
Works on any symbol and timeframe. Overlays directly on price.
Multi MA plots four moving averages on a single chart, letting you monitor short-, mid-, and long-term trends at a glance.
Features
Four moving averages with fully customizable lengths (defaults: 7, 21, 60, 120).
Selectable MA type applied to all four lines: SMA, EMA, RMA, WMA, or VWMA. Switch types instantly from a single dropdown.
Adjustable line width for each average, so you can emphasize the ones that matter most to you.
Cross marker that highlights every crossover between the third and fourth averages (default 60 and 120) — a common signal for shifts in the longer-term trend.
How to use
The fast lines (7, 21) track momentum and short-term direction, while the slower lines (60, 120) define the broader trend. When the 60 crosses the 120, a "Cross" label marks the event, helping you spot potential trend transitions. Adjust the lengths and MA type to fit your instrument and timeframe.
Works on any symbol and timeframe. Overlays directly on price.
Phát hành các Ghi chú
Update: Directional cross signals + alertsPreviously the indicator marked every crossover between the 60 and 120 moving averages with a single label, without distinguishing direction. This update splits that into two clearer signals:
Golden Cross — when the 60 MA crosses above the 120 MA (potential bullish trend shift), marked with a green "GC" label below the bar.
Dead Cross — when the 60 MA crosses below the 120 MA (potential bearish trend shift), marked with a red "DC" label above the bar.
Also added alert conditions for both events, letting you configure TradingView notifications straight from the indicator settings.
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.