Zone of Interest (ZOI) - FractalsZone of Interest (ZOI) with Breakout Start/Exit Alerts
Overview
The Zone of Interest (ZOI) indicator identifies demand and supply zones based on fractal pivots and provides breakout alerts with Start/Exit signals for precise entry and exit interpretation.
Unlike basic breakout indicators that send alerts on every bar, this script ensures clean alerts only at breakout start and breakout end, making it ideal for traders who want clarity without alert spam.
Key Features
✔ Demand & Supply Zones:
Zones created from fractal pivots (swing highs/lows).
Auto-extend zones until expiry.
✔ Breakout Detection:
Detects bullish (price breaks above demand) and bearish (price breaks below supply) breakouts.
✔ Start & Exit Labels:
START LONG when bullish breakout begins.
EXIT LONG when bullish trend ends.
START SHORT when bearish breakout begins.
EXIT SHORT when bearish trend ends.
✔ Clean Alerts:
Alerts fire only on START and EXIT (not every bar).
✔ Visual Cues:
Triangles for every breakout bar (optional visual reference).
Green/Red background shading during active breakout phase.
Inputs
Input - Description
Fractal Length - Number of bars to confirm a fractal pivot.
Zone Expiry (Bars) - Maximum bars before a zone is removed.
Min Distance Between Zones (%) - Prevents overlapping zones by comparing midpoints.
How It Works
Uses fractal pivots to identify swing highs and lows.
Creates Supply Zones (red) from pivot highs and Demand Zones (green) from pivot lows.
Extends zones to the right until expiry or price action invalidates them.
Breakouts occur when price closes beyond the most recent zone boundary.
Tracks breakout phases and fires alerts only at Start and Exit.
✅ Example: How to Use
Suppose you're analyzing XAU/USD on a 15-minute chart:
Step 1: A green demand zone forms at 3344 – 3360.
Step 2: Price pulls back into the zone and starts moving higher.
Step 3: When price closes above 3360, the indicator triggers START LONG and shades the background green.
Step 4: You ride the trend while price remains above the zone.
Step 5: If price later falls back below 3360, an EXIT LONG label appears, and an alert fires.
✅ This helps you avoid spam alerts and focus on key breakout events.
Best Practices
Works well on 15m and higher timeframes.
Combine with trend confirmation (EMA, Supertrend) for better accuracy.
Designed for manual trading and alert-based setups, not automation.
Fractalstrategies
Fractals with Flexible Visuals and Auto HTFPurpose:
This indicator displays fractals, including significant ones, with enhanced visual
flexibility and new visualization modes.
Functionality:
- Regular Fractals of Current Timeframe: **
Displays standard fractals based on the current chart timeframe.
- Significant Fractals: **
Recognizes significant fractals through a combination of apexes from the current
timeframe and a higher timeframe (HTF).
- Fractal Filtering: **
- Please note that this option makes some fractals dissapear, but someone finds this
to be useful.
- Fractal filtering has been made separate for Regular and Significant fractals.
- HH/LL Labels: **
HH/LL and LH/HL labels are now available separately for Regular and Significant
fractals.
- Automatic HTF Switching for Significant Fractals:
Added automatic HTF thresholds, removing the need to set HTF manually when changing
the chart's timeframe.
- Marker Relocation Modes:
- Mode 0:0
The fractal appears on the bar when it is recognized, not where it forms. This
mode assists traders who want to observe recognition in real-time when developing
strategies with fractals.
- Mode 1:1
The fractal appears on the previous bar when it is recognized, not where it forms.
- Mode 2:2 (General)
The fractal appears two bars back, where it is recognized, not when.
- Other additional Modes for Significant Fractals:
May be good for experimenting with Significant fractals. The first number
indicates bars back for the current timeframe; the second number indicates
bars back for the higher timeframe.
Other modes may assist with additional filtering or be suitable for specific
pairs or timeframes.
- Visual Adjustments:
Added user settings to customize visuals according to preferences.
Acknowledgment:
This indicator's functionality has been refactored from Fractals V9 by Ricardo
Santos (with gratitude to him):
()
'RSFractals' is not used as a name prefix, reflecting that this version lacks the
Zigzag and Pattern functionalities present in 'RSFractals'. If the original author
prefers a different naming convention, they may contact me, and I will gladly make
the adjustment.