OPEN-SOURCE SCRIPT
Matt's Multi-Timeframe MACD Direction Alert

The indicator monitors the direction of the Moving Average Convergence Divergence (MACD) lines on four specific timeframes: 1-hour, 15-minute, 5-minute, and 1-minute.
It only generates a signal when the MACD in all four timeframes is trending in the same direction (either all are bullish, or all are bearish). This alignment suggests a strong, synchronized market momentum from short-term scalping views up to immediate-term swing views.
Key Features:
Multi-Timeframe Confirmation: Uses TradingView's request.security() function to fetch data from different timeframes (1h, 15m, 5m, 1m), preventing the need to manually switch charts.
Visual Dashboard: A dashboard table is displayed on your chart, providing an immediate visual status (Bullish/Bearish/Neutral) for each of the four timeframes.
On-Chart Signals: The indicator plots visual shapes (green triangles for bullish alignment, red triangles for bearish alignment) directly on the sub-chart when the condition is met.
Custom Alert Integration: It includes a built-in alertcondition() function, allowing traders to set up real-time, hands-free notifications whenever a synchronized trading opportunity arises.
This tool helps filter out noise and potential false signals that might appear on a single timeframe, focusing instead on robust signals confirmed by a consensus of time perspectives.
It only generates a signal when the MACD in all four timeframes is trending in the same direction (either all are bullish, or all are bearish). This alignment suggests a strong, synchronized market momentum from short-term scalping views up to immediate-term swing views.
Key Features:
Multi-Timeframe Confirmation: Uses TradingView's request.security() function to fetch data from different timeframes (1h, 15m, 5m, 1m), preventing the need to manually switch charts.
Visual Dashboard: A dashboard table is displayed on your chart, providing an immediate visual status (Bullish/Bearish/Neutral) for each of the four timeframes.
On-Chart Signals: The indicator plots visual shapes (green triangles for bullish alignment, red triangles for bearish alignment) directly on the sub-chart when the condition is met.
Custom Alert Integration: It includes a built-in alertcondition() function, allowing traders to set up real-time, hands-free notifications whenever a synchronized trading opportunity arises.
This tool helps filter out noise and potential false signals that might appear on a single timeframe, focusing instead on robust signals confirmed by a consensus of time perspectives.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.