OPEN-SOURCE SCRIPT
Ranked Support & Resistance Zones (Zeiierman)

█ Overview
Ranked Support & Resistance Zones (Zeiierman) is an adaptive S/R engine that transforms traditional pivot-based support and resistance detection into a dynamic ranking, filtering, and prioritization system.
Instead of plotting every detected level equally, the script stores each support and resistance zone as a structured data object, evaluates its quality in real time using multiple market factors, and continuously ranks all active zones by relative strength.
The result is a cleaner, more intelligent support/resistance framework that focuses on the most relevant zones currently influencing price action.

█ How It Works
⚪ Structured S/R Zone Engine
Each detected support or resistance area is stored as a structured UDT object containing its price range, direction, midpoint, width, mitigation state, touch count, volume behavior, trend alignment, swing quality, internal strength, and overall ranking score.
This allows every zone to behave like an active market structure rather than a static horizontal level.
The script detects resistance from confirmed pivot highs and support from confirmed pivot lows. Each pivot is filtered using ATR-normalized swing quality, helping the system adapt across different assets, volatility conditions, and timeframes.
⚪ Dynamic Quality Ranking
Every S/R zone receives a continuously updated quality score based on:
• Zone width relative to ATR
• Volume behavior
• EMA trend alignment
• Pivot swing quality
• Touch count
• Mitigation progress
• Zone age decay
All S/R zone objects are stored inside an array and ranked using Pine Script’s native UDT collection sorting:
Pine Script®
This allows the script to dynamically reorder all active support and resistance zones in real time, prioritizing the strongest market structure while weaker or older zones gradually lose ranking.
⚪ Smart Zone Management
After sorting, only the highest-ranked zones are displayed on the chart while lower-ranked zones remain internally tracked but hidden from view.
Similar zones of the same direction can be absorbed into an existing zone when they are close enough or meaningfully overlapping. This helps reduce clutter and creates cleaner support/resistance areas instead of stacking many nearby levels.
Each zone also tracks mitigation progress. As price trades deeper into a support or resistance zone, mitigation increases, and the zone’s quality score weakens. When the price closes beyond the ATR-based break buffer, the zone is marked as broken and converted into a broken-zone reference.
⚪ Internal Strength Distribution
Every active zone contains bullish and bearish internal pressure components displayed as live strength bars inside the zone.
█ How to Use
⚪ Focus on Top-Ranked Zones
Only the strongest support and resistance zones are displayed based on current market conditions and quality ranking.

⚪ Read Internal Strength Bars
• Strong support strength → stronger demand-side defense
• Strong resistance strength → stronger supply-side rejection
• Balanced pressure → weaker or less decisive structure
• Opposing pressure growth → increasing risk of mitigation or break

⚪ Watch for Retests and Mitigation
Support and resistance zones are most useful when the price revisits them after they form.
Strong reactions often show:
• Immediate rejection or bounce from the zone
• Respect for the zone boundaries
• Continuation away from the level
• Internal strength remaining aligned with the zone direction
Deeper or repeated retests can weaken the zone over time as mitigation increases and quality decays.

