Upside Gap Two Crows (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.
- Although classically a bearish reversal, Bulkowski's testing found this actually acts as a bullish continuation 60% of the time, and even when it does work "the price move is often lousy." (thepatternsite.com)
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
Output Values
| Value | Meaning |
|---|---|
| -100 | Upside Gap Two Crows pattern detected: bearish |
| 0 | No pattern |
Properties
Numerical Stability: Start-Independent
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ✅ Candlestick i |
| ☐ Can Output NaN or ±Inf |
| ☐ Identity at Period 1 |
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