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 de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.