Kicking - bull/bear determined by the longer marubozu (CDLKICKINGBYLENGTH)
Summary
A two-candle pattern of two opposite-color marubozu (long body, very short shadows on both ends) separated by a gap. A strong directional/reversal signal whose bull/bear bias is set by the longer of the two marubozu.
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 or -100 on a hit, 0 otherwise. Sign = candlecolor of the candle with the larger realbody (i if realbody(i) > realbody(i-1), else i-1; tie goes to i-1): +100 if that marubozu is white, -100 if black
Output Values
How to read these values from the output's flags: rW7.
| Value | Meaning |
|---|---|
| -100 | Bearish Kicking by Length: the longer of the two marubozu (the first, when both are as long) closed black |
| 0 | No pattern |
| 100 | Bullish Kicking by Length: the longer of the two marubozu (the first, when both are as long) closed white |
Properties
Numerical Stability: Start-Independent
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ✅ Candlestick i |
| ☐ Can Output NaN or ±Inf |
| ☐ Identity at Period 1 |
| ☐ Display Shift |
| ☐ Uses Transcendental |
| ☐ Input Must Be Positive |
Implementation
TA-Lib Definition: cdlkickingbylength.c · cdlkickingbylength.yaml
| Native | File |
|---|---|
| C | ta_CDLKICKINGBYLENGTH.c |
| Rust | cdlkickingbylength.rs |
| Java | Core_CDLKICKINGBYLENGTH.java |
| C# | Core_CDLKICKINGBYLENGTH.cs |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Kicking by Length, Kicking - bull/bear decided by the longer marubozu