OPEN-SOURCE SCRIPT
Wick Reversal - Gavi

Detect clean single-bar reversal candles (hammer / shooting star variants) with objective rules.
This script flags bars where a dominant wick overwhelms the body and the close finishes near the relevant extreme of the candle—an evidence-based way to find potential turns or continuation traps.
What it detects
A bar is labeled a Wick Reversal when any of these structures occur:
Bullish candidates (WR↑):
Bearish candidates (WR↓):
Close-percent is measured from the high (bullish) or from the low (bearish), matching the commonly used definition.
This script flags bars where a dominant wick overwhelms the body and the close finishes near the relevant extreme of the candle—an evidence-based way to find potential turns or continuation traps.
What it detects
A bar is labeled a Wick Reversal when any of these structures occur:
Bullish candidates (WR↑):
- Long lower wick ≥ Wick_Multiplier × Body, and
- Close finishes in the top X% of the bar’s range.
- Doji and flat-top variants are also handled (size-filtered).
Bearish candidates (WR↓):
- Long upper wick ≥ Wick_Multiplier × Body, and
- Close finishes in the bottom X% of the bar’s range.
- Doji and flat-bottom variants are also handled (size-filtered).
Close-percent is measured from the high (bullish) or from the low (bearish), matching the commonly used definition.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.