OPEN-SOURCE SCRIPT
Momentum Fusion Index: Dual-MTF RSI & MACD

[MFI] Momentum Fusion Index: Dual-MTF RSI & MACD
The Momentum Fusion Index (MFI) is a high-performance hybrid engine that merges the precision of RSI with the trend-following power of MACD into a unified, noise-filtered oscillator. This version introduces Dual-MTF (Multi-Timeframe) Logic, allowing traders to bridge the gap between short-term execution and long-term trend direction within a single indicator panel.
🚀 Key Features
* Dual-MTF Engine: Analyze two timeframes simultaneously. Stay on your execution chart (e.g., 5m or 15m) while monitoring the high-level momentum (e.g., 1H or 4H) on a secondary, non-intrusive line.
* Symmetrical Fusion Logic: Standard RSI (0–100) and MACD (unbounded) are mathematically transformed into a balanced -100 to +100 scale, providing a standardized environment for momentum analysis.
* Dynamic Normalization: The script utilizes a 200-bar Normalization Range to anchor the MACD within fixed boundaries, making it easy to identify historical extremes and exhaustion points.
* Directional Adaptive Coloring: The primary signal line changes color based on its trajectory. Bright Green signals accelerating bullish momentum, while Vibrant Red signals a momentum slowdown or bearish shift.
🧠 Mathematical Logic
The MFI operates by calculating the relative position of the MACD within its recent range and merging it with a centered RSI. This ensures that the oscillator doesn't just show if a trend is "up," but how much "power" is behind that move relative to both price history and oscillator strength. By fusing these two, it offsets the lagging nature of MACD with the leading characteristics of RSI.
🛠️ How to Use
1. Confluence Trading: Enable the Secondary Timeframe in settings. When both the Primary (thick) and Secondary (thin) lines align in the same direction above or below the Zero Line, you have a high-probability momentum setup.
2. The Zero-Line Pivot: Crosses above the Zero Balance Line mark bullish transitions, while crosses below mark bearish momentum shifts.
3. The Power Zones (±50): Momentum is considered "High Conviction" when the line sustains itself above +50 (Strong Bull) or below -50 (Strong Bear).
4. Momentum Exhaustion: When the Fusion line hits the ±100 Extremes, watch for price exhaustion and potential mean-reversion.
⚙️ Settings
* Primary Timeframe: Set the main calculation TF. Leave empty to auto-lock to your current chart.
* Secondary Timeframe (MTF 2): Toggle this on to overlay a second time-period (e.g., Daily) for macro trend confirmation.
* Fusion Core: Customize RSI periods and MACD EMA lengths to suit your specific asset.
* Smoothing: Adjust the Fusion Smoothing to filter out noise or increase responsiveness.
📌 Credits & Origins
This work is a synthesis of the foundational mathematics pioneered by J. Welles Wilder (RSI) and Gerald Appel (MACD). It is designed for traders who require a mathematically grounded, unified view of market strength.
Disclaimer: All indicators are probabilistic. The Momentum Fusion Index is a decision-support tool and does not guarantee profits. Always use stop-losses and follow your risk management plan.
The Momentum Fusion Index (MFI) is a high-performance hybrid engine that merges the precision of RSI with the trend-following power of MACD into a unified, noise-filtered oscillator. This version introduces Dual-MTF (Multi-Timeframe) Logic, allowing traders to bridge the gap between short-term execution and long-term trend direction within a single indicator panel.
🚀 Key Features
* Dual-MTF Engine: Analyze two timeframes simultaneously. Stay on your execution chart (e.g., 5m or 15m) while monitoring the high-level momentum (e.g., 1H or 4H) on a secondary, non-intrusive line.
* Symmetrical Fusion Logic: Standard RSI (0–100) and MACD (unbounded) are mathematically transformed into a balanced -100 to +100 scale, providing a standardized environment for momentum analysis.
* Dynamic Normalization: The script utilizes a 200-bar Normalization Range to anchor the MACD within fixed boundaries, making it easy to identify historical extremes and exhaustion points.
* Directional Adaptive Coloring: The primary signal line changes color based on its trajectory. Bright Green signals accelerating bullish momentum, while Vibrant Red signals a momentum slowdown or bearish shift.
🧠 Mathematical Logic
The MFI operates by calculating the relative position of the MACD within its recent range and merging it with a centered RSI. This ensures that the oscillator doesn't just show if a trend is "up," but how much "power" is behind that move relative to both price history and oscillator strength. By fusing these two, it offsets the lagging nature of MACD with the leading characteristics of RSI.
🛠️ How to Use
1. Confluence Trading: Enable the Secondary Timeframe in settings. When both the Primary (thick) and Secondary (thin) lines align in the same direction above or below the Zero Line, you have a high-probability momentum setup.
2. The Zero-Line Pivot: Crosses above the Zero Balance Line mark bullish transitions, while crosses below mark bearish momentum shifts.
3. The Power Zones (±50): Momentum is considered "High Conviction" when the line sustains itself above +50 (Strong Bull) or below -50 (Strong Bear).
4. Momentum Exhaustion: When the Fusion line hits the ±100 Extremes, watch for price exhaustion and potential mean-reversion.
⚙️ Settings
* Primary Timeframe: Set the main calculation TF. Leave empty to auto-lock to your current chart.
* Secondary Timeframe (MTF 2): Toggle this on to overlay a second time-period (e.g., Daily) for macro trend confirmation.
* Fusion Core: Customize RSI periods and MACD EMA lengths to suit your specific asset.
* Smoothing: Adjust the Fusion Smoothing to filter out noise or increase responsiveness.
📌 Credits & Origins
This work is a synthesis of the foundational mathematics pioneered by J. Welles Wilder (RSI) and Gerald Appel (MACD). It is designed for traders who require a mathematically grounded, unified view of market strength.
Disclaimer: All indicators are probabilistic. The Momentum Fusion Index is a decision-support tool and does not guarantee profits. Always use stop-losses and follow your risk management plan.
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.