Hammer Candlestick: How to Spot It and Trade It
A hammer candlestick is a single candle with a small body and a long lower shadow, and it tends to appear exactly where a downtrend runs out of steam. Sellers dragged price down hard during the session. Buyers took it all back before the close. That tug-of-war, compressed into one bar, is the whole story the shape is telling you.
It is one of the first patterns a new trader learns — and one of the first they misuse. This guide keeps it honest. You will get the exact geometry, the trick to telling a hammer from its bearish twin, and a trading workflow that will not get you chopped to pieces.
What a hammer candlestick means
Read the candle as a diary of one session. Three measurements matter. The body spans open to close. Below it, the lower shadow records how far price tumbled before buyers dragged it back — normally the longest stretch of a hammer. Whatever pokes out above the body is the upper shadow, and on a clean hammer there is almost none.
Three things happened, in this order. Price opened, then dropped sharply and carved out that long tail, and finally clawed its way back to close near — or above — where it began. The long lower wick is the tell. A decline got rejected inside a single bar, and that rejection is the entire signal.
By itself, though, the hammer only whispers. Context does the shouting, which is why where the candle prints matters as much as what it looks like. Hold that thought; it comes back twice.
How to identify a hammer: the exact rules
batch_hammer checks on every candle.Most guides get vague right here. We will not, because Vike's pattern engine scores hammers with a strict rule set — and you can apply the same math with your eyes.
To qualify as a hammer, a candle must satisfy three conditions at once:
- The body is at most 30% of the full high-to-low range — a small body.
- The lower shadow is at least twice the size of the body — a long tail.
- The upper shadow is no bigger than the body — little to nothing up top.
That is the complete definition, and the boundaries are strict. Stubby lower wick? Not a hammer, however bullish the bar feels. Tall wick on top instead of underneath? That is a different pattern with a different meaning, covered in our candlestick patterns hub.
How Vike computes it. The detector invike-indicators(batch_hammer) flags a bar whenbody ≤ 0.3 × range,lower_shadow ≥ 2 × body, andupper_shadow ≤ body. Three conditions, coded once, checked against every candle on the chart.
Body color barely matters. A hammer can close green or red. Green — close above open — is marginally stronger because buyers finished in front. Red still qualifies. Remember: the tail carries the signal, not the color.
There is one hard floor, though, and it surprises people: a candle that opens and closes at exactly the same price is never a hammer. batch_hammer discards zero-body bars before it tests anything else, so that candle — long tail, no body at all — is a dragonfly doji instead, and only the doji detector will flag it. Squeeze a hammer's body to literally nothing and it stops being a hammer.
Just above that floor the two overlap happily. A bar with a sliver of a body and a long tail can satisfy both detectors at once, and neither label is wrong. They are asking different questions, which is the part worth internalizing: the hammer test is self-contained — it measures the body against that same candle's range — while the doji test measures the body against the recent average body. A hammer is a hammer in isolation. Whether a candle counts as a doji depends on the candles around it.
Hammer, hanging man, and inverted hammer
Now the part that trips everyone up, and the reason "hammer candlestick in an uptrend" gets searched so often.
Here is the twist: a hammer and a hanging man are the same shape. Small body, long lower shadow, negligible top — identical. Vike's own code settles the argument, since the hammer and hanging-man detectors run byte-for-byte the same conditions and differ only in the sign they emit. Location is the divider.
- Print that shape after a downtrend and you have a hammer — potentially bullish.
- Print the very same shape after an uptrend and the label flips to hanging man — potentially bearish.
Spot a textbook "hammer" at the top of a rally? You have not found a hammer. You have found a hanging man in disguise. Read the trend first. Name the candle second.
Its mirror image, the inverted hammer, flips the tail to the top: small body, long upper shadow, tiny base, printed after a decline. Bullish as well, but a different tell.
Is a red hammer bearish?
No — not on its own.
Picture a red hammer: it closed a touch below its open, yet that long lower shadow still shows buyers defending a lower price. Traders search "hammer candlestick bearish" because a red body feels bearish while the pattern is labeled bullish, and the mismatch nags at them. It should not. Body color is a footnote. Trend context is the headline, and this same red-bodied shape only turns bearish when it shows up as a hanging man after a run higher.
How to trade a hammer candlestick
Treat the hammer as an entry idea, never an entry signal. Alone, it fails often enough to sting. Below is the workflow I actually run — plus the rookie mistake I paid for.
Wait for confirmation. The classic error, the one I made on my first dozen hammers, is buying the hammer's own close. Don't. Let the next candle close above the hammer's high before you act, because that follow-through is your proof that real buyers showed up rather than a dead-cat bounce that flops straight back over.
Anchor the stop beneath the tail. The extreme low of that lower shadow is your line in the sand — a clean, unambiguous invalidation. Price trades back under it, the rejection failed, the thesis is dead, and you are out. No debate.
Size to the stop, not to your hopes. Here is a concrete, illustrative example. A stock slides to $100 and prints a hammer bottoming at $98. The next bar closes at $101 and confirms. You enter at $101, set the stop at $97.90 just below the tail, and target $107 near old resistance — roughly $3.10 of risk against $6 of reward, better than two-to-one before you have added a single extra filter.
Grade the setup by its neighborhood. A hammer landing on something that already matters — a prior support shelf, a key moving average, a psychological round number — outclasses one floating in empty space. Confluence is what upgrades a coin-flip into an edge.
Where hammers fail
Here is the honesty section that most pattern guides quietly skip.
Hammers fail hardest inside strong downtrends, where every long tail masquerades as a bottom while price just keeps grinding lower. They fail in thin, low-volume tape, where a single outsized order fakes a rejection that no genuine demand supports. And they fail whenever an impatient trader skips confirmation to buy the candle itself.
The shape predicts nothing. It marks a spot where a reversal could start. Your job is to demand evidence before committing, then to be wrong fast and cheap when that evidence never arrives.
Hammer plus RSI: a sharper read
One filter earns its keep: stack the hammer on top of momentum. A hammer that prints while RSI sits below 30 — oversold — beats a hammer floating in neutral territory every time. The candle says buyers stepped in. The oscillator says the market was stretched thin to the downside at that exact moment. Two independent reasons crush one.
Frequently asked questions
Is a hammer candlestick bullish or bearish? Bullish, but only when it prints after a downtrend, because the very same silhouette appearing after an uptrend is actually a hanging man that reads bearish instead. Context decides. The shape alone tells you nothing until you know where on the chart it landed.
Does a hammer have to be green? No. Green is marginally stronger, yet a red hammer is still a perfectly valid hammer. The long lower shadow is the signal; the body color is noise.
What is the success rate of a hammer candlestick? There is no fixed figure, and anyone quoting one to the decimal is guessing. Reliability climbs sharply when you wait for a confirmation candle and take hammers at established support instead of open air.
Why does a hammer appear in an uptrend? If it shows up after a rally, it is not truly a hammer — it is a hanging man, the same silhouette carrying a bearish message. Always read the trend before you name the pattern.
Educational content, not financial advice. Trading carries real risk of loss, and past pattern behavior does not guarantee future results. Check any setup against your own plan before you risk capital.