OPEN-SOURCE SCRIPT
已更新 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
版本注释
Tweaked some wrong drawings when historical zones were passed开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。