OPEN-SOURCE SCRIPT

Pure Mag 7 Matrix Momentum Engine v6

274
### Overview

The **Pure Magnificent Seven Institutional Matrix Engine v6** is an intraday tape-reading and sector-breadth cockpit engineered for fast index futures execution (NQ/MNQ). Instead of analyzing isolated, lagging price points on a single instrument, this script isolates the core order flow driving the entire tech ecosystem. It tracks an equal-weighted composite return of the seven dominant mega-cap tech anchors (NVDA, AAPL, MSFT, AMZN, GOOGL, META, TSLA) that control roughly 40-50% of the aggregate Nasdaq-100 index weighting. 

To protect system memory and ensure absolute zero lag on lower timeframes like the 1-minute and 5-minute charts, the code calculates percentage changes dynamically using timeframe.period price streams relative to a daily open reference anchor. This architecture auto-resolves global exchanges natively, completely removing the system crash and "Invalid Symbol" errors common in multi-asset indicators. 

### Structural Mechanics & Visual Layout

### 1. Real-Time Data Participation Matrix (Top-Right Table)

* **The Counter**: Explicitly metrics how many of the 7 structural anchors are trading in a positive daily premium at that exact split-second (e.g., 5 / 7).
* **The Cells**: Color-coded ticker grids print the exact intraday percentage return of each stock (Green = Up, Red = Down).
* **The Header**: Automatically shifts colors based on market breadth (Green for broad buying pressure, Orange for mixed conditions, Red for severe distribution).

### 2. Master Momentum Signal Line

* **Visual Profile**: High-visibility Neon Green above equilibrium; deeply muted Forest Green below equilibrium.
* **Formula**: A refined 9-period EMA smoothing filter applied straight to the real-time equal-weighted aggregate return of the group.
* **Utility**: Signals the real force behind NQ movements. If the line is high and glowing, tech is operating at a structural intraday premium.

### 3. Bounded Institutional RVOL Gauge (The Volume Floor)

* **Visual Profile**: Fixed, bounded visual grid scale (-0.5 to -2.5) projecting down from the zero-line to guarantee it never physically overlaps or distorts your trend signals.
* **Formula**: Aggregated volume of all 7 stocks divided by their collective 20-period simple moving average volume (SMA).
* **Color Code**: Light/Dark Gray for typical retail churn. High-velocity institutional block trading bursts (1.5x to 2.5x+ above standard volume expectations for that precise minute) trigger an immediate shift into Bright Orange and Crimson Red bars.

### Core Execution Strategies

* **True Broad-Market Breakouts**: Look for vertical alignment. When the Master Momentum Line breaks above the 0.00 baseline (Neon Green), the volume floor drops to peak crimson depth (-2.5), and the matrix table displays **6 / 7** or **7 / 7 Up**. This registers a highly reliable broad-market breakout backed by systematic institutional accumulation.
* **The Mega-Cap "Solo Pump" Trap**: If NQ futures push to new session highs but the Matrix Table reads **1 / 7 Up** or **2 / 7 Up** (e.g., only NVIDIA is green while the rest are red), the indicator signals an artificial index pump. This divergence warns that broad market distribution is occurring, indicating a high-probability reversal environment.
* **Aggressive Liquidation Sweeps**: When the Master Line drops below the 0.00 baseline into a dark, muted tone while the volume bars hit max depth and the table turns heavily red, it confirms an institutional momentum flush, signaling highly optimal conditions for trailing systematic short entries.

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.