CDLTASUKIGAP
CDLTASUKIGAP
Summary
A three-candle pattern: a real-body-gapping candle followed by an opposite-color candle that opens inside its body and closes back into the gap without filling it. An upside gap is a bullish continuation signal; a downside gap is a bearish continuation signal. Hit signals trend continuation: +100 bullish (in an uptrend), -100 bearish (in a downtrend).
Notes
- This continuation pattern does not verify the prior trend it classically assumes; the caller must confirm the trend.
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 bullish (upside-gap) tasuki gap, -100 on a bearish (downside-gap) tasuki gap, 0 otherwise. Sign equals the color of the gap candle i-1 (candlecolor(i-1)*100)
Properties
Numerical Stability: Start-Independent
| Display Flags |
|---|
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ✅ Candlestick i |
Implementation
TA-Lib Definition: cdltasukigap.c · cdltasukigap.yaml
| Native | File |
|---|---|
| C | ta_CDLTASUKIGAP.c |
| Rust | cdltasukigap.rs |
| Java | Core_CDLTASUKIGAP.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Tasuki Gap, Upside/Downside Tasuki Gap