CDLDARKCLOUDCOVER
CDLDARKCLOUDCOVER
Summary
A two-candle bearish reversal pattern: a long white candle followed by a black candle that opens above the prior high and closes deep into the prior white body past a penetration threshold. Signals a potential top. A hit (-100) is a bearish reversal signal, most meaningful after an uptrend.
Notes
- Does not verify the preceding uptrend the bearish reversal classically assumes.
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 detected (always bearish), 0 otherwise; never emits +100
Parameters
| Parameter | Type | Default | Accepted values | Description |
|---|---|---|---|---|
optInPenetration | real | 0.5 | ≥ 0 | Fraction of candle 1's real body that candle 2's close must penetrate below close[i-1]; larger values require deeper penetration |
Properties
Numerical Stability: Start-Independent
| Display Flags |
|---|
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ✅ Candlestick i |
Implementation
TA-Lib Definition: cdldarkcloudcover.c · cdldarkcloudcover.yaml
| Native | File |
|---|---|
| C | ta_CDLDARKCLOUDCOVER.c |
| Rust | cdldarkcloudcover.rs |
| Java | Core_CDLDARKCLOUDCOVER.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Dark Cloud Cover