OPEN-SOURCE SCRIPT
Aggregated Volume Comparison

═══════════════════════════════════════════════════════════════════════════════
// AGGREGATED VOLUME COMPARISON - FULL DOCUMENTATION
═══════════════════════════════════════════════════════════════════════════════
Aggregated Volume Comparison is a multi-exchange volume aggregator that compares native volume of the current symbol against aggregated Spot + Perpetual volumes from top CEXs (Binance, Bybit, OKX, Bitget, Coinbase) for the symbol itself, BTC, and Gold (XAU). It displays everything in both coin and USD terms with clear ratios and a professional real-time table.
🔍 WHAT MAKES IT ORIGINAL
1. True Cross-Exchange Aggregation — Pulls and sums real volume from 5 major exchanges for both Spot and Perp contracts in a single indicator.
2. Symbol + BTC + Gold Comparison — Instantly see how the current altcoin’s volume stacks up against Bitcoin and Gold liquidity.
3. Dual Denomination System — Seamlessly switch between raw coin volume and USD-equivalent volume with one click.
4. Smart Perp vs Spot Separation — Clearly distinguishes spot (real buying/selling) from perpetual futures (leveraged speculation) volumes.
5. Built-in Professional Table — Always-visible, well-organized table showing all raw numbers and key ratios on the top-right corner.
6. Instrument-Agnostic — Works perfectly on any crypto pair, altcoin, or Gold chart.
⚙️ HOW IT WORKS
Native Volume:
- Uses the chart’s native `volume`.
- Converts to USD (volume × close) when “USD” denomination is selected.
- Applies user-defined SMA or EMA for trend context.
Aggregated Volume Engine:
- Dynamically builds symbols (e.g. BINANCE:BTCUSDT, BYBIT:ETHUSDT.P, etc.).
- Spot: Combines USDT + USDC pairs across enabled exchanges.
- Perp: Combines all perpetual contracts (USDT.P, USD.P, USDC.P).
- Gold uses dedicated XAU symbols with special handling.
- All data fetched via request.security() with ignore_invalid_symbol=true.
Ratios:
- Perp / Spot ratio for the current symbol.
- BTC Spot / Symbol ratio.
- Main Ratio: BTC Perp or Gold Perp vs current symbol volume.
Visualization:
- Colored columns for native volume (teal/red based on candle direction).
- Multiple line overlays for aggregated volumes.
- Real-time updating table with clean sections.
📖 HOW TO USE
Reading the Chart:
- Tall teal/red columns = Current symbol’s native volume.
- Black line = Moving Average of native volume.
- Aqua line = Symbol Spot aggregated volume.
- Blue line = Symbol Perp aggregated volume.
- Orange lines = BTC aggregated volumes.
- Yellow lines = Gold aggregated volumes.
- Fuchsia line = Main Ratio (BTC or Gold Perp / Symbol).
Reading the Table:
- High Perp / Spot Ratio (>3–5x) → Strong leveraged/speculative activity.
- High BTC Perp / Symbol → Altcoin is heavily influenced by Bitcoin flow.
- Compare Symbol Spot vs Perp to judge real demand vs futures-driven moves.
Suggested Workflow:
1. Check if current symbol volume is above or below its MA.
2. Look at Perp/Spot ratio to gauge leverage intensity.
3. Compare with BTC and Gold volumes for market regime context.
4. Use ratios as confluence for breakout or reversal setups.
⚙️ KEY SETTINGS REFERENCE
General
- Denomination: COINS or USD
Moving Average
- Native Volume MA Length (default 30)
- MA Type: SMA or EMA
- Show Native Volume MA
Plot Display
- Toggle individual plots: Symbol Native, Symbol Spot/Perp, BTC Spot/Perp, Gold Spot/Perp, Main Ratio
Display
- Show Ratios in Table
- Main Ratio Type: BTC or GOLD
Exchanges
- Enable/disable Binance, Bybit, OKX, Bitget, Coinbase individually
🔔 Alerts
This indicator does not include built-in alerts in the current version.
You can easily create custom alerts on any plotted value (e.g., when Main Ratio crosses a level) directly from TradingView.
⚠️ IMPORTANT NOTES & DISCLAIMER
— Volume data depends on TradingView’s exchange feeds. Some lesser pairs may show incomplete data.
— Aggregated volumes are summed from enabled exchanges only. Disabling major exchanges (especially Binance) will significantly reduce total volume.
— Perp volumes are generally much higher than Spot due to leverage — high ratios are normal in crypto.
— This indicator is for informational and analytical purposes only. It is not financial advice.
— Always verify important volume levels with multiple sources before making trading decisions.
— Works on all timeframes and all symbols (crypto, forex, commodities). Best performance on major altcoins and BTC pairs.
DISCLAIMER:
This indicator is provided for educational and informational purposes only.
It is not financial advice, nor a recommendation to buy, sell, or trade any asset.
• Volume data is fetched from third-party exchanges via TradingView’s request.security().
Accuracy depends on exchange data availability and TradingView’s data feeds.
• Some symbols or contracts may return zero or invalid data.
• Past performance or volume patterns do not guarantee future results.
• Always conduct your own research and verify data with multiple sources before making trading decisions.
// AGGREGATED VOLUME COMPARISON - FULL DOCUMENTATION
═══════════════════════════════════════════════════════════════════════════════
Aggregated Volume Comparison is a multi-exchange volume aggregator that compares native volume of the current symbol against aggregated Spot + Perpetual volumes from top CEXs (Binance, Bybit, OKX, Bitget, Coinbase) for the symbol itself, BTC, and Gold (XAU). It displays everything in both coin and USD terms with clear ratios and a professional real-time table.
🔍 WHAT MAKES IT ORIGINAL
1. True Cross-Exchange Aggregation — Pulls and sums real volume from 5 major exchanges for both Spot and Perp contracts in a single indicator.
2. Symbol + BTC + Gold Comparison — Instantly see how the current altcoin’s volume stacks up against Bitcoin and Gold liquidity.
3. Dual Denomination System — Seamlessly switch between raw coin volume and USD-equivalent volume with one click.
4. Smart Perp vs Spot Separation — Clearly distinguishes spot (real buying/selling) from perpetual futures (leveraged speculation) volumes.
5. Built-in Professional Table — Always-visible, well-organized table showing all raw numbers and key ratios on the top-right corner.
6. Instrument-Agnostic — Works perfectly on any crypto pair, altcoin, or Gold chart.
⚙️ HOW IT WORKS
Native Volume:
- Uses the chart’s native `volume`.
- Converts to USD (volume × close) when “USD” denomination is selected.
- Applies user-defined SMA or EMA for trend context.
Aggregated Volume Engine:
- Dynamically builds symbols (e.g. BINANCE:BTCUSDT, BYBIT:ETHUSDT.P, etc.).
- Spot: Combines USDT + USDC pairs across enabled exchanges.
- Perp: Combines all perpetual contracts (USDT.P, USD.P, USDC.P).
- Gold uses dedicated XAU symbols with special handling.
- All data fetched via request.security() with ignore_invalid_symbol=true.
Ratios:
- Perp / Spot ratio for the current symbol.
- BTC Spot / Symbol ratio.
- Main Ratio: BTC Perp or Gold Perp vs current symbol volume.
Visualization:
- Colored columns for native volume (teal/red based on candle direction).
- Multiple line overlays for aggregated volumes.
- Real-time updating table with clean sections.
📖 HOW TO USE
Reading the Chart:
- Tall teal/red columns = Current symbol’s native volume.
- Black line = Moving Average of native volume.
- Aqua line = Symbol Spot aggregated volume.
- Blue line = Symbol Perp aggregated volume.
- Orange lines = BTC aggregated volumes.
- Yellow lines = Gold aggregated volumes.
- Fuchsia line = Main Ratio (BTC or Gold Perp / Symbol).
Reading the Table:
- High Perp / Spot Ratio (>3–5x) → Strong leveraged/speculative activity.
- High BTC Perp / Symbol → Altcoin is heavily influenced by Bitcoin flow.
- Compare Symbol Spot vs Perp to judge real demand vs futures-driven moves.
Suggested Workflow:
1. Check if current symbol volume is above or below its MA.
2. Look at Perp/Spot ratio to gauge leverage intensity.
3. Compare with BTC and Gold volumes for market regime context.
4. Use ratios as confluence for breakout or reversal setups.
⚙️ KEY SETTINGS REFERENCE
General
- Denomination: COINS or USD
Moving Average
- Native Volume MA Length (default 30)
- MA Type: SMA or EMA
- Show Native Volume MA
Plot Display
- Toggle individual plots: Symbol Native, Symbol Spot/Perp, BTC Spot/Perp, Gold Spot/Perp, Main Ratio
Display
- Show Ratios in Table
- Main Ratio Type: BTC or GOLD
Exchanges
- Enable/disable Binance, Bybit, OKX, Bitget, Coinbase individually
🔔 Alerts
This indicator does not include built-in alerts in the current version.
You can easily create custom alerts on any plotted value (e.g., when Main Ratio crosses a level) directly from TradingView.
⚠️ IMPORTANT NOTES & DISCLAIMER
— Volume data depends on TradingView’s exchange feeds. Some lesser pairs may show incomplete data.
— Aggregated volumes are summed from enabled exchanges only. Disabling major exchanges (especially Binance) will significantly reduce total volume.
— Perp volumes are generally much higher than Spot due to leverage — high ratios are normal in crypto.
— This indicator is for informational and analytical purposes only. It is not financial advice.
— Always verify important volume levels with multiple sources before making trading decisions.
— Works on all timeframes and all symbols (crypto, forex, commodities). Best performance on major altcoins and BTC pairs.
DISCLAIMER:
This indicator is provided for educational and informational purposes only.
It is not financial advice, nor a recommendation to buy, sell, or trade any asset.
• Volume data is fetched from third-party exchanges via TradingView’s request.security().
Accuracy depends on exchange data availability and TradingView’s data feeds.
• Some symbols or contracts may return zero or invalid data.
• Past performance or volume patterns do not guarantee future results.
• Always conduct your own research and verify data with multiple sources before making trading decisions.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Made with passion by KenshinC
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Made with passion by KenshinC
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.