OPEN-SOURCE SCRIPT
CVD Table + Alerts

📌 Overview
CVD Table + Alerts is a pure order-flow indicator designed to track real buying and selling pressure using Cumulative Volume Delta (CVD).
It highlights momentum shifts and institutional participation through precise, non-repainting alerts, without cluttering your chart with unnecessary visuals.
This indicator does not predict price — it reveals what large participants are actually doing.
🔍 What This Indicator Does
1️⃣ Cumulative Volume Delta (CVD)
Calculates CVD by separating volume into:
Buying volume (close ≥ open)
Selling volume (close < open)
Accumulates this data to show net demand vs supply over time.
This allows traders to see:
Whether moves are sponsored or weak
If price is rising on real buying or just drifting
2️⃣ CVD Flip Detection (Momentum Shift)
The indicator detects when:
CVD changes direction from the previous candle
This represents:
Shift from buyers → sellers
OR sellers → buyers
👉 Acts as an early warning signal before visible price structure changes like ChoCH or BOS.
3️⃣ CVD Burst Detection (Institutional Activity)
A CVD Burst alert triggers when:
The current CVD delta is abnormally large compared to recent averages
This typically signals:
Aggressive market orders
Institutional participation
Potential trend ignition
🔔 Alerts (Exact & Reliable)
This indicator generates only two alert types:
🔹 CVD Flip Alert
Triggered when order-flow direction changes.
CVD Flip! CVD: <value> | Δ: <delta> | Direction: ↑ / ↓
🔹 CVD Burst Alert
Triggered when sudden volume imbalance appears.
CVD Burst! CVD: <value> | Δ: <delta> | Direction: ↑ / ↓
Alert Behavior
✅ Fires only on candle close
✅ No repainting
✅ No historical spam
✅ One alert per bar maximum
📊 CVD Table (At-a-Glance Insight)
The built-in table shows:
Recent volume
CVD values
Delta direction (↑ / ↓)
Percentage change
Highlights major bull/bear deltas
This gives traders instant context without switching indicators.
🎯 How Traders Benefit
This indicator is best used as a confirmation and context tool, not a standalone strategy.
Ideal Use Cases:
Confirm ChoCH / BOS
Validate EMA-based trend direction
Filter false breakouts at S/R, Gann, Fib, VWAP
Identify trend days vs range days
Spot divergence between price and participation
Best Paired With:
EMA / trend filters
Market structure (ChoCH, BOS)
Support & Resistance
ATR / volatility analysis
⚠️ Important Notes
This is not a buy/sell signal generator
Designed for discretionary traders
Works best in liquid markets (indices, large caps, crypto majors)
🧠 Trading Philosophy
Price shows where it moved.
CVD shows who moved it.
This indicator helps you trade with participation, not hope.
CVD Table + Alerts is a pure order-flow indicator designed to track real buying and selling pressure using Cumulative Volume Delta (CVD).
It highlights momentum shifts and institutional participation through precise, non-repainting alerts, without cluttering your chart with unnecessary visuals.
This indicator does not predict price — it reveals what large participants are actually doing.
🔍 What This Indicator Does
1️⃣ Cumulative Volume Delta (CVD)
Calculates CVD by separating volume into:
Buying volume (close ≥ open)
Selling volume (close < open)
Accumulates this data to show net demand vs supply over time.
This allows traders to see:
Whether moves are sponsored or weak
If price is rising on real buying or just drifting
2️⃣ CVD Flip Detection (Momentum Shift)
The indicator detects when:
CVD changes direction from the previous candle
This represents:
Shift from buyers → sellers
OR sellers → buyers
👉 Acts as an early warning signal before visible price structure changes like ChoCH or BOS.
3️⃣ CVD Burst Detection (Institutional Activity)
A CVD Burst alert triggers when:
The current CVD delta is abnormally large compared to recent averages
This typically signals:
Aggressive market orders
Institutional participation
Potential trend ignition
🔔 Alerts (Exact & Reliable)
This indicator generates only two alert types:
🔹 CVD Flip Alert
Triggered when order-flow direction changes.
CVD Flip! CVD: <value> | Δ: <delta> | Direction: ↑ / ↓
🔹 CVD Burst Alert
Triggered when sudden volume imbalance appears.
CVD Burst! CVD: <value> | Δ: <delta> | Direction: ↑ / ↓
Alert Behavior
✅ Fires only on candle close
✅ No repainting
✅ No historical spam
✅ One alert per bar maximum
📊 CVD Table (At-a-Glance Insight)
The built-in table shows:
Recent volume
CVD values
Delta direction (↑ / ↓)
Percentage change
Highlights major bull/bear deltas
This gives traders instant context without switching indicators.
🎯 How Traders Benefit
This indicator is best used as a confirmation and context tool, not a standalone strategy.
Ideal Use Cases:
Confirm ChoCH / BOS
Validate EMA-based trend direction
Filter false breakouts at S/R, Gann, Fib, VWAP
Identify trend days vs range days
Spot divergence between price and participation
Best Paired With:
EMA / trend filters
Market structure (ChoCH, BOS)
Support & Resistance
ATR / volatility analysis
⚠️ Important Notes
This is not a buy/sell signal generator
Designed for discretionary traders
Works best in liquid markets (indices, large caps, crypto majors)
🧠 Trading Philosophy
Price shows where it moved.
CVD shows who moved it.
This indicator helps you trade with participation, not hope.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
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ã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
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.