CDLONNECK
Summary
A two-candle on-neck pattern: a long black candle followed by a white candle that opens below the prior candle's low and closes right at that low. Bearish continuation signal. A hit is bearish (bearish continuation); the code does not verify the assumed prior downtrend.
Formula
Two candles. 1st: black (close
Notes
- The bearish-continuation reading assumes a prior downtrend, which is not verified.
Inputs
inPriceOHLC— Open/High/Low/Close price series
Outputs
outInteger— -100 on a match, 0 otherwise. Only -100 is ever emitted (never +100); on-neck is always bearish
Implementation
TA-Lib Definition: cdlonneck.c · cdlonneck.yaml
| Native | File |
|---|---|
| C | ta_CDLONNECK.c |
| Rust | cdlonneck.rs |
| Java | Core.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
On-Neck Pattern, On-Neck Line
See Also
CDLINNECK · CDLTHRUSTING · CDLMEETINGLINES