OPEN-SOURCE SCRIPT

Smart Structure Mapper [StrixEDGE]

2 173
Overview

AetherZone is a market structure analysis toolkit that maps the internal architecture of price action in real time. It identifies swing points, tracks structural shifts (BOS & CHoCH), detects order blocks (supply and demand zones), and highlights fair value gaps — consolidating the core framework of institutional price analysis into a single, self-managing overlay.

What This Indicator Does

AetherZone operates through five interconnected analytical layers:

Swing Detection Engine
Identifies confirmed pivot highs and pivot lows using a configurable lookback window. Each swing point is labeled directly on the chart as "Swing High" or "Swing Low" in clean, neutral text. Pivots are confirmed after the required bars have closed on both sides, ensuring the indicator does not repaint or revise historical swing points. Each swing is classified relative to its predecessor as a Higher High (HH), Lower High (LH), Higher Low (HL), or Lower Low (LL).

快照

Market Structure Tracker
Continuously evaluates the relationship between consecutive swing highs and swing lows to determine the prevailing market structure:

- Bullish Structure — Higher Highs + Higher Lows (HH/HL)
快照
- Bearish Structure — Lower Highs + Lower Lows (LH/LL)
快照
- Ranging — Mixed signals or insufficient structural data
快照

BOS & CHoCH Detection
AetherZone uses a flag-based detection system to identify structural breaks. When a new swing point is confirmed, its level becomes active. The first bar where price closes beyond that level triggers the event:

- BOS ↑ / BOS ↓ (Break of Structure) — Price breaks a swing level in the direction of the prevailing trend, confirming continuation. Labeled with directional arrows on the chart.
快照
- CHoCH ↑ / CHoCH ↓ (Change of Character) — Price breaks a swing level against the prevailing trend, signaling a potential reversal. Displayed with a more prominent label and color to draw attention to the structural shift.
快照

A dashed level line is drawn at the broken swing point for visual reference.

Order Block Detection
AetherZone identifies potential institutional interest zones through two configurable modes:

"All Swings" mode (default): An Order Block is created at every confirmed swing point, providing comprehensive zone coverage. On each confirmed pivot low, the last bearish candle near that swing becomes a Demand zone. On each confirmed pivot high, the last bullish candle near that swing becomes a Supply zone.

Bullish OB

"BOS/CHoCH Only" mode: Order Blocks are created only when a structural break occurs, providing fewer but potentially higher-conviction zones.

Fair Value Gap (FVG) Detection

- BULL FVG — Current candle's low is above the candle-two-bars-ago's high (gap up)
快照
- BEAR FVG — Current candle's high is below the candle-two-bars-ago's low (gap down)
快照
FVGs are filtered by a minimum size threshold (percentage of ATR) to eliminate insignificant gaps, and are automatically removed when filled by subsequent price action or when they exceed their maximum age.

Inputs & Customization

Structure
- Show BOS / Show CHoCH — Independent visibility toggles for each structural event type.

Order Blocks
- OB Source — "All Swings" (OB at every pivot, more zones) or "BOS/CHoCH Only" (fewer, higher-conviction zones). Default: All Swings.
- Max OB Age — Bars before an OB is removed due to aging. Default: 120.
- Mitigation Grace — Bars after creation during which an OB cannot be mitigated. Default: 10.
- Max Active OBs — Limits simultaneously displayed OBs per side. Default: 6.

Fair Value Gaps
- Max FVG Age — Bars before an unfilled FVG is removed. Default: 50.
- Min FVG Size (% of ATR) — Minimum gap size to qualify. Default: 10%.
- Max Active FVGs — Limits simultaneously displayed FVGs per side. Default: 5.

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。