Institutional Accumulation and Distribution Detector - PhenLabs📊 IADD — Institutional Accumulation & Distribution Detector
Version: PineScript™ v6
📌 Description
IADD is a professional-grade, no-repaint zone detection engine that identifies where institutional capital is quietly accumulating or distributing before major price moves. By fusing Volume Spread Analysis (VSA) with momentum candle classification, a five-factor quality scoring system, and a built-in micro Volume Profile engine, IADD draws only the highest-conviction institutional footprints — complete with POC, HVN sub-zones, breakout signals, and ATR-projected targets.
🚀 Points of Innovation
Dual-Type Candle Classification (VSA + Momentum): Detects both high-volume momentum candles (directional conviction) and high-volume absorption candles (hidden buying/selling via long wicks) — capturing institutional activity that pure momentum filters miss.
5-Factor Zone Quality Score (0–5 ★): Zones are graded across five objective criteria: RVOL intensity, absorption presence, consolidation tightness, candle participation, and directional bias. Only zones clearing your minimum threshold are drawn.
Embedded Volume Profile per Zone: On confirmation, IADD calculates a micro volume profile across the cluster window, identifying the POC and HVN — the highest-density levels hidden inside each zone.
No-Repaint Architecture: All zones, signals, and targets are anchored to closed-bar data using fixed coordinates and extend.none rendering. Signals lock permanently — nothing shifts or disappears after the bar closes.
ATR-Projected 1R/2R/3R Targets: On breakout, three risk-reward levels and a structural stop-loss are automatically projected using ATR at the breakout close — a complete trade plan in a single signal.
🔥 Key Features
✅ Accumulation Zones (Blue) above trend EMA — where institutions absorbed supply
✅ Distribution Zones (Orange) below trend EMA — where institutions offloaded into strength
✅ POC dashed line per zone — the highest-volume price level within each cluster
✅ Star-rated quality labels (★ to ★★★★★) with POC price, bias %, and peak RVOL
✅ ▲ LONG / ▼ SHORT breakout labels on zone boundary breaks with expanded volume
✅ 5 alert conditions: Zone Formed (Bull/Bear), Breakout (Long/Short), Any Breakout
📖 Settings Guide
⚙️ Volume & Candle Filters
Avg Volume Length | Default: 20 | Rolling baseline period for RVOL calculation.
Min RVOL Multiplier | Default: 1.8 | Volume must exceed this multiple of the average to qualify a candle as institutional.
Min Body % (Momentum) | Default: 55% | Minimum body-to-range ratio for momentum candle classification.
Min Wick % (Absorption) | Default: 45% | Minimum wick-to-range ratio for VSA absorption candle classification.
⚙️ Cluster & Quality Filters
Cluster Lookback | Default: 15 bars | Rolling window scanned for institutional candle clusters.
Min Inst. Candles | Default: 3 | Minimum institutional candles required within the window.
Min Directional Bias % | Default: 60% | Minimum directional agreement among institutional candles.
Min Zone Quality Score | Default: 3/5 | Minimum score gate before a zone is drawn. Raise to 4–5 for maximum selectivity.
ATR Squeeze Filter | Default: On | Rejects wide, choppy zones. Keeps tight institutional consolidations only.
Max Zone Range (× ATR) | Default: 3.5 | Maximum acceptable zone width as an ATR multiple.
⚙️ Trend Context Filter
Enable Trend Filter | Default: On | Accumulation requires price above EMA; distribution requires price below.
Trend EMA Length | Default: 200 | Macro trend reference period.
⚙️ Volume Profile
Profile Bins | Default: 20 | Price bins for micro volume profile resolution within each zone.
HVN Threshold % | Default: 70% | Bins must reach this % of peak bin volume to qualify as part of the HVN.
⚙️ Targets & Risk
Show ATR-Based Targets | Default: On | Projects 1R/2R/3R and structural SL on every breakout.
ATR Target Multiplier (1R) | Default: 1.5 | ATR distance per risk unit from the breakout close.
⚙️ Display
Show Accumulation / Distribution Zones | Default: Both On | Individual visibility toggles per zone type.
Show Breakout Signals | Default: On | Enables ▲ LONG / ▼ SHORT breakout labels.
Show Quality Score on Label | Default: On | Appends star rating to each zone label.
Max Zones (per type) | Default: 8 | Oldest zones auto-purge when cap is reached.
✅ Best Use Cases
● Identifying institutional demand zones before trend continuation entries
● Confirming breakouts with zone quality context — a 5-star zone breakout carries far more weight than an unqualified one
● Using the POC as a magnet or retest entry level after a breakout
● Anchoring structural stop-losses to zone boundaries (below accumulation low, above distribution high)
● Multi-timeframe confluence: identify IADD zones on higher timeframes, enter on HVN touches on lower timeframes
● Filtering setups to macro EMA-aligned trades only for higher win-rate execution
⚠️ Limitations
Volume Data: Requires reliable volume. On some forex pairs or synthetic instruments, RVOL accuracy may be reduced.
Trend Filter: Counter-trend zones are suppressed when the filter is enabled. Disable for full detection.
Not Standalone: IADD identifies where institutions were active — not when price will return. Combine with price action confirmation and proper risk management.
💡 Note:
Best performance on equities, crypto, and futures across 1-minute to Daily timeframes. Start with default settings, then tighten Min Quality Score and RVOL Multiplier to match your instrument’s volatility profile.
مؤشر Pine Script®





















