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