PROTECTED SOURCE SCRIPT
Telah dikemas kini Impulse Wick ZONES (multi-bar waves, capped)

Impulse Origin Zones (IOZ)
One-liner:
Marks the origin of new directional waves by anchoring a forward-projected zone to the first decisive wick. Use it to trade retests, rejections, or clean breaks with clear invalidation.
What it does
Automatically spots the start of a fresh move and drops a zone at the first wick that kicks it off.
Zones persist and extend until decisively invalidated, giving durable context for entries, stops, and targets.
Sizing adapts to instrument conditions to avoid zones that are too tiny in quiet markets or oversized in volatile ones.
Side filter: show bullish only, bearish only, or both.
How to read it
Green zone: bullish origin (up-wave).
Red zone: bearish origin (down-wave).
Price interaction with a zone can signal:
Rejection (fade the first touch),
Break & retest (enter on confirmation),
Clean break (momentum continuation).
Inputs (high-level)
Wave qualification: minimum strength/length to count as an impulse.
Zone thickness: volatility-aware, fixed, or proportional options.
Display mode: Both / Bullish only / Bearish only.
Max active zones: keeps the chart uncluttered.
Styling: colors, borders, labels, right-extension.
Playbook ideas
In trends, prioritize zones with the trend; use opposite-colored zones as targets.
Pair with a trigger (volume pop, momentum cross, footprint imbalance) for entries.
Invalidation: decisive close through the far edge of the zone.
Notes
IOZ highlights wave origins, not generic support/resistance.
On thin/news-driven markets, consider a larger invalidation buffer.
One-liner:
Marks the origin of new directional waves by anchoring a forward-projected zone to the first decisive wick. Use it to trade retests, rejections, or clean breaks with clear invalidation.
What it does
Automatically spots the start of a fresh move and drops a zone at the first wick that kicks it off.
Zones persist and extend until decisively invalidated, giving durable context for entries, stops, and targets.
Sizing adapts to instrument conditions to avoid zones that are too tiny in quiet markets or oversized in volatile ones.
Side filter: show bullish only, bearish only, or both.
How to read it
Green zone: bullish origin (up-wave).
Red zone: bearish origin (down-wave).
Price interaction with a zone can signal:
Rejection (fade the first touch),
Break & retest (enter on confirmation),
Clean break (momentum continuation).
Inputs (high-level)
Wave qualification: minimum strength/length to count as an impulse.
Zone thickness: volatility-aware, fixed, or proportional options.
Display mode: Both / Bullish only / Bearish only.
Max active zones: keeps the chart uncluttered.
Styling: colors, borders, labels, right-extension.
Playbook ideas
In trends, prioritize zones with the trend; use opposite-colored zones as targets.
Pair with a trigger (volume pop, momentum cross, footprint imbalance) for entries.
Invalidation: decisive close through the far edge of the zone.
Notes
IOZ highlights wave origins, not generic support/resistance.
On thin/news-driven markets, consider a larger invalidation buffer.
Nota Keluaran
📝 Release Notes — Impulse Wick ZONES (multi-bar waves, capped)Version: 1.3.0 • Date: 2025-10-27
New Features
Impulse-wave origin zones: each zone now starts from the first wick of a multi-bar impulse wave (a sequence of impulsive candles in one direction).
Zone thickness modes:
Ticks – fixed thickness in ticks.
ATR% – proportional to the ATR at the origin.
ImpulseFrac – fraction of the range of the first impulse bar.
Display filter: choose Both, Bullish only, or Bearish only.
Automatic zone extension to the right.
Dynamic recoloring:
Green if the entire zone is below current price.
Red if it’s above current price.
Neutral gray if price is inside the zone.
Improvements
Zone cap (maxZones): FIFO deletion of oldest zones keeps the chart clean.
Optional labels on wave origins.
More robust impulse-wave detection: uses ATR/TR thresholds and close-to-edge condition.
Fixes
Fixed a potential array out-of-bounds when updating zones (now checks array size).
Restored zone extension (box.set_rightbottom) before recoloring to prevent frozen boxes.
Synchronized deletion of boxes and labels in the FIFO queue.
Added / Updated Parameters
zoneMode, ticksSize, atrPct, impFrac – control zone height.
maxZones – maximum number of active zones.
belowCol, aboveCol, insideCol – dynamic color palette.
showLabels – toggle origin labels.
Usage Tips
Start with zoneMode = "ATR%" and atrPct = 0.20 (tune 0.10–0.30 by volatility).
For stricter detection, raise minTrAtr (e.g. 1.5–2.0) and/or nearEdgeFrac (≈ 0.20).
If the chart becomes crowded, reduce maxZones or hide labels.
Compatibility
Pine Script v5, overlay indicator.
Works on any instrument; adapts to live data automatically.
Next planned option: automatic zone invalidation (delete when a close breaks through) and directional cooldown between waves.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.