CustomTradingPlatform .com
Log in Get started free
Home / Technical Analysis / Candlestick patterns / Hammer

Candlestick formation · Bullish

Hammer

What is it, in one line

Small body at the top of the range with a long lower wick, after a decline.

Bullish · 1 candle · verdict: rule and thresholds below

Bullish 1 candle Traditional claim
Hammer — 11 price bars ending on the bar where the Hammer completes. The final bar is the formation, shaded; the bars before it are the prior context the rule requires.
Verified example · fires the Hammer rule · not a schematic

What has to be true

Small body at the top of the range with a long lower wick, after a decline. The engine checks the formation as an executable condition over open, high, low and close, with a trend filter applied before the count is kept.

candles = 1 candle
direction = Bullish
trend filter = prior decline
forward window = 10 bars

Method

What the engine tests

A single candle with a small real body sitting at the top of its range and a lower wick at least twice the body, appearing after a run of falling prices. During the session price was driven well below where it eventually closed.

Family
Candlestick
Bars
Single bar
Direction
Bullish
Class
Reversal
Prior context
Downtrend
TA-Lib
CDLHAMMER

The traditional claim

Traditionally read as a bullish reversal signal, on the reasoning that sellers pushed price down and failed to hold it there.

How this detection is wrong

Geometrically identical to a hanging man; only the prior trend separates them, which is why maxPriorSlope is a parameter rather than a hard assumption. A hammer with a near-zero body also satisfies dragonfly-doji. Both detections are reported rather than arbitrated.

The thresholds the detector uses

Published so the count can be reproduced. Every figure below is a parameter of the rule, not a preference: change one and the occurrence count changes with it.

Detection parameters for the Hammer
ParameterMeaningDefault
maxBodyPctbody, at most, as a share of the range0.33
minLowerPctlower wick, at least, as a share of the range0.5
maxUpperPctupper wick, at most, as a share of the range0.12
minLowerToBodylower wick, as a multiple of the body2
trendPeriodbars of prior trend inspected5
maxPriorSlopeprior slope must be below-1
strict
Tighter thresholds. Fewer detections, each a cleaner example.
maxBodyPct 0.25 · minLowerPct 0.6 · maxUpperPct 0.08 · maxPriorSlope -1.5
loose
Wider thresholds. More detections, more marginal ones.
maxBodyPct 0.4 · minLowerPct 0.45 · maxUpperPct 0.2 · maxPriorSlope -0.5
no-context
The prior-trend requirement removed, so the shape alone fires.
maxPriorSlope not applied

Easily mistaken for

These share enough geometry that a detector can return more than one of them on the same bar. The engine reports every match rather than picking a winner.

Every pair on the site that can be mistaken for another, and what separates each: the look-alikes index.

Common questions

What is a Hammer candlestick pattern?

A single candle with a small real body sitting at the top of its range and a lower wick at least twice the body, appearing after a run of falling prices. During the session price was driven well below where it eventually closed. The detector also requires a prior downtrend, so the same shape in the wrong context is not counted.

Is the Hammer bullish or bearish?

It is read as bullish. Traditionally read as a bullish reversal signal, on the reasoning that sellers pushed price down and failed to hold it there.

When is a Hammer not a Hammer?

Geometrically identical to a hanging man; only the prior trend separates them, which is why maxPriorSlope is a parameter rather than a hard assumption. A hammer with a near-zero body also satisfies dragonfly-doji. Both detections are reported rather than arbitrated.

How is a Hammer detected?

As an executable rule over open, high, low and close, with 6 named parameters — including body, at most, as a share of the range 0.33, lower wick, at least, as a share of the range 0.5, upper wick, at most, as a share of the range 0.12 — all published on this page so the count can be reproduced. Strict and loose variants are defined as well, so the sensitivity of the count to those thresholds is visible rather than assumed.

Measurement pending re-run

No hit rate is published here yet. The run that would supply one was computed on engine ca6d9e36c81c; the engine is now cfb08765de7c. Its candlestick rows included the still-forming bar, and it predates the chart formations entirely, so those figures have been withdrawn rather than published with a caveat. The definition above is unaffected: it is what the detector tests, and no re-run changes it.

Same shape, opposite reading

Hanging Man

These two are the same shape. Only the prior trend separates them — this one requires a preceding downtrend, the other a preceding uptrend. A detector that ignores context returns both on the same bar, which is why the prior-slope threshold is a published parameter here rather than a hidden assumption.

Hanging Man: The same shape as a hammer, but after a rise. Context is the only difference.

How this was measured →

Other single-candle formations

All 107 →
Inverted Hammer Small body at the bottom with a long upper wick, after a decline.
Hanging Man The hammer shape, but appearing after a rise instead.
Shooting Star Small body at the bottom with a long upper wick, after a rise.
Doji Open and close within a hair of each other. Indecision by definition.

Size a trade on this setup before you take it.