CDLTHRUSTING
CDLTHRUSTING
Summary
A two-candle pattern: a long black candle followed by a white candle that opens below the prior low and closes back into the prior body but below its midpoint. It is a bearish continuation signal. A hit is bearish: the failed white push back into the black body signals continuation of the down move.
Notes
- The pattern is classically meaningful only in a downtrend, but this function does not verify any prior trend.
- Although the pattern can be read as bullish in an uptrend or when it recurs, this function ignores trend and always reports it as bearish.
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, 0 otherwise. Always bearish; never emits +100
Properties
Numerical Stability: Start-Independent
| Display Flags |
|---|
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ✅ Candlestick i |
Implementation
TA-Lib Definition: cdlthrusting.c · cdlthrusting.yaml
| Native | File |
|---|---|
| C | ta_CDLTHRUSTING.c |
| Rust | cdlthrusting.rs |
| Java | Core_CDLTHRUSTING.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Thrusting Pattern, Thrusting Line
See Also
CDLINNECK · CDLONNECK · CDLPIERCING · CDLMEETINGLINES