Long Line Candle (CDLLONGLINE)
Summary
A single-candle pattern: a long real body with short upper and short lower shadow. The signal direction follows the candle color (bullish if white, bearish if black). Signals strong directional conviction on the bar. Not intrinsically a reversal or continuation signal.
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 white (close>=open) long line, -100 on a black long line, 0 when no pattern
Output Values
| Value | Meaning |
|---|---|
| -100 | Black long-line candle (long body, short shadows) |
| 0 | No pattern |
| 100 | White long-line candle (long body, short shadows) |
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: cdllongline.c · cdllongline.yaml
| Native | File |
|---|---|
| C | ta_CDLLONGLINE.c |
| Rust | cdllongline.rs |
| Java | Core_CDLLONGLINE.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Long Line Candle, Long Line
See Also
CDLSHORTLINE · CDLCLOSINGMARUBOZU · CDLMARUBOZU · CDLLONGLEGGEDDOJI