OPEN-SOURCE SCRIPT
Mis à jour [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.
Notes de version
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.
Notes de version
- Updated histogram style
- Added additional HMA to visualize trend direction
Notes de version
Removed slow line from visualizationNotes de version
Improved visualization to accurately show histogram and signal lineNotes de version
added extra SMANotes de version
updated chart with more explanationNotes de version
changed histogram style to improve visualization styleNotes de version
Removed SMAAdded option to enable/disable histogram color coding
Notes de version
Added option to smooth sourcechanged signal line style
Notes de version
keeping default multiplier to 1Notes de version
Changed signal line styleNotes de version
Modified to match styles with rest of MACD Overlay indicatorsScript open-source
Dans l'esprit de TradingView, le créateur de ce script l'a rendu open-source, afin que les traders puissent examiner et vérifier sa fonctionnalité. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais n'oubliez pas que la republication du code est soumise à nos Règles.
Pour un accès rapide sur un graphique, ajoutez ce script à vos favoris - en savoir plus ici.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit de TradingView, le créateur de ce script l'a rendu open-source, afin que les traders puissent examiner et vérifier sa fonctionnalité. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais n'oubliez pas que la republication du code est soumise à nos Règles.
Pour un accès rapide sur un graphique, ajoutez ce script à vos favoris - en savoir plus ici.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.