PROTECTED SOURCE SCRIPT

Volume Agregado Perp + Spot BTC only

164
🔍 Aggregated Volume — Spot, Perpetual, or Both (with Bands & Alerts)
Overview:
This indicator aggregates volume data from multiple exchanges (Spot and Perpetual) into a single unified chart. It calculates the simple moving average (SMA) and standard deviation (STDEV) over the aggregated volume, and plots dynamic volume bands at customizable deviation levels.
Includes an option to display only Spot, only Perpetual, or both combined, and provides automatic alerts when volume breaks above or below each band level.
📊 How It Works
Fetches volume from top exchanges using request.security() (e.g., Binance, Bybit, Coinbase, OKX, Kraken, Bitget).
To avoid distortion caused by disproportionally large Perpetual contract volumes, perp data is normalized by dividing by 100. This brings it closer to Spot volume scale.
Computes SMA and STDEV of the aggregated volume, and plots upper/lower bands based on 1x, 2x, and 3x standard deviations.
Issues alerts when the current volume exceeds or drops below the defined thresholds.
🧠 Interpretation
Above Upper Bands (Lv1/Lv2/Lv3): Signals volume spikes, which can indicate breakouts, momentum ignition, or exhaustion moves depending on context. Higher levels (Lv3) suggest more extreme events.
Below Lower Bands: Indicates low activity, potential consolidation, or market pause.
Best used in combination with price structure, VWAP, order blocks, or volume delta/OI for deeper context.
⚙️ Parameters
SMA/STDEV Period – Default: 20 candles.
Band Levels (1/2/3 STDEV) – Fully configurable multipliers.
Volume Mode:
Spot – Only traditional spot exchange volume.
Perpetual – Only perpetual contracts (normalized).
Both – Combines both (default).

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.