PROTECTED SOURCE SCRIPT
Improved GammaDelta Edge - VPA Volume Angles

This is an advanced, neutral order flow observation tool that combines geometric angle analysis (Gamma & Delta) at highs/lows — normalized by ATR — with Volume Price Analysis (VPA) concepts, Cumulative Volume Delta (CVD), directional volume from lower timeframes, and simplified Random Walk Index (RWI) trend context.
Important: This indicator is designed for educational and market structure observation purposes only. It does not generate buy or sell signals, nor does it predict price direction. Use it to better understand potential absorption, churning, or order flow imbalances in context.
Key Features:
Gamma & Delta Angles — Calculates geometric angles over a user-defined period (default 55 bars) at the midpoint of highs and lows. Gamma (360° - theta) highlights potential weakness when >180° at highs; Delta (theta) when <180° at lows. Visualized with dashed guide lines and degree labels.
Directional Volume & CVD — Pulls up/down volume from a lower timeframe (default 1-min) to compute real delta and cumulative volume delta (plotted as green/red line).
VPA-Inspired Bar Classification — Detects high/low volume spikes (SMA + std dev), wide/narrow spreads, and close position (up/down/mid) within the bar.
Strength Band — Colored columns showing potential absorption/churning: green for positive delta + high vol + up close; orange for negative; blue neutral.
High Volume Lines — Dotted yellow vertical lines on significant volume bars (extend right, limited to 100 for performance).
RWI Trend Context — Simplified Random Walk Index (short/long periods) to classify major trend (Up/Down/Neutral) and minor direction.
Status Table — Clean summary in top-right corner: Spread, Volume, Close Position, Delta value, Trend status.
Neutral Alerts — Conditions for gamma > threshold, delta < threshold, high/low volume events.
Fully customizable inputs: period, thresholds, colors, visibility toggles, RWI ranges, etc.
How the Angles Work (Core Innovation):
The script forms a triangle with points A (current bar), B (midpoint ~P/2 bars ago), C (P bars ago). It computes the angle at B using vector math and normalizes price differences by ATR to make it scale-independent across symbols and timeframes. This geometric approach helps spot when price action is "fighting" or being absorbed at extremes.
Originality:
While inspired by classic Volume Spread Analysis (VSA) and Random Walk Index ideas, the core contribution is the ATR-normalized geometric angle calculation for order flow visualization — something not commonly available in public scripts. The integration of lower-TF directional volume, strength detection, and trend context creates a cohesive observational framework.
Usage Tips:
Best on liquid markets like BTCUSD, major forex, indices.
Combine with your own price action/context — angles work well at swing highs/lows or during trend exhaustion.
Test different periods (shorter for intraday, longer for swings).
CVD helps confirm cumulative buying/selling pressure over time.
Limitations:
Relies on historical data (max_bars_back=500); may not load fully on very low timeframes with limited history.
Angles are retrospective and can repaint until the period completes.
Volume data quality depends on the exchange/feed (use consistent lower TF).
Not optimized for illiquid or low-volume symbols.

Detailed view during a strong down move in BTCUSD. Shows gamma 112° and delta 173.3° labels (red when alerting), dashed guide lines, strength band columns, negative CVD line, multiple high-volume yellow dotted lines, and status table confirming Major Down trend with down close and negative delta.

Captures the top of a rally turning into a sharp decline. Highlights gamma 172.4° and delta 162.6° (both alerting red), narrow spread classification, major down trend via RWI, negative delta (-46), and high-volume lines at key reversal bars.

Broader view of the major downtrend in BTCUSD. Displays gamma 171° and delta 189° labels (strong alert at lows), neutral major trend with minor down bias, persistent negative CVD, and high-volume spikes during the decline — ideal for spotting potential exhaustion or support zones.
Important: This indicator is designed for educational and market structure observation purposes only. It does not generate buy or sell signals, nor does it predict price direction. Use it to better understand potential absorption, churning, or order flow imbalances in context.
Key Features:
Gamma & Delta Angles — Calculates geometric angles over a user-defined period (default 55 bars) at the midpoint of highs and lows. Gamma (360° - theta) highlights potential weakness when >180° at highs; Delta (theta) when <180° at lows. Visualized with dashed guide lines and degree labels.
Directional Volume & CVD — Pulls up/down volume from a lower timeframe (default 1-min) to compute real delta and cumulative volume delta (plotted as green/red line).
VPA-Inspired Bar Classification — Detects high/low volume spikes (SMA + std dev), wide/narrow spreads, and close position (up/down/mid) within the bar.
Strength Band — Colored columns showing potential absorption/churning: green for positive delta + high vol + up close; orange for negative; blue neutral.
High Volume Lines — Dotted yellow vertical lines on significant volume bars (extend right, limited to 100 for performance).
RWI Trend Context — Simplified Random Walk Index (short/long periods) to classify major trend (Up/Down/Neutral) and minor direction.
Status Table — Clean summary in top-right corner: Spread, Volume, Close Position, Delta value, Trend status.
Neutral Alerts — Conditions for gamma > threshold, delta < threshold, high/low volume events.
Fully customizable inputs: period, thresholds, colors, visibility toggles, RWI ranges, etc.
How the Angles Work (Core Innovation):
The script forms a triangle with points A (current bar), B (midpoint ~P/2 bars ago), C (P bars ago). It computes the angle at B using vector math and normalizes price differences by ATR to make it scale-independent across symbols and timeframes. This geometric approach helps spot when price action is "fighting" or being absorbed at extremes.
Originality:
While inspired by classic Volume Spread Analysis (VSA) and Random Walk Index ideas, the core contribution is the ATR-normalized geometric angle calculation for order flow visualization — something not commonly available in public scripts. The integration of lower-TF directional volume, strength detection, and trend context creates a cohesive observational framework.
Usage Tips:
Best on liquid markets like BTCUSD, major forex, indices.
Combine with your own price action/context — angles work well at swing highs/lows or during trend exhaustion.
Test different periods (shorter for intraday, longer for swings).
CVD helps confirm cumulative buying/selling pressure over time.
Limitations:
Relies on historical data (max_bars_back=500); may not load fully on very low timeframes with limited history.
Angles are retrospective and can repaint until the period completes.
Volume data quality depends on the exchange/feed (use consistent lower TF).
Not optimized for illiquid or low-volume symbols.
Detailed view during a strong down move in BTCUSD. Shows gamma 112° and delta 173.3° labels (red when alerting), dashed guide lines, strength band columns, negative CVD line, multiple high-volume yellow dotted lines, and status table confirming Major Down trend with down close and negative delta.
Captures the top of a rally turning into a sharp decline. Highlights gamma 172.4° and delta 162.6° (both alerting red), narrow spread classification, major down trend via RWI, negative delta (-46), and high-volume lines at key reversal bars.
Broader view of the major downtrend in BTCUSD. Displays gamma 171° and delta 189° labels (strong alert at lows), neutral major trend with minor down bias, persistent negative CVD, and high-volume spikes during the decline — ideal for spotting potential exhaustion or support zones.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarle liberamente e senza alcuna limitazione – ulteriori informazioni qui.
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.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarle liberamente e senza alcuna limitazione – ulteriori informazioni qui.
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.