Inverted Hammer
By LuxAlgoJun 21, 2026
Inverted Hammer is an indicator on Vela, our next-generation charting platform, written in Pine Script®.
Inverted Hammer detects the single-candle bottom-reversal candidate with measurable proportions, then manages what matters most: confirmation. A qualifying inverted hammer needs an upper shadow at least twice the real body, a lower shadow within 10% of the range, a real body of at least 5%, and a decline into the candle.
How to Trade the Inverted Hammer?
- Tentative IH tag: a candidate only. The candle closes weak by construction, so nothing is implied until follow-through appears.
- Confirmation triangle: fires when the next candle gaps above the body or closes bullish, or price trades above the pattern high in the window.
- Trigger and stop lines: entry above the pattern high, invalidation below the pattern low, drawn while it is pending.
Each pattern resolves within the window as confirmed, invalidated, or expired; set the window to 1 for the strict next-candle reading.
Inverted Hammer Settings
- Minimum Upper Shadow / Body Ratio (default 2), Maximum Lower Shadow (%) (default 10), Minimum Real Body (%) (default 5): the shape tests: shadow multiple, shaved-low tolerance, and the body floor that excludes gravestone-style doji.
- Bullish Body Only (default disabled): classical references accept either body color.
- Decline Detection (default Price Below SMA) with SMA Length (default 50) and Decline Lookback (default 5): how the decline into the candle is established.
- Confirmation Window (default 3): bars allowed before an unconfirmed pattern is set aside; the gap-up, bullish-close, and trade-above-high rules all default on.
- Volume Grading (default Highlight), Volume Average Length (default 20), Elevated Volume Multiple (default 1.5): participation grading. An IH+ tag marks elevated volume; bypassed without volume data.
- Labels, levels, resolution markers, and colors are style options.
Frequently Asked Questions
Free to use
Run it on Vela. Go further with a paid plan.
- Up to 500 Custom Alerts, with webhook automation
- Up to 10× the chart history of Free
- Orderflow lookback up to full history
- More Quant usage to customize it, plus extra usage when you need it
- Futures data alongside crypto, stocks, forex and commodities
Related indicators
Run it on Vela. Make it yours with Quant.
Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.





