CDLHARAMICROSS
CDLHARAMICROSS
Summary
A two-candle reversal pattern: a long real body followed by a doji whose real body is contained within the first candle's real body (the doji variant of the Harami). Bullish after a black first candle, bearish after a white first candle. A hit signals a potential reversal: +100/+80 bullish (black first candle), -100/-80 bearish (white first candle).
Notes
- Does not verify the prior trend (downtrend for bullish, uptrend for bearish) that the reversal signal 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/+80 when the first candle is black (bullish), -100/-80 when the first candle is white (bearish), 0 otherwise. Magnitude 100 for strict containment inside the first body, 80 when one real-body end matches
Properties
Numerical Stability: Start-Independent
| Display Flags |
|---|
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ✅ Candlestick i |
Implementation
TA-Lib Definition: cdlharamicross.c · cdlharamicross.yaml
| Native | File |
|---|---|
| C | ta_CDLHARAMICROSS.c |
| Rust | cdlharamicross.rs |
| Java | Core_CDLHARAMICROSS.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Harami Cross