In-Neck Pattern (CDLINNECK)
Summary
A two-candle in-neck pattern: a long black candle followed by a white candle that opens below the prior low and closes just barely into the prior body (near the prior close). It is a bearish continuation signal. A hit signals bearish continuation (the down move is expected to resume).
Formula
Two candles. First: black (close1 < open1) with a long real body (realbody > candleaverage(BodyLong)). Second: white (close2 >= open2), opens below the first candle's low (open2 < low1), and closes slightly into the first body: close2 >= close1 AND close2 <= close1 + candleaverage(Equal). No prior-trend check is performed.
Notes
- Does not verify the preceding downtrend that this bearish continuation pattern assumes.
- Bulkowski's testing found the bearish continuation holds only 53% of the time — "near random" — though its overall post-breakout performance still ranks a strong 17th of 103. (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 in-neck pattern is detected, 0 otherwise. This pattern only ever emits the negative (bearish) signal; it never emits +100
Output Values
| Value | Meaning |
|---|---|
| -100 | In-Neck pattern detected: bearish continuation |
| 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: cdlinneck.c · cdlinneck.yaml
| Native | File |
|---|---|
| C | ta_CDLINNECK.c |
| Rust | cdlinneck.rs |
| Java | Core_CDLINNECK.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
In-Neck Pattern, In-Neck Line