Unique 3 River (CDLUNIQUE3RIVER)
Summary
A three-candle bullish reversal pattern: a long black candle, then a black harami candle that makes a lower low, then a small white candle. Signals a potential bullish reversal, ideally in a downtrend (trend not checked by the code). A hit (+100) marks a bullish reversal; significant in a downtrend, which the function does not verify.
Notes
- Although classically a bullish reversal (and TA-Lib only emits +100), Bulkowski's testing found the opposite: it acts as a bearish continuation 60% of the time, ranking 60th of 103 patterns overall. (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 when the pattern is present, 0 otherwise. Bullish-only: never emits -100
Output Values
| Value | Meaning |
|---|---|
| 0 | No pattern |
| 100 | Unique 3 River detected — bullish reversal signal |
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: cdlunique3river.c · cdlunique3river.yaml
| Native | File |
|---|---|
| C | ta_CDLUNIQUE3RIVER.c |
| Rust | cdlunique3river.rs |
| Java | Core_CDLUNIQUE3RIVER.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Unique 3 River, Unique Three River Bottom