CDLPIERCING
CDLPIERCING
Summary
Two-candle pattern: a long black candle followed by a long white candle that opens below the prior low and closes back above the midpoint of the prior black body. Bullish reversal signal. A hit (+100) is a bullish reversal signal.
Notes
- A prior downtrend is not verified.
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 piercing pattern is detected; 0 otherwise. Always bullish, never emits -100
Properties
Numerical Stability: Start-Independent
| Display Flags |
|---|
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ✅ Candlestick i |
Implementation
TA-Lib Definition: cdlpiercing.c · cdlpiercing.yaml
| Native | File |
|---|---|
| C | ta_CDLPIERCING.c |
| Rust | cdlpiercing.rs |
| Java | Core_CDLPIERCING.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Piercing Pattern, Piercing Line