CDLDOJI
CDLDOJI
Summary
Single-candle Doji recognizer: fires when the real body (|close-open|) is at or below the BodyDoji threshold. Returns 100 on a match, 0 otherwise. Market indecision; neither bullish nor bearish on its own.
Formula
match if
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 a doji is detected, else 0
Properties
Numerical Stability: Start-Independent
| Display Flags |
|---|
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ✅ Candlestick i |
Implementation
TA-Lib Definition: cdldoji.c · cdldoji.yaml
| Native | File |
|---|---|
| C | ta_CDLDOJI.c |
| Rust | cdldoji.rs |
| Java | Core_CDLDOJI.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Doji
See Also
CDLDOJISTAR · CDLDRAGONFLYDOJI · CDLGRAVESTONEDOJI · CDLLONGLEGGEDDOJI