█ Related Scripts
Ranked FVG Imbalance Zones (Zeiierman)
Ranked Order Block Zones (Zeiierman)
█ Settings
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Ranked Support & Resistance Zones (Zeiierman) is an adaptive S/R engine that transforms traditional pivot-based support and resistance detection into a dynamic ranking, filtering, and prioritization system.
Instead of plotting every detected level equally, the script stores each support and resistance zone as a structured data object, evaluates its quality in real time using multiple market factors, and continuously ranks all active zones by relative strength.
The result is a cleaner, more intelligent support/resistance framework that focuses on the most relevant zones currently influencing price action.
█ How It Works
⚪ Structured S/R Zone Engine
Each detected support or resistance area is stored as a structured UDT object containing its price range, direction, midpoint, width, mitigation state, touch count, volume behavior, trend alignment, swing quality, internal strength, and overall ranking score.
This allows every zone to behave like an active market structure rather than a static horizontal level.
The script detects resistance from confirmed pivot highs and support from confirmed pivot lows. Each pivot is filtered using ATR-normalized swing quality, helping the system adapt across different assets, volatility conditions, and timeframes.
⚪ Dynamic Quality Ranking
Every S/R zone receives a continuously updated quality score based on:
• Zone width relative to ATR
• Volume behavior
• EMA trend alignment
• Pivot swing quality
• Touch count
• Mitigation progress
• Zone age decay
All S/R zone objects are stored inside an array and ranked using Pine Script’s native UDT collection sorting:
This allows the script to dynamically reorder all active support and resistance zones in real time, prioritizing the strongest market structure while weaker or older zones gradually lose ranking.
⚪ Smart Zone Management
After sorting, only the highest-ranked zones are displayed on the chart while lower-ranked zones remain internally tracked but hidden from view.
Similar zones of the same direction can be absorbed into an existing zone when they are close enough or meaningfully overlapping. This helps reduce clutter and creates cleaner support/resistance areas instead of stacking many nearby levels.
Each zone also tracks mitigation progress. As price trades deeper into a support or resistance zone, mitigation increases, and the zone’s quality score weakens. When the price closes beyond the ATR-based break buffer, the zone is marked as broken and converted into a broken-zone reference.
⚪ Internal Strength Distribution
Every active zone contains bullish and bearish internal pressure components displayed as live strength bars inside the zone.
█ How to Use
⚪ Focus on Top-Ranked Zones
Only the strongest support and resistance zones are displayed based on current market conditions and quality ranking.
⚪ Read Internal Strength Bars
• Strong support strength → stronger demand-side defense
• Strong resistance strength → stronger supply-side rejection
• Balanced pressure → weaker or less decisive structure
• Opposing pressure growth → increasing risk of mitigation or break
⚪ Watch for Retests and Mitigation
Support and resistance zones are most useful when the price revisits them after they form.
Strong reactions often show:
• Immediate rejection or bounce from the zone
• Respect for the zone boundaries
• Continuation away from the level
• Internal strength remaining aligned with the zone direction
Deeper or repeated retests can weaken the zone over time as mitigation increases and quality decays.
█ Related Scripts
Ranked FVG Imbalance Zones (Zeiierman)
Ranked Order Block Zones (Zeiierman)
█ Settings
- Show Top Zones: Controls how many of the highest-ranked support and resistance zones are displayed.
- Max Stored Zones: Controls the maximum number of S/R zones that can be tracked internally.
- Pivot Length: Defines how many candles are required on each side to confirm a pivot high or pivot low.
- Min Pivot ATR: Defines the minimum ATR-normalized pivot strength required for zone creation.
- Absorb Similar Zones: Controls how close or overlapping zones must be before they are absorbed into an existing zone.
- Zone Width ATR: Controls the thickness of each support/resistance zone.
- Volume MA Length: Defines the baseline used for volume behavior scoring.
- Trend EMA Length: Defines the EMA used for trend alignment scoring.
- Break Close Buffer ATR: Controls how far the price must close beyond a zone before it is considered broken.
- Keep Broken Zones: Controls how many broken zones remain visible after invalidation.
- Direction Filter: Allows displaying all zones, support-only, or resistance-only.
- Show Strength Bars: Shows or hides bullish and bearish internal strength bars inside each zone.
- Show Zone Text: Shows or hides smart zone labels such as Weak Support, Strong Resistance, or Mitigated Support.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Access my indicators at: zeiierman.com
Join Our Free Discord: discord.gg/zeiiermantrading
Join Our Free Discord: discord.gg/zeiiermantrading
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Access my indicators at: zeiierman.com
Join Our Free Discord: discord.gg/zeiiermantrading
Join Our Free Discord: discord.gg/zeiiermantrading
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.