Stalled Pattern (CDLSTALLEDPATTERN)
Summary
A three-candle pattern of three white candles with consecutively higher closes where the third loses momentum (a small body riding on the shoulder of the second's long body). It is a bearish reversal signal of a stalling advance. A hit (-100) is bearish: the uptrend is stalling and may reverse.
Notes
- The pattern classically appears in an uptrend, but this function does not verify a prior uptrend; the caller must confirm it.
- Bulkowski's testing shows this classically-bearish pattern actually acts as a bullish continuation 77% of the time — the reverse of the label — because price tends to close above the pattern's top rather than turning down. (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 when the pattern is detected (always bearish), 0 otherwise. Never emits +100
Output Values
| Value | Meaning |
|---|---|
| -100 | Stalled Pattern detected: bearish |
| 0 | No pattern |
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: cdlstalledpattern.c · cdlstalledpattern.yaml
| Native | File |
|---|---|
| C | ta_CDLSTALLEDPATTERN.c |
| Rust | cdlstalledpattern.rs |
| Java | Core_CDLSTALLEDPATTERN.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Stalled Pattern, Deliberation Pattern