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.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。