OPEN-SOURCE SCRIPT
Actualizado Hexatap

Hexatap — 6-Point Reversal Pattern Detector
Hexatap automatically detects a specific 6-point price structure that forms during strong trending moves, identifying high-probability reversal entry zones where price is likely to retrace before continuing in the dominant direction.
How it works
The indicator scans for a sequence of swing points that confirm trending market structure — three ascending highs in a bullish market or three descending lows in a bearish market. Between these structural points, it identifies key intermediary extremes and validates whether a liquidity sweep has occurred into a critical supply/demand zone. When the full 6-point structure completes, the indicator draws the zone and highlights the golden ratio entry area where price is statistically likely to reverse and continue the trend.
The 6-point structure
Point 1–2 form the initial range and define the supply/demand zone. Point 3 confirms the trend direction by breaking structure. Point 4 sweeps back into the zone, tapping liquidity. Point 5 breaks structure again, confirming momentum. Point 6 is the entry signal — price retraces into the zone one final time, reaching the 0.382–0.618 fibonacci sweet spot before reversing.
Features
Recommended timeframes
Works on any timeframe. Lower swing lookback values (2–3) work well for lower timeframes. Higher values (4–6) suit higher timeframes. The ATR filter helps eliminate noise without missing valid patterns.
How to use
Set your directional bias based on your higher timeframe analysis
Wait for the indicator to detect a valid 6-point structure (TAP 1–5)
Watch for price to retrace back to the zone after the structure completes
The A+ entry signal fires when price reaches the 0.382–0.618 area — your entry zone
Place your stop below the zone (bullish) or above the zone (bearish)
Target the previous structure high/low for a minimum 1:1 risk-reward
Settings guide
Swing Lookback: Controls how many bars are needed to confirm a swing point. Lower = more sensitive, higher = fewer but stronger swings
Min Swing Size (ATR): Filters out insignificant swings. Set to 0 to disable
Zone Sweep Threshold: How deep the sweep into the zone can be before the setup is downgraded from A+ to A-
Zone Extend: How many bars the zone box extends to the right after detection
Hexatap automatically detects a specific 6-point price structure that forms during strong trending moves, identifying high-probability reversal entry zones where price is likely to retrace before continuing in the dominant direction.
How it works
The indicator scans for a sequence of swing points that confirm trending market structure — three ascending highs in a bullish market or three descending lows in a bearish market. Between these structural points, it identifies key intermediary extremes and validates whether a liquidity sweep has occurred into a critical supply/demand zone. When the full 6-point structure completes, the indicator draws the zone and highlights the golden ratio entry area where price is statistically likely to reverse and continue the trend.
The 6-point structure
Point 1–2 form the initial range and define the supply/demand zone. Point 3 confirms the trend direction by breaking structure. Point 4 sweeps back into the zone, tapping liquidity. Point 5 breaks structure again, confirming momentum. Point 6 is the entry signal — price retraces into the zone one final time, reaching the 0.382–0.618 fibonacci sweet spot before reversing.
Features
- Auto-detection of bullish and bearish 6-point reversal structures
- Manual directional bias selector (Bullish / Bearish / Both)
- Configurable swing detection with ATR-based noise filtering
- Supply/demand zone drawing with adjustable extension
- Golden ratio levels (0.382, 0.500, 0.618, 0.786) — each individually toggleable with custom colors, styles, and line widths
- Golden pocket fill (0.618–0.786) with adjustable color
- A+ / A- setup quality grading based on zone sweep depth
- Smart entry detection using wick penetration into the fibonacci sweet spot
- Four configurable alerts: structure complete, price approaching zone, entry signal, and low quality sweep warning
Recommended timeframes
Works on any timeframe. Lower swing lookback values (2–3) work well for lower timeframes. Higher values (4–6) suit higher timeframes. The ATR filter helps eliminate noise without missing valid patterns.
How to use
Set your directional bias based on your higher timeframe analysis
Wait for the indicator to detect a valid 6-point structure (TAP 1–5)
Watch for price to retrace back to the zone after the structure completes
The A+ entry signal fires when price reaches the 0.382–0.618 area — your entry zone
Place your stop below the zone (bullish) or above the zone (bearish)
Target the previous structure high/low for a minimum 1:1 risk-reward
Settings guide
Swing Lookback: Controls how many bars are needed to confirm a swing point. Lower = more sensitive, higher = fewer but stronger swings
Min Swing Size (ATR): Filters out insignificant swings. Set to 0 to disable
Zone Sweep Threshold: How deep the sweep into the zone can be before the setup is downgraded from A+ to A-
Zone Extend: How many bars the zone box extends to the right after detection
Notas de prensa
Tweaked some wrong drawings when historical zones were passedScript de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.