PROTECTED SOURCE SCRIPT
Cập nhật Institutional Options Matrix [Pro]

# Institutional Options Matrix [Pro] – Whale Flow & Gamma Detector
### 🚀 Stop Trading Single Strikes. Start Trading the Matrix.
Most retail traders make a critical mistake: they analyze a single option strike in isolation. **Institutional Desks do not trade this way.** They trade the volatility surface, sweeping liquidity across the ATM (At-The-Money) and OTM (Out-Of-The-Money) strikes simultaneously.
The **Institutional Options Matrix [Pro]** is designed to bridge the gap between retail charts and institutional order flow. It does not just look at price; it aggregates **Volume Pressure, Delta Sensitivity, and Implied Volatility** across a cluster of strikes to detect when "Whales" are positioning for a move.
---
### 🧠 The Quant Logic (How it Works)
This indicator moves beyond simple Moving Averages. It employs **Multi-Strike Cluster Analysis**:
1. **Aggregate Volume Pressure:** Instead of watching just the ATM strike, this algorithm sums the volume of the **ATM + OTM1 + OTM2** strikes. This reveals the true "Sector Sentiment." If the ATM volume is low but OTM volume is spiking, the indicator detects "Speculative Accumulation."
2. **Net Order Flow Histogram:** The histogram at the bottom visualizes the net battle between Call Writers and Put Writers.
* **Green Columns:** Net Call Buying Pressure.
* **Red Columns:** Net Put Buying Pressure.
3. **Smoothed Gamma Detector:** Using a custom smoothing algorithm on Spot vs. Option pricing, the script calculates the rate of change (Gamma). When this spikes, it triggers a **"Gamma Zone"** (Yellow Background), indicating that price is accelerating and Market Makers are likely trapped.
4. **Smart Strike Alignment:** The dashboard monitors the live Spot price. If the market moves significantly away from your selected strike, the dashboard alerts you to **"⚠️ SHIFT TO [New Strike]"**, ensuring you are never trading stale data.
---
### 📊 Key Features
* **Whale Flow Histogram:** Visualizes the aggregate pressure of the top 3 strikes.
* **Gamma Squeeze Zones:** Highlights explosive momentum areas with a yellow background.
* **Dynamic Dashboard:** Displays real-time ATM pricing, Aggregated Volume, and Strike status.
* **Speculation Alerts:** Detects when volume is spiking on OTM strikes (a leading indicator of a breakout).
* **Clean Visuals:** Plots Call (Green) and Put (Red) premiums directly on the chart with simple Buy/Sell triangular signals.
---
### 🛠️ How to Use
**1. Setup:**
* **Asset:** Select Index (NIFTY, BANKNIFTY) or Stock.
* **Expiry:** Enter the current expiry in `YYMMDD` format (e.g., `251212`).
* **Strike:** Enter the current ATM strike manually (e.g., `24500`).
* *Note: Check the dashboard! If it says "⚠️ SHIFT TO...", update your inputs.*
**2. Long Entry (Call Buy):**
* **Signal:** Green Triangle (Call Entry).
* **Confirmation:** Net Flow Histogram is **GREEN** (Positive).
* **Price:** Call Premium (Green Line) crosses above its VWAP.
**3. Short Entry (Put Buy):**
* **Signal:** Red Triangle (Put Entry).
* **Confirmation:** Net Flow Histogram is **RED** (Negative).
* **Price:** Put Premium (Red Line) crosses above its VWAP.
**4. The Gamma Boost:**
* If the background turns **YELLOW**, a Gamma Squeeze is active. These are high-probability, high-velocity moves.
---
### ⚠️ Disclaimer
*This tool is for educational purposes only. Options trading involves significant risk and is not suitable for all investors. This script relies on data provided by TradingView (NSE); delayed data may affect signal accuracy. Always manage your risk.*
### 🚀 Stop Trading Single Strikes. Start Trading the Matrix.
Most retail traders make a critical mistake: they analyze a single option strike in isolation. **Institutional Desks do not trade this way.** They trade the volatility surface, sweeping liquidity across the ATM (At-The-Money) and OTM (Out-Of-The-Money) strikes simultaneously.
The **Institutional Options Matrix [Pro]** is designed to bridge the gap between retail charts and institutional order flow. It does not just look at price; it aggregates **Volume Pressure, Delta Sensitivity, and Implied Volatility** across a cluster of strikes to detect when "Whales" are positioning for a move.
---
### 🧠 The Quant Logic (How it Works)
This indicator moves beyond simple Moving Averages. It employs **Multi-Strike Cluster Analysis**:
1. **Aggregate Volume Pressure:** Instead of watching just the ATM strike, this algorithm sums the volume of the **ATM + OTM1 + OTM2** strikes. This reveals the true "Sector Sentiment." If the ATM volume is low but OTM volume is spiking, the indicator detects "Speculative Accumulation."
2. **Net Order Flow Histogram:** The histogram at the bottom visualizes the net battle between Call Writers and Put Writers.
* **Green Columns:** Net Call Buying Pressure.
* **Red Columns:** Net Put Buying Pressure.
3. **Smoothed Gamma Detector:** Using a custom smoothing algorithm on Spot vs. Option pricing, the script calculates the rate of change (Gamma). When this spikes, it triggers a **"Gamma Zone"** (Yellow Background), indicating that price is accelerating and Market Makers are likely trapped.
4. **Smart Strike Alignment:** The dashboard monitors the live Spot price. If the market moves significantly away from your selected strike, the dashboard alerts you to **"⚠️ SHIFT TO [New Strike]"**, ensuring you are never trading stale data.
---
### 📊 Key Features
* **Whale Flow Histogram:** Visualizes the aggregate pressure of the top 3 strikes.
* **Gamma Squeeze Zones:** Highlights explosive momentum areas with a yellow background.
* **Dynamic Dashboard:** Displays real-time ATM pricing, Aggregated Volume, and Strike status.
* **Speculation Alerts:** Detects when volume is spiking on OTM strikes (a leading indicator of a breakout).
* **Clean Visuals:** Plots Call (Green) and Put (Red) premiums directly on the chart with simple Buy/Sell triangular signals.
---
### 🛠️ How to Use
**1. Setup:**
* **Asset:** Select Index (NIFTY, BANKNIFTY) or Stock.
* **Expiry:** Enter the current expiry in `YYMMDD` format (e.g., `251212`).
* **Strike:** Enter the current ATM strike manually (e.g., `24500`).
* *Note: Check the dashboard! If it says "⚠️ SHIFT TO...", update your inputs.*
**2. Long Entry (Call Buy):**
* **Signal:** Green Triangle (Call Entry).
* **Confirmation:** Net Flow Histogram is **GREEN** (Positive).
* **Price:** Call Premium (Green Line) crosses above its VWAP.
**3. Short Entry (Put Buy):**
* **Signal:** Red Triangle (Put Entry).
* **Confirmation:** Net Flow Histogram is **RED** (Negative).
* **Price:** Put Premium (Red Line) crosses above its VWAP.
**4. The Gamma Boost:**
* If the background turns **YELLOW**, a Gamma Squeeze is active. These are high-probability, high-velocity moves.
---
### ⚠️ Disclaimer
*This tool is for educational purposes only. Options trading involves significant risk and is not suitable for all investors. This script relies on data provided by TradingView (NSE); delayed data may affect signal accuracy. Always manage your risk.*
Phát hành các Ghi chú
MFMã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.