OPEN-SOURCE SCRIPT
Hunters Reversal v2.3

Three independent reversal signals, each detecting a different type of turning point. When multiple signals cluster together within a short window, the probability of reversal increases significantly.
Part of the Hunters Framework ... WHERE / WHEN / WHY
SIGNAL 1: LIQUIDITY SWEEP
Detects when price wicks beyond a confirmed pivot high or low, triggers the stops sitting there, then closes back inside. This is the "stop hunt" pattern.
Unlike simple wick detection, this version requires:
- The level being swept must be a confirmed pivot (not just a rolling extreme)
- The sweep candle must penetrate the level by a minimum amount (filters noise) but not too far (filters breakouts)
- Post-sweep confirmation: price must stay below/above the sweep extreme for N bars before the signal fires
- Signal is plotted retroactively at the actual sweep bar once confirmed
This eliminates the majority of false sweeps that plague simpler implementations.
SIGNAL 2: RSI DIVERGENCE
Classic divergence between price and RSI at confirmed pivot points.
- Bearish: price makes a higher high but RSI makes a lower high
- Bullish: price makes a lower low but RSI makes a higher low
Requires a minimum distance between the two pivots being compared (default 15 bars) to filter out noise from pivots that are too close together.
SIGNAL 3: PIVOT + EXTENSION
Fires when price forms a confirmed pivot at an extreme distance from the EMA. This catches overextended moves that are likely to snap back.
Requirements:
- The pivot must be the highest high (or lowest low) within a lookback window
- The distance from the EMA must exceed a configurable ATR multiple (default 3x ATR)
These are the rubber-band snapback setups ... price stretched too far from the mean.
TIER CLASSIFICATION (BIG SIGNALS)
When two or more of the three signals fire within a short window (default 8 bars), a large "BIG" triangle appears. These cluster signals represent the highest confidence reversals because multiple independent conditions are confirming the same turning point.
For example: a liquidity sweep at an overextended pivot WITH RSI divergence ... that is three separate reasons saying "this move is done."
INVALIDATION
Every signal comes with a built-in invalidation check. If price moves too far beyond the signal level within a configurable window (default 8 bars, 0.6 ATR), an X marker appears showing the signal was invalidated. This keeps you honest ... no holding a losing position hoping the reversal still plays out.
COOLDOWN
A per-direction cooldown (default 20 bars) prevents signal spam. After a bear signal fires, no new bear signals for 20 bars. Bull signals are tracked independently.
SETTINGS OVERVIEW
Pivot Detection:
- Left/Right bars for pivot confirmation (default 15/5)
- Minimum prominence filter (pivot must stand out from surrounding price by at least 1 ATR)
Liquidity Sweep:
- Pivot lookback for sweep targets (default 100 bars)
- Min/max penetration in ATR (0.1 to 1.0 ... filters both noise and breakouts)
- Confirmation bars (default 3 ... price must hold for 3 bars after sweep)
RSI Divergence:
- Standard RSI settings (default 14)
- Lookback and minimum distance between pivot pairs
Extension:
- EMA length (default 50)
- Minimum ATR distance from EMA (default 3x)
- Pivot must be extreme within N bars (default 30)
HOW IT FITS THE FRAMEWORK
Hunters Reversal answers WHEN ... specifically, when is a move likely exhausted and ready to reverse?
Used alongside:
- Liquidity Hunter ... shows WHERE the key levels are (the targets being swept)
- Trend Hunter ... shows the broader trend context (is this a counter-trend reversal or a pullback entry?)
- RSI+StochRSI ... provides additional momentum confirmation
The strongest setups: a Hunters Reversal BIG signal at a Liquidity Hunter zone with Trend Hunter showing momentum divergence on the higher timeframe.
ALERTS
8 alertconditions covering all signal types:
- Bear/Bull Liquidity Sweep
- Bear/Bull RSI Divergence
- Bear/Bull Pivot Extension
- Bear/Bull BIG (cluster signal ... highest priority)
EOF
grep -c "..." /home/claude/tv_publish_hunters_reversal.txt && echo "EM DASHES" || echo "Clean"
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.