CDLUPSIDEGAP2CROWS
CDLUPSIDEGAP2CROWS
Summary
A three-candle bearish reversal pattern: a long white candle, then a small black candle gapping up (a gap between the real bodies), then a black candle that engulfs the second candle's real body but still closes above the first candle's close. Signals a bearish reversal. A hit (-100) is a bearish reversal signal, most meaningful in an uptrend.
Notes
- The pattern classically assumes a prior uptrend, but this function does not verify any 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 pattern bar, 0 otherwise. Bearish-only: this pattern never emits +100
Properties
Numerical Stability: Start-Independent
| Display Flags |
|---|
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ✅ Candlestick i |
Implementation
TA-Lib Definition: cdlupsidegap2crows.c · cdlupsidegap2crows.yaml
| Native | File |
|---|---|
| C | ta_CDLUPSIDEGAP2CROWS.c |
| Rust | cdlupsidegap2crows.rs |
| Java | Core_CDLUPSIDEGAP2CROWS.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Upside Gap Two Crows