OPEN-SOURCE SCRIPT
Aggiornato

Momentum Matrix [LIVE]

846
### Introduction
Welcome to Momentum Matrix [LIVE], a multi-dimensional momentum and volatility confluence engine. This indicator combines Linear Geometry (Moving Average Slope) with Derivative Volatility Breakouts (Bollinger Bands applied to a custom MACD line) to create a rigorous, two-step verification system designed to identify high-probability trend expansions while filtering out low-volume market noise and chop.

### How It Works

1. **The Core Trend (MA Angle):** The script normalizes a moving average using an Average True Range (ATR) calculation to determine its precise geometric angle. It flags the trend as bullish or bearish only when the moving average breaks past a user-defined threshold (e.g., 6°), turning flat ranges grey (**No Trade Zone**).
2. **The Volatility Trigger (MACD BB):** A custom MACD line is tracked natively against standard deviation Bollinger Bands. When momentum expands, the MACD line punches outside the bands.
3. **The Confluence Signal:** When **both** systems simultaneously turn bright green or bright red, the script prints a distinct **Confluence Dot** on the zero line, signaling an institutional momentum breakout.

---

### Key Use Cases

*🚀 **Squeeze Play & Volatility Breakout Entries***
Entering the trade on the first Confluence Dot catches the absolute beginning of a macro trend expansion.

*📈 **High-Probability Trend Following***
As long as the lines and histograms stay locked in solid green or red, it proves that the velocity of the move is being actively sustained by volume.


*⚠️ **False Breakout Filter (Staying Out of Chop)***

Many traders lose money by buying a breakout on the price chart, only for it to immediately reverse. This indicator acts as a gatekeeper. If price makes a sudden spike upward, the MACD might briefly flash green. However, if the broader Moving Average Angle remains flat and stuck in the "No Trade Zone," the indicator refuses to print a buy dot, preventing FOMO entries.

*⏱️ **Scalping with the Live Delta Dashboard***
If an asset is moving up but the live angle change starts decaying (e.g., dropping from +2.5° down to +0.2°), it signals a hidden momentum loss—alerting you to take profits before the price action actually stalls out.

---

### Key Features
* **Adaptive MA Selection:** Swap between EMA, SMA, HMA, LSMA, ALMA, and McGinley.
* **Built-in Volatility Filter:** Bollinger Bands track the MACD line directly to confirm momentum expansion.
* **Live Statistics Table:** View current trend angles and live changes on every tick.
* **Strict Non-Repainting Signals:** Confluence triggers confirm at the close of the bar to ensure historical data accuracy.

---

### Credits & Acknowledgments
This script is a customized confluence engine built upon the excellent open-source work of two brilliant developers in the TradingView community. Special thanks to:
* **Mango2Juice** for the foundational logic behind the *Angle of Moving Averages* script.
* **Algokid** for the original concept and design of the *AK MACD BB indicator*.

This version modernizes the calculations into Pine Script v5, introduces a dynamic real-time tracking dashboard, and establishes a strict non-repainting mathematical handshake between both metrics.
Note di rilascio
🚀 Momentum Matrix [V2.0 Update]
This release focuses on stripping out code inefficiencies, fixing core engine bugs, and maximizing real-time precision for active traders.

Here is a breakdown of what has been completely overhauled:
🛠️ 1. The McGinley Dynamic Engine Fix
The McGinley filter now calculates with 100% mathematical precision across all history, offering ultra-smooth trend tracking.

⚡ 2. High-Performance SMMA Smoothing
Faster chart loading times, smoother scrolling, and zero lag when switching between asset classes.

🎯 3. Absolute Zero-Lag Confluence Triggers
Completely stripped out the lag! The green and red confluence triggers now evaluate the exact moment the current candle closes.

📐 4. Cleaned Up Signal Mechanics
Enhanced the underlying shape-plotting syntax so that confirmation triggers align perfectly along the center zero-line for a much cleaner, more professional interface.

Thank you for using the Momentum Matrix!

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.