CDLSTICKSANDWICH
CDLSTICKSANDWICH
Summary
A three-candle bullish reversal pattern: two black candles (1st and 3rd) sandwiching a white candle, where the 3rd black candle closes at the same level as the 1st (the "bread"). A hit signals a bullish reversal (code comment notes it is significant in a downtrend, which the function does not verify).
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 present, 0 otherwise. Never -100 — Stick Sandwich is always bullish
Properties
Numerical Stability: Start-Independent
| Display Flags |
|---|
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ✅ Candlestick i |
Implementation
TA-Lib Definition: cdlsticksandwich.c · cdlsticksandwich.yaml
| Native | File |
|---|---|
| C | ta_CDLSTICKSANDWICH.c |
| Rust | cdlsticksandwich.rs |
| Java | Core_CDLSTICKSANDWICH.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Stick Sandwich