OPEN-SOURCE SCRIPT
Updated [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.
Release Notes
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.
Release Notes
- Updated histogram style
- Added additional HMA to visualize trend direction
Release Notes
Removed slow line from visualizationRelease Notes
Improved visualization to accurately show histogram and signal lineRelease Notes
added extra SMARelease Notes
updated chart with more explanationRelease Notes
changed histogram style to improve visualization styleRelease Notes
Removed SMAAdded option to enable/disable histogram color coding
Release Notes
Added option to smooth sourcechanged signal line style
Release Notes
keeping default multiplier to 1Release Notes
Changed signal line styleRelease Notes
Modified to match styles with rest of MACD Overlay indicatorsOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.