CDLHOMINGPIGEON
CDLHOMINGPIGEON
Summary
Two-candle pattern: a long black candle followed by a small black candle whose real body sits inside the prior body. Bullish reversal signal. A hit signals a bullish reversal (meaningful in a downtrend, which the code does not verify).
Formula
Two candles at i-1 and i. Both black: close[i-1] < open[i-1] and close[i] < open[i]. First body long: realbody[i-1] > BodyLong average. Second body short: realbody[i] <= BodyShort average. Second body contained by first: open[i] < open[i-1] and close[i] > close[i-1].
Notes
- Does not verify the preceding downtrend that the bullish reversal classically assumes.
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 pattern is detected, 0 otherwise. Never emits -100 (always bullish)
Properties
Numerical Stability: Start-Independent
| Display Flags |
|---|
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ✅ Candlestick i |
Implementation
TA-Lib Definition: cdlhomingpigeon.c · cdlhomingpigeon.yaml
| Native | File |
|---|---|
| C | ta_CDLHOMINGPIGEON.c |
| Rust | cdlhomingpigeon.rs |
| Java | Core_CDLHOMINGPIGEON.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Homing Pigeon