OPEN-SOURCE SCRIPT
已更新 EMA Cloud + Alerts

The only EMA indicator you'll ever need.
- Flexible EMAs: Customize EMA lengths (e.g., 9, 21) to match your trading style.
- Dynamic Cloud: Auto-shades bullish (green) or bearish (red) clouds between EMAs for clear trend signals.
- Trend Change Alerts: Auto-alerts that signal when a trend change (EMA crossover) happens on the timeframe you're currently viewing.
- Timeframe Lock: Lock EMAs to a specific timeframe (e.g., 5m on a 1m chart) for consistent analysis.
- Personalized Design: Adjust EMA colors, thickness, and cloud transparency for optimal visibility.
A friendly reminder that no tool or indicator guarantees success. Integrate this into a robust trading plan.
- Flexible EMAs: Customize EMA lengths (e.g., 9, 21) to match your trading style.
- Dynamic Cloud: Auto-shades bullish (green) or bearish (red) clouds between EMAs for clear trend signals.
- Trend Change Alerts: Auto-alerts that signal when a trend change (EMA crossover) happens on the timeframe you're currently viewing.
- Timeframe Lock: Lock EMAs to a specific timeframe (e.g., 5m on a 1m chart) for consistent analysis.
- Personalized Design: Adjust EMA colors, thickness, and cloud transparency for optimal visibility.
A friendly reminder that no tool or indicator guarantees success. Integrate this into a robust trading plan.
版本注释
UPDATE Version 1.2:Updated cloud coloring when using multi-timeframe analysis and locking moving averages to different timeframes.
版本注释
UPDATE Version 1.3:Removed lag when locking EMAs to one timeframe and viewing from another. Example: Locked the EMAs to the 15m, then viewed the chart from the 1m. Now there is zero lag, and all moving averages are synced regardless of lock or perspective.
版本注释
UPDATE Version 2.0:Added "Distance to EMAs" table. This creates a table/box in the top right of the chart that tells you how far the price is from each of the EMAs you are using. It adapts seamlessly to timeframe changes and EMA length changes. Text is red when the price is below EMA(s), and text is green when the price is above EMA(s).
版本注释
UPDATE Version 2.1:Small bug fixes and visual changes to clean up Version 2.0.
版本注释
UPDATE Version 2.2:- Fixed higher-timeframe repainting: Crossovers now show what actually happened, not hindsight-perfect levels.
- ATR distance metric: See how far the price is from each EMA in ATR multiples; works across all instruments.
- Keep-all-labels toggle: Show every crossover (backtesting) or just the latest signal (clean chart).
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。