OPEN-SOURCE SCRIPT
已更新 [NLR] - MACD Overlay

Overview
This script is an enhanced version of the classic MACD indicator, designed to be plotted directly on the price chart as an overlay. It provides a visual representation of trend direction by coloring moving averages, a zero reference line, and an optional histogram. The script allows for a higher timeframe MACD calculation through a configurable multiplier.
Features
How to Use
This script is an enhanced version of the classic MACD indicator, designed to be plotted directly on the price chart as an overlay. It provides a visual representation of trend direction by coloring moving averages, a zero reference line, and an optional histogram. The script allows for a higher timeframe MACD calculation through a configurable multiplier.
Features
- MACD Calculation: Uses Exponential Moving Averages (EMA) to calculate the MACD line, Signal line, and Histogram.
- Higher Timeframe Support: Multiplier option to adjust MACD parameters for a broader trend perspective.
- Color-Coded Trend Visualization: Dynamic color changes based on MACD crossovers for easy trend identification.
- Optional Histogram: Toggle histogram visibility to see momentum shifts.
- Zero Line Reference: Helps traders interpret trend direction and strength.
How to Use
- Customize Inputs: Adjust Fast, Slow, and Signal lengths as needed. Modify the multiplier to view a higher timeframe MACD.
- Enable Histogram: Use the "Show Histogram" toggle to display additional visual cues for momentum shifts.
- Interpret the Signals:
- Uptrend (Lime): Fast EMA is above Slow EMA.
- Downtrend (Fuchsia): Fast EMA is below Slow EMA.
- Histogram Changes: Increasing histogram bars indicate growing momentum, while decreasing bars suggest weakening momentum.
- Uptrend (Lime): Fast EMA is above Slow EMA.
發行說明
OverviewThis script is an enhanced version of the classic MACD indicator, designed to be plotted directly on the price chart as an overlay. It provides a visual representation of trend direction by coloring moving averages, a zero reference line, and an optional histogram. The script allows for a higher timeframe MACD calculation through a configurable multiplier.
Features
- MACD Calculation: Uses Exponential Moving Averages (EMA) to calculate the MACD line, Signal line, and Histogram.
- Higher Timeframe Support: Multiplier option to adjust MACD parameters for a broader trend perspective.
- Color-Coded Trend Visualization: Dynamic color changes based on MACD crossovers for easy trend identification.
- Optional Histogram: Toggle histogram visibility to see momentum shifts.
- Zero Line Reference: Helps visualize price movement at zero line.
How to Use
- Customize Inputs: Adjust Fast, Slow, and Signal lengths as needed. Modify the multiplier to view a higher timeframe MACD.
- Enable Histogram: Use the "Show Histogram" toggle to display additional visual cues for momentum shifts.
- Interpret the Signals:
- Uptrend (Lime): Fast EMA is above Slow EMA.
- Downtrend (Fuchsia): Fast EMA is below Slow EMA.
- Histogram Changes: Increasing histogram bars indicate growing momentum, while decreasing bars suggest weakening momentum.
- Uptrend (Lime): Fast EMA is above Slow EMA.
發行說明
- Updated histogram style
- Added additional HMA to visualize trend direction
發行說明
Removed slow line from visualization發行說明
Improved visualization to accurately show histogram and signal line發行說明
added extra SMA發行說明
updated chart with more explanation發行說明
changed histogram style to improve visualization style發行說明
Removed SMAAdded option to enable/disable histogram color coding
發行說明
Added option to smooth sourcechanged signal line style
發行說明
keeping default multiplier to 1發行說明
Changed signal line style發行說明
Modified to match styles with rest of MACD Overlay indicators開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。