Apex / ChartFanatics Bubbles + Clusters + SweepsApex / ChartFanatics Bubbles + Clusters + Sweeps
This open-source indicator combines four visual elements — Volume Bubbles, Volume Clusters, Liquidity Sweep Markers, and Dynamic Supply/Demand Zones — into a single overlay tool. The goal is to provide traders with a unified view of volume intensity, aggressive price action, and key institutional reference levels on any timeframe or instrument.
Why this combination?
Many volume and structure tools exist separately, but combining them creates synergy:
- Volume Bubbles highlight relative volume strength instantly (quick glance at participation level).
- Volume Clusters emphasize high-volume bars as potential support/resistance areas.
- Liquidity Sweep markers flag classic "fakeout" or stop-hunt behavior (aggressive wicks that fail to sustain).
- Supply/Demand zones provide context for where price is likely to react after sweeps or clusters form.
Together, these elements help traders spot:
- Areas of high institutional interest (clusters + zones)
- Potential reversals after liquidity grabs (sweeps + zones)
- Confirmation of momentum via volume size and candle direction (bubbles + clusters)
This mashup is not random — it follows a logical Smart-Money / Order-Flow inspired workflow: detect volume → identify aggressive liquidity raids → map reaction zones → visualize everything for fast decision-making.
Core Features & How They Work
1. Volume Bubbles (Quantile-Based)
- Volume is ranked against a rolling lookback (default 200 bars).
- Dynamic quantiles divide the volume range into buckets (default 10 levels).
- Bubble size scales with quantile rank (tiny → huge).
- Color: bright green (bullish close) or bright red (bearish close), with adjustable opacity.
- Only shown when volume exceeds 1.2× the lookback minimum (avoids noise).
- Tooltip shows exact volume, delta (close-open), and quantile position.
2. Volume Clusters
- Draws semi-transparent boxes around bars exceeding a user-defined minimum volume.
- Width adjustable (default 4 bars forward) to highlight clusters visually.
- Same bullish/bearish coloring as bubbles for consistency.
3. Liquidity Sweeps
- Detects classic sweep patterns on the previous bar:
→ Bullish sweep: high > previous high, but close < previous high AND bearish candle
→ Bearish sweep: low < previous low, but close > previous low AND bullish candle
- Marked with a bright yellow star (★) label + tooltip.
- Useful for identifying potential stop hunts or failed breakouts.
4. Supply & Demand Zones
- Uses pivot high/low (default lookback 20 left/right) to detect swing points.
- Supply zone: from pivot high downward by 2× ATR(14).
- Demand zone: from pivot low upward by 2× ATR(14).
- Zones extend rightward dynamically (up to +30 bars) and remain visible until new pivots form.
- Brownish for supply (resistance), greenish for demand (support).
Inputs & Customization
- Bubble Quantiles (3–15): more levels = finer volume grading
- Bubble Opacity: controls transparency
- Volume Lookback: historical window for quantile calculation
- Cluster settings: toggle, min volume, width
- Sweeps & Zones: individual toggles
- Zone Pivot Lookback: sensitivity of swing detection
How to Use
- Best on lower timeframes (1m–15m) for scalping/day trading or higher (1h–4h) for swing setups.
- Look for confluence:
→ Large green bubble + cluster + demand zone + bullish sweep = strong support area
→ Large red bubble + cluster + supply zone + bearish sweep = strong resistance area
- Use sweeps as early warning of potential reversal when price approaches a zone.
- Combine with your own price action or structure analysis — this is a visual aid, not a signal generator.
- Keep chart clean: toggle off unused features if cluttered.
Publishing Notes
- Publish with a clean chart (only this indicator active, no other overlays/drawings).
- Recommended symbols: volatile instruments (forex majors, indices, crypto, gold).
- Max labels/boxes set high (500) to handle long histories — reduce if performance issues occur.
This script is fully open-source for transparency and learning. It is provided for educational purposes — no guarantees of profitability. Trading involves risk.
Feedback welcome — happy charting!
Pine Script® 인디케이터






















