3CRGANG - SUPPLY/DEMAND ZONES

The "3CRGANG - SUPPLY/DEMAND ZONES" indicator is a sophisticated tool designed to identify, classify, and visualize dynamic supply (resistance) and demand (support) zones on your TradingView charts. It goes beyond basic level plotting by incorporating a state-based system that tracks how zones evolve based on price interactions, helping traders anticipate potential reversals, continuations, or breakdowns at key levels. Zones are categorized into states like Untested, Verified, Weak, Flipped, and Broken, providing contextual insights into their strength and reliability. This indicator is particularly useful for swing traders, scalpers, and position traders who rely on price action around institutional levels, as it filters noise and highlights actionable zones with customizable alerts and visual aids.
Built on Pine Script v6, it overlays directly on your chart with semi-transparent boxes for zones, optional labels for quick reference, and alert triggers for zone tests. The invite-only access ensures users benefit from its proprietary enhancements, making it a premium alternative to generic zone indicators.
How It's Built: Core Concepts and Calculations
At its foundation, the indicator detects potential supply and demand zones using a fractal-based pivot detection method, which identifies local highs and lows by comparing a central bar's price to surrounding bars within a validation window. This window is dynamically adjusted via a "Fractal Sensitivity Factor" (default 6.0), which scales the lookback period relative to your chart's timeframe—ensuring zones adapt to market volatility without over- or under-fitting. For example, on a 15-minute chart, this might equate to checking 18-24 bars around a candidate pivot for confirmation.
Once a fractal pivot is confirmed:
- Zone Boundaries: The zone is constructed around the pivot high/low, extended by a fraction of the Average True Range (ATR, period 7) using the "Zone Boundary ATR Multiplier" (default 0.3). This creates a band that accounts for typical price fluctuations, preventing overly tight or loose zones. A subtle "Zone Fuzz Factor" (default 0.15) adds a minor buffer to the ATR-derived extension, allowing for fine-tuning in choppy markets without altering the core range.
- Merging Overlaps: To avoid clutter, overlapping zones of the same type (or flipped counterparts) are intelligently merged through up to 2-3 passes (configurable via "Max Merge Passes"). This consolidation increases the "test count" for the resulting zone, reflecting cumulative price rejections and enhancing its perceived strength.
- Zone Testing and Classification: Price interactions with zones are evaluated using one of two methods:
- Dynamic - Bars: Counts tests when price wicks into the zone from outside or closes out after entering, with a minimum gap (0-2 bars) to prevent rapid-fire counts in ranging markets.
- Mechanical - Pivots: Enhances the dynamic method by requiring a mechanical pivot (e.g., via TradingView's built-in pivothigh/pivotlow) within the zone during the test, adding a layer of confirmation for more conservative signals. Tests are tallied with a "Weak Zone Test Threshold" (default 1), classifying zones as:
- Untested: No interactions yet—fresh levels with high potential.
- Weak: 1 or fewer meaningful tests—early signals that may fade.
- Verified: Multiple tests (above threshold)—strong, repeatedly respected levels.
- Flipped: A broken zone that reverses role (e.g., resistance becomes support), based on a decisive close beyond the boundary.
- Broken: Permanently invalidated by a strong breakout, optionally displayed for historical context.
- Untested: No interactions yet—fresh levels with high potential.
- Dynamic - Bars: Counts tests when price wicks into the zone from outside or closes out after entering, with a minimum gap (0-2 bars) to prevent rapid-fire counts in ranging markets.
- Time and Session Integration: Zones are timestamped and limited to a "Back Limit" (default 500 bars) for performance. It incorporates a custom holiday library (importing from RotemB's LIBRARY_3CRGANG_Holidays_Library) to detect closures across major exchanges (NYSE, LSE, FSE, SSX, TSE, HKSE), adjusting session times for half-days and full holidays. Alerts are filtered by user-selected sessions, weekends, and a "Do Not Disturb" (DND) mode with timezone-aware scheduling (e.g., UTC+3 Jerusalem default, selectable from 90+ global options).
This combination of fractal detection, ATR-based sizing, multi-pass merging, and test-driven state evolution draws from classic supply/demand principles but refines them with proprietary logic to handle real-world market dynamics, such as volatility clustering and institutional session biases.
Why It’s Useful
Supply and demand zones are foundational to price action trading, representing areas where large orders accumulate and cause reversals or pauses. This indicator streamlines the process by automating zone discovery and maintenance, saving time compared to manual drawing. Its state system adds predictive value: Verified zones often signal high-probability bounces, while Flipped ones highlight role reversals for trend continuation trades. Alerts notify you of tests in real-time, ideal for multi-chart monitoring, and session/holiday filters reduce false signals during low-liquidity periods (e.g., no alerts on Christmas for NYSE-linked assets).
Traders benefit from reduced emotional bias—zones "age out" beyond the back limit, focusing on recent action—and customizable visuals prevent chart overload. In volatile markets like forex or crypto, the ATR-adjusted boundaries adapt better than fixed-percentage methods, while the test count helps gauge exhaustion (e.g., over-tested Weak zones may signal impending breaks). Overall, it enhances decision-making by providing not just levels, but their evolving context.
How to Use It
- Add to Chart:
Search for "3CRGANG - SUPPLY/DEMAND ZONES" in TradingView's invite-only scripts (access required). Apply to any timeframe from 1-minute to yearly, though it shines on intraday (15M-4H) for active trading. - Configure Inputs:
- Test Mode: Choose "Dynamic - Bars" for sensitive, wick-focused testing or "Mechanical - Pivots" for stricter, pivot-confirmed interactions. Adjust "Minimum Test Gap" (0-2) to filter rapid tests and "Weak Zone Test Threshold" (1-3) to define strength tiers.
- Pivot Filters: Tune "Fractal Sensitivity Factor" (5-14) for fewer/more zones—higher values for smoother trends, lower for chop.
- Zone Width: Set "Zone Boundary ATR Multiplier" (0-1) for tighter/wider bands; use "Zone Fuzz Factor" (0-1) sparingly for boundary tweaks.
- Visual: Select zone style (Solid/Dashed/Dotted), linewidth (1-3), and horizontal extension (None/Right/Both). Toggle visibility per state (e.g., hide Broken for cleaner charts).
- Labels: Enable "Show Labels" for state/type info; add "Show Zone Size" (in pips/$) and "Show Test Count" for details. Adjust shift for positioning.
- Alerts: Enable per state (Untested/Weak/Verified/Flipped). Filter by sessions (e.g., enable NYSE for US equities), holidays, weekends, and DND (set time ranges in your timezone to mute notifications).
- Colors: Customize per state/type for intuitive visuals (e.g., red shades for resistance).
- Test Mode: Choose "Dynamic - Bars" for sensitive, wick-focused testing or "Mechanical - Pivots" for stricter, pivot-confirmed interactions. Adjust "Minimum Test Gap" (0-2) to filter rapid tests and "Weak Zone Test Threshold" (1-3) to define strength tiers.
- Trading Application:
- Entries: Buy at Verified Demand (green) tests, sell at Verified Supply (red). Use Flipped zones for breakout confirmation.
- Exits/Risk: Place stops beyond zone boundaries; trail profits on Weak/Flipped signals indicating fading strength.
- Alerts Setup: In TradingView's alert dialog, select this indicator and configure for "alert() function calls only" to receive zone-test notifications.
- Multi-Timeframe: View higher-TF zones on lower charts for confluence (e.g., daily zones on 1H).
- Best Practices: Combine with volume or oscillators; backtest on your asset to optimize sensitivity.
- Entries: Buy at Verified Demand (green) tests, sell at Verified Supply (red). Use Flipped zones for breakout confirmation.
Chart Example: XAG/USD (m5 timeframe)
Chart Notes
The chart displays zones on XAGUSD (M5 timeframe), presenting a clear price action structure with three distinct zones. A green Verified Support zone, marked with a translucent green box, indicates a robust demand level that has been tested multiple times and held firm. A blue Weak Support zone, outlined with a lighter blue box, reflects a less-tested support level with fewer rejections, suggesting lower reliability. A gold Flipped Resistance zone, highlighted with a golden box, initially acted as a resistance with rejections before breaking through and retesting as a support zone, showcasing its transition. Labels appear to the right of each zone, displaying details such as "VERIFIED SUPPORT (6.72 points, T=3)" for the Verified zone, "WEAK SUPPORT (6.9 points, T=1)" for the Weak zone, and "FLIPPED SUPPORT (3.85 points, T=10)" for the Flipped zone, with sizes in dollars (or pips if under $1) and test counts included. Zones extend horizontally to the right based on the user-defined shift setting, with customizable dashed or dotted borders for enhanced visual clarity.
- Requires 500 bars of history for optimal performance. Alerts are muted during holidays (e.g., Lunar New Year) or Do Not Disturb periods.
Settings
- Test Mode: Choose method (Dynamic - Bars or Mechanical - Pivots), set minimum test gap (0-2 bars), and weak zone threshold (1-3 tests).
- General: Adjust back limit (250-1000 bars).
- Pivot Filters: Set fractal sensitivity factor (5-14) and max merge passes (1-3).
- Zone Width: Define ATR multiplier (0-1) and fuzz factor (0-1).
- Visual: Select zone style (Solid, Dashed, Dotted), line width (1-3), shift end right (1-50 bars), and extension (None, Right, Both).
Visibility: Toggle display for each state (Untested, Verified, Weak, Flipped, Broken).
Labels: Enable labels, set shift (1-50 bars), size, and show size/test counts.
Alerts: Enable alerts by state (Untested, Weak, Verified, Flipped). - DND Settings: Set timezone, Do Not Disturb hours, and weekend alerts.
- Sessions Alerts: Filter alerts by exchange (NYSE, LSE, etc.) and holiday settings.
- Colors: Assign colors to each zone state and type.
Why It's Unique and Worth Invite-Only Access
While supply/demand indicators exist, this one stands out through its integrated ecosystem: adaptive fractal pivots with sensitivity scaling, multi-pass overlap merging that preserves test history, and a nuanced state machine that evolves zones based on configurable test mechanics—far beyond simple high/low plotting or basic breakouts. The proprietary blending of ATR fuzzing, retroactive test validation during zone creation, and global exchange holiday/session filtering (with half-day adjustments) minimizes irrelevant alerts, a common pain point in public scripts. It doesn't rely solely on built-ins or educational code; instead, it enhances them with custom logic for zone lifecycle management, making it resilient across assets and timeframes.
This originality justifies its closed-source nature—revealing the full interplay of fractal windowing, merge algorithms, and alert conditioning could dilute its edge. As an invite-only script, it provides clear value through premium features like timezone-aware DND, comprehensive holiday integration (e.g., Lunar New Year for HKSE), and state-aware alerts, which aren't replicated in free alternatives. Traders seeking an efficient, low-noise tool for institutional-level analysis will find it worth the access, as it delivers actionable insights that generic indicators overlook.
Disclaimer
This indicator assists in zone identification but does not guarantee success. Trading involves risk, and past performance is not indicative of future results. Always use proper risk management.
Skript nur auf Einladung
Ausschließlich Nutzer mit einer Erlaubnis des Autors können Zugriff auf dieses Script erhalten. Sie müssen diese Genehmigung bei dem Autor beantragen. Dies umfasst üblicherweise auch eine Zahlung. Wenn Sie mehr erfahren möchten, dann sehen Sie sich unten die Anweisungen des Autors an oder kontaktieren Sie RotemB direkt.
TradingView empfiehlt NICHT, für die Nutzung eines Scripts zu bezahlen, wenn Sie den Autor nicht als vertrauenswürdig halten und verstehen, wie das Script funktioniert. Sie können außerdem auch kostenlose Open-Source-Alternativen in unseren Community-Scripts finden.
Hinweise des Autors
Haftungsausschluss
Skript nur auf Einladung
Ausschließlich Nutzer mit einer Erlaubnis des Autors können Zugriff auf dieses Script erhalten. Sie müssen diese Genehmigung bei dem Autor beantragen. Dies umfasst üblicherweise auch eine Zahlung. Wenn Sie mehr erfahren möchten, dann sehen Sie sich unten die Anweisungen des Autors an oder kontaktieren Sie RotemB direkt.
TradingView empfiehlt NICHT, für die Nutzung eines Scripts zu bezahlen, wenn Sie den Autor nicht als vertrauenswürdig halten und verstehen, wie das Script funktioniert. Sie können außerdem auch kostenlose Open-Source-Alternativen in unseren Community-Scripts finden.