PROTECTED SOURCE SCRIPT
Volume Imbalances & Gann's Square Indicator

Volume Imbalances & Gann's Square Indicator:
This script is a comprehensive trading toolkit designed to help intraday and swing traders identify high-probability trade setups by combining the strengths of Gann's Theory, price-volume analysis, and multi-indicator signal confirmation in one indicator.
Key Features and Their Roles:
Gann’s S/R Levels:
Calculates main and auxiliary support/resistance lines using Gann’s “odd square” approach based on the current price. Levels are projected historically and into the future to clearly visualize critical zones for potential reversals and breakouts.
Volume*Price (VP) Spike Table:
Detects and displays real-time buy and sell volume spikes above a configurable threshold, highlighting large market transactions. The on-chart table summarizes recent major spikes with time and price for context, resetting every session.
Multi-EMA & VWAP Logic:
Integrates three customizable EMAs, VWAP, and Supertrend. Users can toggle signals from EMA crossovers, price-VWAP positioning, or Supertrend direction to match their preferred trading style and filter signals for trend or mean-reversion strategies.
Buy/Sell Labels and Signal Source Control:
Clearly plots buy/sell marker labels with customizable text, color, and size, based on the chosen signal source (EMA cross, VWAP, Supertrend). Labels offset from candles for easy visibility.
First Candle Range & Session Tools:
Plots the initial range (high, low, and midpoint) of a user-defined session, helping visualize and trade session breakouts or range retests. Session logic ensures all statistical tables and levels reset at session start.
Automated Risk/Reward Table:
Instantly calculates capital allocation, stop-loss, potential quantity, and two profit targets for both long and short trades. Helps traders plan size and risk per trade in compliance with risk management principles.
Highest/Lowest VP Markers:
Highlights the day’s peak and trough volume*price values for context on institutional buying or selling pressure.
Previous Day Range Plotter:
Draws previous session’s high/low levels for reliable reference zones and potential trade targets.
Integration Rationale:
All components are thoughtfully integrated to provide a holistic decision-making workflow:
Volume/price spikes act as momentum or liquidity signals.
Gann levels define the “where” for reaction or breakout trades.
Signal logics (EMA/VWAP/Supertrend) answer the “when,” enabling higher-confidence entries only when multiple conditions align.
How to Use:
Select your preferred inputs for EMAs, VWAP, and risk settings in the panel.
Analyze the chart for signals where buy/sell labels align with fresh VP spikes near Gann or previous day support/resistance.
Use the risk/reward table for strict money management.
Reference spike tables and session range for contextual confirmation.
Visuals and Chart Guidance:
The script displays only essential tables, lines, and labels described above.
All chart elements are explained in this description—no external scripts needed for interpretation.
Each table and marker is linked to actionable trading logic, eliminating clutter.
Closed-source Explanation:
The indicator uses session-based calculations, real-time data arrays, and proprietary math to unify Gann theory logic, large transaction detection, and multi-indicator confirmation. All major trade conditions have alert signals for ready integration with TradingView’s alert system.
This script is a comprehensive trading toolkit designed to help intraday and swing traders identify high-probability trade setups by combining the strengths of Gann's Theory, price-volume analysis, and multi-indicator signal confirmation in one indicator.
Key Features and Their Roles:
Gann’s S/R Levels:
Calculates main and auxiliary support/resistance lines using Gann’s “odd square” approach based on the current price. Levels are projected historically and into the future to clearly visualize critical zones for potential reversals and breakouts.
Volume*Price (VP) Spike Table:
Detects and displays real-time buy and sell volume spikes above a configurable threshold, highlighting large market transactions. The on-chart table summarizes recent major spikes with time and price for context, resetting every session.
Multi-EMA & VWAP Logic:
Integrates three customizable EMAs, VWAP, and Supertrend. Users can toggle signals from EMA crossovers, price-VWAP positioning, or Supertrend direction to match their preferred trading style and filter signals for trend or mean-reversion strategies.
Buy/Sell Labels and Signal Source Control:
Clearly plots buy/sell marker labels with customizable text, color, and size, based on the chosen signal source (EMA cross, VWAP, Supertrend). Labels offset from candles for easy visibility.
First Candle Range & Session Tools:
Plots the initial range (high, low, and midpoint) of a user-defined session, helping visualize and trade session breakouts or range retests. Session logic ensures all statistical tables and levels reset at session start.
Automated Risk/Reward Table:
Instantly calculates capital allocation, stop-loss, potential quantity, and two profit targets for both long and short trades. Helps traders plan size and risk per trade in compliance with risk management principles.
Highest/Lowest VP Markers:
Highlights the day’s peak and trough volume*price values for context on institutional buying or selling pressure.
Previous Day Range Plotter:
Draws previous session’s high/low levels for reliable reference zones and potential trade targets.
Integration Rationale:
All components are thoughtfully integrated to provide a holistic decision-making workflow:
Volume/price spikes act as momentum or liquidity signals.
Gann levels define the “where” for reaction or breakout trades.
Signal logics (EMA/VWAP/Supertrend) answer the “when,” enabling higher-confidence entries only when multiple conditions align.
How to Use:
Select your preferred inputs for EMAs, VWAP, and risk settings in the panel.
Analyze the chart for signals where buy/sell labels align with fresh VP spikes near Gann or previous day support/resistance.
Use the risk/reward table for strict money management.
Reference spike tables and session range for contextual confirmation.
Visuals and Chart Guidance:
The script displays only essential tables, lines, and labels described above.
All chart elements are explained in this description—no external scripts needed for interpretation.
Each table and marker is linked to actionable trading logic, eliminating clutter.
Closed-source Explanation:
The indicator uses session-based calculations, real-time data arrays, and proprietary math to unify Gann theory logic, large transaction detection, and multi-indicator confirmation. All major trade conditions have alert signals for ready integration with TradingView’s alert system.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.