OPEN-SOURCE SCRIPT

Accumulation And Distribution Zones (Zeiierman)

947
Overview
Accumulation And Distribution Zones (Zeiierman) is a structural zone indicator that highlights where the market has recently been absorbing sell pressure (Accumulation) or releasing buy pressure (Distribution).

The indicator tracks a refined sequence of swing highs and lows and measures how these swings tighten, expand, or step directionally. When they form staircase-style structures such as higher lows with compressing highs for Accumulation or lower highs with compressing lows for Distribution, the script marks these areas as shifts in market control.

Once the full pattern completes, the indicator converts it into an Accumulation or Distribution zone. Each zone is based on a confirmed structural sequence rather than a single point, making it more reliable and reflective of actual market behavior.
لقطة
The indicator can also display a mini-volume profile within each zone and extend POC levels forward, showing where trading activity clustered most. Combined, these features reveal areas where price has recently shown acceptance, absorption, or rejection, helping you understand whether current price action is reacting to, breaking from, or retesting these important structural regions.
لقطة
How It Works

Swing Structure
The indicator builds its foundation by detecting swing highs and lows using a configurable Swing Detection Window. Each confirmed swing is stored with its price, time, bar index, and direction. If two consecutive swings share the same direction, only the more extreme one is kept. This produces a clean structural sequence that removes noise and keeps only meaningful turning points.

Accumulation vs Distribution Pattern Logic
Using the refined swing sequence, the script looks for staircase-style formations that signal shifts in control:
  • Accumulation (bottoming): higher lows combined with compressing highs.
  • Distribution (topping): lower highs combined with compressing lows.

Two detection modes are available:
  • Quick for compact 4-swing formations
  • Slow for broader 6-swing structures

When a full structural pattern completes, the indicator marks the zone and resets the swing buffer for the next formation.

Volume Profile Construction
The price range between the zone’s upper and lower boundary is divided into several Rows. For every bar within the zone’s swing range, the bar’s volume is added to the appropriate price row.

Volume is classified as:
  • Bullish volume when close > open
  • Bearish volume when close < open

Each row is drawn as two horizontal segments (bull and bear), colored with smooth gradients based on your bull/bear color settings. This creates a compact profile that reveals where trading activity is concentrated inside the zone and whether buyers or sellers dominate those price levels.

How to Use

The indicator is designed to provide context and confluence, not raw buy/sell signals.

Spot Fresh Accumulation & Distribution
Use newly printed zones as a map of where the market has recently:
  • Absorbed selling and formed a floor (Accumulation below price).
  • Absorbed buying and formed a cap (Distribution above price).

In a trending environment, fresh accumulation zones below price are often areas to watch for pullbacks, while distribution zones above price can act as sell zones or targets.
لقطة
Volume Profile
  • Longer horizontal bars show where the market traded the most volume inside the zone.
  • Bull-leaning rows inside an accumulation zone often signal strong buying interest during the formation.
  • Bear-leaning rows inside a distribution zone highlight concentrated selling pressure.

By combining this volume distribution with the zone label and the broader trend context, you can judge whether the structure is more likely to hold, break, or retest as the price approaches it again.
لقطة

POC (Point of Control) Trading
Extended POC zones (Regular or Faded) can be treated as dynamic support/resistance rails:
When price revisits a prior accumulation POC and rejects it from above, the level may act as support. When price retests a distribution POC from below and fails to break through, it can act as resistance.
لقطة
Combine with Your Own Strategy
The script does not decide direction for you. You get the most value by combining it with:
  • Your own trend filters (moving averages, higher timeframe structure, volatility measures).
  • Your preferred entry models (reversal candles, momentum breaks, liquidity grabs, etc.).
  • Higher-timeframe mapping.

Think of this tool as a map of where the market did meaningful business. You decide how to trade around those areas.

Settings
  • Acc/Dist Ranges – Master switch for drawing all Accumulation and Distribution zones. Turn this off to temporarily hide boxes while leaving supporting logic active.
  • Pattern – Shows or hides the swing-based pattern outline that formed each zone. Good for structural debugging and education.
    Pattern Sensitivity
  • Quick – more responsive, detects smaller compact structures.
  • Slow – stricter, focuses on wider and more established zones.
  • Swing Detection Window – Pivot width used to confirm swing highs and lows. Larger values filter noise and produce bigger zones; smaller values pick up more minor structures.
  • Volume Profile – Enables the embedded volume profile inside each zone.
  • Rows – Number of price slices used to aggregate volume in the zone. Higher values give more detail but increase visual density.
  • Switch Order – Flips the horizontal order of bull vs bear volume segments within each row.
  • Extend Zones – Behaviour of POC and zone extension:
  • None – No forward extension.
  • Faded Zones – Store and draw up to four past POC zones as faded horizontal levels.
  • Regular Zones – Extend POC boxes forward until price breaks out.

-----------------
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.

إخلاء المسؤولية

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.