CDLHAMMER
CDLHAMMER
Summary
Single-candle pattern: a small real body at the top of the range with a long lower shadow and little or no upper shadow, sitting at or near the prior candle's low. Bullish reversal signal. A hit (+100) flags a potential bullish reversal.
Notes
- Does not verify the preceding downtrend that the pattern classically assumes; confirm the trend context yourself.
Inputs
inOpen— Open price of each barinHigh— High price of each barinLow— Low price of each barinClose— Close price of each bar
Outputs
outInteger— +100 when the hammer is detected, 0 otherwise. Bullish only; never emits -100
Properties
Numerical Stability: Start-Independent
| Display Flags |
|---|
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ✅ Candlestick i |
Implementation
TA-Lib Definition: cdlhammer.c · cdlhammer.yaml
| Native | File |
|---|---|
| C | ta_CDLHAMMER.c |
| Rust | cdlhammer.rs |
| Java | Core_CDLHAMMER.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Hammer