Supply & Demand Zones [QuantAlgo]

The Supply & Demand (Support & Resistance) Zones indicator identifies price levels where significant buying and selling pressure historically emerged, using swing point analysis and pattern recognition to mark high-probability reversal and continuation areas. Unlike conventional support/resistance tools that draw arbitrary horizontal lines, this indicator can automatically detect structural zones, offering traders systematic entry and exit levels where institutional order flow likely congregates across any market or timeframe.
๐ข How to Use
# Zone Types:
- Green/Demand Zones: Support areas where buying pressure historically emerged, representing potential long entry opportunities where price may bounce or consolidate before moving higher. These zones mark levels where buyers previously overcame sellers.
- Red/Supply Zones: Resistance areas where selling pressure historically dominated, indicating potential short entry opportunities where price may reverse or stall before declining. These zones identify levels where sellers previously overwhelmed buyers.
# Zone Pattern Types:
- Wick Rejection Zones: Zones created from candles with exceptionally long wicks showing violent price rejection. A demand rejection occurs when price drops sharply but closes well above the low, forming a long lower wick (relative to the total candle range) that demonstrates buyers aggressively defending that level. A supply rejection shows price spiking higher but closing well below the high, with the long upper wick proving sellers rejected that price aggressively. These zones often represent major institutional orders that absorbed significant market pressure. The rejection wick ratio setting controls how prominent the wick must be (higher ratios require more dramatic rejections and produce fewer but higher-quality zones).
- Continuation Demand Zones: Areas where price rallied upward, paused in a brief consolidation base, then rallied again. This pattern confirms strong buying continuation (the consolidation represents profit-taking or minor pullbacks that failed to attract meaningful selling). When price returns to these zones, buyers who missed the initial rally often provide support, making them high-probability long entries within established uptrends. These zones follow the classic Rally-Base-Rally structure, demonstrating that buyers remain in control even during temporary pauses.
- Reversal Demand Zones: Zones where price dropped, formed a consolidation base, then reversed into a rally. This structure marks potential trend reversals or major swing lows where buyers finally overwhelmed sellers after a decline. The base period represents accumulation by stronger hands, and these zones frequently appear at market bottoms or as significant pullback support within larger uptrends, signaling shifts in market control. These zones follow the Drop-Base-Rally pattern, showing the moment when selling pressure exhausted and buying interest emerged.
- Continuation Supply Zones: Areas where price dropped, consolidated briefly, then dropped again. This pattern demonstrates strong selling continuation (the pause represents temporary buying attempts that failed to generate meaningful recovery). When price returns to these zones, sellers who missed the initial decline often provide resistance, creating short entry opportunities within established downtrends. These zones follow the Drop-Base-Drop structure, confirming that sellers maintain dominance even during temporary consolidations.
- Reversal Supply Zones: Zones where price rallied upward, formed a consolidation base, then reversed into a decline. This formation identifies potential trend reversals or major swing highs where sellers overcame buyers after an advance. The base period often represents distribution by institutional participants, and these zones commonly appear at market tops or as key pullback resistance within larger downtrends, marking transfers of market control from buyers to sellers. These zones follow the Rally-Base-Drop pattern, capturing the transition point when buying exhaustion meets aggressive selling.
# Zone Mitigation Methods:
- Wick Mitigation: Zones become invalidated immediately upon first contact by any wick. This assumes zones work only on their initial test, reflecting the belief that institutional orders concentrated at these levels get completely filled on first touch. Best for traders seeking only the highest-probability, untested zones and willing to accept that zones invalidate frequently in volatile markets. When price touches a zone boundary with even a single wick, that zone is considered "used up" and becomes mitigated.
- Close Mitigation: Zones remain valid through wick penetration but become invalidated only when a candle closes through the zone boundary. This method allows price to briefly probe the zone with wicks while requiring actual commitment (a close) for invalidation. Suitable for traders who recognize that zones can withstand initial tests and prefer filtering out false breakouts caused by temporary volatility or liquidity hunts. A zone stays active as long as candles close within or outside it, regardless of wick penetration, until a close occurs beyond the boundary.
- Full Body Mitigation: Zones stay valid until an entire candle body exists completely beyond the zone boundary, meaning both the open and close must be outside the zone. This approach maintains zone validity through partial penetrations, accommodating the reality that institutional zones can absorb considerable price action before exhausting. Ideal for volatile markets or traders who believe zones represent price ranges rather than precise levels, and who want zones to persist through aggressive but ultimately rejected breakout attempts. Only when both the open and close of a candle are beyond the zone does it become mitigated.
๐ข Pro Tips for Trading and Investing
โ Preset Selection: Choose presets matching your preferred timeframe - Scalping (M1-M30) for aggressive detection on minute charts, Intraday (H1-H12) for balanced filtering on hourly timeframes, or Swing Trading (1D+) for strict filtering on daily charts. Each preset automatically optimizes swing length, zone strength, and max zone counts for the selected timeframe.
โ Input Calibration: Adjust Swing Length based on market speed (lower values 3-7 for fast markets, higher values 12-20 for slower markets). Set Minimum Zone Strength according to asset volatility (0.05-0.15% for low-volatility assets, 0.25-0.5% for high-volatility assets). Tune Rejection Wick Ratio higher (0.6-0.8) for strict wick filtering or lower (0.3-0.5) to capture more subtle rejections.
โ Zone Pattern Toggle Strategy: Pattern types are mutually exclusive - enable Continuation OR Reversal patterns for each zone type, not both together. Recommended combinations: For trend trading, enable Rejection + Continuation (2-4 toggles total). For reversal trading, enable Rejection + Reversal (2-4 toggles). For scalping, enable only Rejection zones (1-2 toggles). Maximum 3-4 active toggles provides optimal chart clarity. A simple Wick Rejection toggle can also work on virtually any market and timeframe.
โ Mitigation Method Selection: Use Wick mitigation in clean trending markets for strict zone invalidation on first touch. Use Close mitigation in moderate volatility to filter out temporary spikes. Use Full Body mitigation in highly volatile markets to keep zones active through whipsaws and false breakouts.
โ Alert Configuration: Utilize built-in alerts for new zone creation, zone touches, and zone breaks. New zone alerts notify when fresh supply/demand areas form. Zone touch alerts signal potential entry opportunities as price reaches zones. Zone break alerts indicate when levels fail, signaling possible trend acceleration or structure changes.
Skrip hanya-undangan
Hanya pengguna yang disetujui oleh penulis yang dapat mengakses skrip ini. Anda harus meminta dan mendapatkan izin untuk menggunakannya. Izin ini biasanya diberikan setelah pembayaran. Untuk detail lebih lanjut, ikuti petunjuk penulis di bawah ini atau hubungi QuantAlgo secara langsung.
TradingView TIDAK menyarankan untuk membayar atau menggunakan skrip kecuali anda benar-benar percaya kepada pembuatnya dan memahami cara kerjanya. Anda juga dapat menemukan alternatif sumber terbuka yang gratis di skrip komunitas kami.
Instruksi penulis
๐ฉ DM if you need any custom-built indicators or strategies.
Pernyataan Penyangkalan
Skrip hanya-undangan
Hanya pengguna yang disetujui oleh penulis yang dapat mengakses skrip ini. Anda harus meminta dan mendapatkan izin untuk menggunakannya. Izin ini biasanya diberikan setelah pembayaran. Untuk detail lebih lanjut, ikuti petunjuk penulis di bawah ini atau hubungi QuantAlgo secara langsung.
TradingView TIDAK menyarankan untuk membayar atau menggunakan skrip kecuali anda benar-benar percaya kepada pembuatnya dan memahami cara kerjanya. Anda juga dapat menemukan alternatif sumber terbuka yang gratis di skrip komunitas kami.
Instruksi penulis
๐ฉ DM if you need any custom-built indicators or strategies.