OPEN-SOURCE SCRIPT
Volume & Volatility Companion

█ VOLUME & VOLATILITY COMPANION (VVC) [FREE]
Complete Volume Dynamics & Volatility Analysis
A comprehensive overlay indicator that combines anchored VWAP with standard-deviation bands, Bollinger Squeeze detection, volume strength analysis, and session level tracking — all with automatic timeframe adaptation. It gives you a complete read on volume dynamics and volatility conditions directly on your price chart.
Free and Open Source.
█ THE CONCEPT: WHY VOLUME + VOLATILITY TOGETHER?
Volume and volatility are the two most overlooked edges in technical analysis. Price alone only tells half the story. Volume confirms conviction — a breakout on high volume is real, on low volume it's suspect. Volatility compression (squeeze) precedes explosive moves. VVC brings both dimensions together in one overlay so you never miss these critical signals.
█ CORE FEATURES
1. VWAP + Standard Deviation Bands
The Volume-Weighted Average Price acts as the institutional fair-value anchor:
Configurable anchor period: Session (daily), Week, or Month.
2. Bollinger Squeeze Detection
Detects the classic volatility compression setup where Bollinger Bands contract inside Keltner Channels:
Momentum direction at release determines the breakout bias.
3. Volume Analysis
Classifies each bar's volume relative to its moving average:
4. Session Levels
Key reference levels plotted directly on the chart:
5. Auto-Timeframe Adaptation
All calculation parameters automatically adjust to your chart timeframe. Toggle to manual mode for full control.
█ DASHBOARD
A compact, dark-themed info panel showing:
█ ALERTS (4 CONDITIONS)
█ PRO VERSION
The PRO version adds:
█ NON-REPAINTING
VWAP uses cumulative volume data (non-repainting by design). Bollinger Squeeze uses standard BB/KC calculations. Volume analysis uses simple moving average. Previous day levels use confirmed daily data. No repainting.
█ WORKS ON
Crypto, Forex, Stocks, Futures, Indices — any timeframe from 1 minute to Weekly+.
█ DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice. Always do your own research and manage your risk. Past performance does not guarantee future results. Trading involves substantial risk of loss.
Complete Volume Dynamics & Volatility Analysis
A comprehensive overlay indicator that combines anchored VWAP with standard-deviation bands, Bollinger Squeeze detection, volume strength analysis, and session level tracking — all with automatic timeframe adaptation. It gives you a complete read on volume dynamics and volatility conditions directly on your price chart.
Free and Open Source.
█ THE CONCEPT: WHY VOLUME + VOLATILITY TOGETHER?
Volume and volatility are the two most overlooked edges in technical analysis. Price alone only tells half the story. Volume confirms conviction — a breakout on high volume is real, on low volume it's suspect. Volatility compression (squeeze) precedes explosive moves. VVC brings both dimensions together in one overlay so you never miss these critical signals.
█ CORE FEATURES
1. VWAP + Standard Deviation Bands
The Volume-Weighted Average Price acts as the institutional fair-value anchor:
- VWAP Line — Dynamic equilibrium price. Institutions track this level religiously.
- Band 1 (1 StdDev) — Inner value zone. Mean-reversion entries when price touches and bounces.
- Band 2 (2 StdDev) — Outer extreme zone. Overextension signals when price reaches here.
Configurable anchor period: Session (daily), Week, or Month.
2. Bollinger Squeeze Detection
Detects the classic volatility compression setup where Bollinger Bands contract inside Keltner Channels:
- Squeeze ON (red dots) — BB inside KC = low volatility, energy building
- Squeeze OFF (cyan dots) — Normal volatility
- Squeeze Release (diamond markers) — BB breaks out of KC after sustained compression = breakout imminent
Momentum direction at release determines the breakout bias.
3. Volume Analysis
Classifies each bar's volume relative to its moving average:
- EXTREME — Volume > 2.5x average (institutional footprint)
- HIGH — Volume > 1.5x average (above-average interest)
- NORMAL — Average range
- LOW — Volume < 0.5x average (thin market, low conviction)
4. Session Levels
Key reference levels plotted directly on the chart:
- Session High/Low — Current intraday range boundaries
- Previous Day High/Low — Breakout/rejection levels
- Previous Day Close — Settlement level (bias reference)
5. Auto-Timeframe Adaptation
All calculation parameters automatically adjust to your chart timeframe. Toggle to manual mode for full control.
█ DASHBOARD
A compact, dark-themed info panel showing:
- VWAP — Current position (ABOVE / BELOW / AT) + value
- Squeeze — ON with bar count or OFF
- BB Width — Percentage bandwidth for volatility context
- Volume — Classification (EXTREME / HIGH / NORMAL / LOW) + ratio vs MA
- Session — Current session range in price units
█ ALERTS (4 CONDITIONS)
- Bullish Squeeze Release — Squeeze fires with upward momentum
- Bearish Squeeze Release — Squeeze fires with downward momentum
- Squeeze Building — Consecutive squeeze bars hit threshold
- Extreme Volume — Detected on any bar
█ PRO VERSION
The PRO version adds:
- MACD Analysis — Full MACD with signal/zero crossovers and divergence detection
- Cumulative Volume Delta (CVD) — Net buying/selling pressure tracking
- Bull/Bear Confluence Scoring — Combined score from all modules for directional bias
- 5 Additional Alerts — MACD crosses, volume confirmation signals
█ NON-REPAINTING
VWAP uses cumulative volume data (non-repainting by design). Bollinger Squeeze uses standard BB/KC calculations. Volume analysis uses simple moving average. Previous day levels use confirmed daily data. No repainting.
█ WORKS ON
Crypto, Forex, Stocks, Futures, Indices — any timeframe from 1 minute to Weekly+.
█ DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice. Always do your own research and manage your risk. Past performance does not guarantee future results. Trading involves substantial risk of loss.
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.