CDL3WHITESOLDIERS
CDL3WHITESOLDIERS
Summary
A three-candle pattern of consecutive white candles with progressively higher closes, each opening within/near the prior body and each with a very short upper shadow. It is a bullish reversal signal. A hit (+100) is bullish, signaling a reversal (most meaningful in a downtrend, which the code does not verify).
Notes
- Does not verify the prior downtrend the pattern classically assumes for significance.
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, 0 otherwise; never negative (three white soldiers is always bullish)
Properties
Numerical Stability: Start-Independent
| Display Flags |
|---|
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ✅ Candlestick i |
Implementation
TA-Lib Definition: cdl3whitesoldiers.c · cdl3whitesoldiers.yaml
| Native | File |
|---|---|
| C | ta_CDL3WHITESOLDIERS.c |
| Rust | cdl3whitesoldiers.rs |
| Java | Core_CDL3WHITESOLDIERS.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Three Advancing White Soldiers, Three White Soldiers