OPEN-SOURCE SCRIPT

Adaptive Support and Resistance Zones [BigBeluga]

4 743
🔵 OVERVIEW
Adaptive Support and Resistance Zones [BigBeluga] is a high-performance technical analysis tool designed to identify, manage, and visualize key supply and demand areas. Unlike static pivot indicators that clutter the chart with every minor high and low, this script employs volatility-adjusted logic (ATR) to ensure only the most significant structural levels are maintained.

snapshot

The indicator treats support and resistance not as thin lines, but as dynamic zones, accounting for market "noise" and providing a clearer picture of where institutional interest actually lies.

🔵 CONCEPT
  • Volatility-Aware Detection — Uses ATR-based filtering to qualify pivot points. A level is only created if the price rejection is strong enough relative to current market volatility.
  • Smart Level Merging — Automatically consolidates levels that are too close to one another, preventing "line spaghetti" and identifying high-confluence zones.
  • Dynamic Zone Rendering — Visualizes S/R as shaded boxes. The width of these zones adapts to market volatility, providing a realistic representation of supply and demand.
  • Real-Time Breakout Tracking — Monitors price action in real-time to detect when a level is definitively breached, switching its status from "Active" to "Broken."
  • Automatic Pruning — Cleans the chart by removing levels that have exceeded a maximum age, ensuring your focus remains on current market structure.


🔵 HOW IT WORKS (IN-DEPTH)

1️⃣ Advanced Swing Detection
  • The indicator scans for Pivot Highs and Lows based on a user-defined Pivot Length.
  • The Strength Filter: It applies a "Min ATR Strength" check. For a pivot to be valid, the distance between the pivot point and its immediate neighbors must exceed a mathematical threshold of volatility. This filters out "fake" pivots during low-volume consolidation.
    snapshot


2️⃣ Adaptive Level Management
  • Merge Logic: Before a new level is drawn, the script checks if an existing level already exists within the "Merge Threshold." If it does, the indicator skips the new level, effectively treating the existing zone as the dominant area of interest.
    snapshot
  • Active vs. Broken: Levels remain "Active" as solid lines/zones as long as price respects them. Once price closes beyond the level (controlled by Break Sensitivity), the level is moved to the "Broken" category.
  • Visual Transition: Broken levels can be kept on the chart as muted, dotted lines—a crucial feature for traders who look for "S/R Flip" opportunities (where old resistance becomes new support).
    snapshot


3️⃣ The S/R Dashboard
  • A dedicated on-screen table provides a birds-eye view of the current structural state.
  • Nearest Resistance/Support: Displays the exact price of the closest active levels.
  • Last Break: Identifies the direction of the most recent volatility-confirmed breakout.
  • Active Counter: Keeps track of how many structural levels are currently being monitored by the system.
    snapshot


🔵 KEY FEATURES
  • ATR-Based Zone Width: Zones expand and contract based on market volatility, ensuring your stop-loss or entry buffers are mathematically sound.
  • Price Labels: Optional labels at the end of active lines provide the exact price for quick order entry.
  • Customizable Break Sensitivity: Define how much "daylight" price needs to show above or below a level before a breakout is confirmed.
  • Historical Record: Retain a specific number of recently broken levels to identify long-term historical confluence.
  • Clean Visuals: High-contrast colors for Support (Cyan) and Resistance (Orange), with fully customizable transparency.


🔵 HOW TO USE
  • Trading the Rejection: Look for price to enter a shaded Support or Resistance Zone. Wait for a reversal candle within the zone for a high-probability entry back toward the mean.
  • Trading the Breakout: When the "< Break" label appears, it confirms that price has closed beyond the zone with enough momentum to overcome the "Break Sensitivity" threshold.
  • The S/R Flip: Monitor "Broken" (dotted) levels. If price returns to a dotted Resistance line and treats it as Support, it confirms a structural shift in the market.
  • Volatility Buffers: Use the vertical height of the Zone Boxes to determine your "No-Trade Zone" or to help place stop-losses outside of the immediate area of market noise.


🔵 CONCLUSION
Adaptive Support and Resistance Zones [BigBeluga] transforms raw price action into an organized, data-driven roadmap. By automating the detection and management of key levels—while accounting for the ever-changing nature of market volatility—it allows traders to focus on execution rather than manual charting.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.