CDLMORNINGSTAR
CDLMORNINGSTAR
Summary
A three-candle bottom-reversal pattern: a long black candle, a small-bodied star gapping down, then a white candle closing well up into the first candle's body. Bullish reversal signal. A hit signals a bullish reversal (most meaningful after a downtrend, which the code does not check).
Notes
- The gap-down is measured between the candles' real bodies, not between their high/low ranges.
- A prior downtrend is not verified.
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 morning star is detected, 0 otherwise. Never negative (pattern is exclusively bullish)
Parameters
| Parameter | Type | Default | Accepted values | Description |
|---|---|---|---|---|
optInPenetration | real | 0.3 | ≥ 0 | Fraction of the 1st candle's body the 3rd close must exceed above the 1st close; larger = deeper penetration required |
Properties
Numerical Stability: Start-Independent
| Display Flags |
|---|
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ✅ Candlestick i |
Implementation
TA-Lib Definition: cdlmorningstar.c · cdlmorningstar.yaml
| Native | File |
|---|---|
| C | ta_CDLMORNINGSTAR.c |
| Rust | cdlmorningstar.rs |
| Java | Core_CDLMORNINGSTAR.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Morning Star
See Also
CDLMORNINGDOJISTAR · CDLEVENINGSTAR · CDLABANDONEDBABY · CDLDOJISTAR