Concealing Baby Swallow (CDLCONCEALBABYSWALL)
Summary
A four-candle pattern: two black marubozus, then a black candle that gaps down but pokes its upper shadow into the prior body, then a larger black candle fully engulfing the third. A hit signals a bullish reversal.
Notes
- Does not verify the preceding downtrend the pattern classically assumes.
- Despite the bullish-reversal label, Bulkowski's testing found this pattern actually behaves as a bearish continuation 75% of the time — though the finding rests on just 4 occurrences out of 4.7 million candle lines, and it ranks 101st of 103 patterns overall. (thepatternsite.com)
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 on a match, 0 otherwise; never emits -100 (pattern is always bullish)
Output Values
| Value | Meaning |
|---|---|
| 0 | No pattern |
| 100 | Concealing Baby Swallow detected — a bullish reversal signal, most meaningful after a downtrend (unverified by the function) |
Properties
Numerical Stability: Start-Independent
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ✅ Candlestick i |
| ☐ Can Output NaN or ±Inf |
| ☐ Identity at Period 1 |
Implementation
TA-Lib Definition: cdlconcealbabyswall.c · cdlconcealbabyswall.yaml
| Native | File |
|---|---|
| C | ta_CDLCONCEALBABYSWALL.c |
| Rust | cdlconcealbabyswall.rs |
| Java | Core_CDLCONCEALBABYSWALL.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Concealing Baby Swallow