OPEN-SOURCE SCRIPT

Wick Reversal - Gavi

101
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↑):

  • 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.

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.