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 \(|close-open| \le \text{CandleAverage(BodyDoji)}\)
Inputs
inPriceOHLC— OHLC price bars
Outputs
outInteger— 100 when a doji is detected, else 0
Implementation
TA-Lib Definition: cdldoji.c · cdldoji.yaml
| Native | File |
|---|---|
| C | ta_CDLDOJI.c |
| Rust | cdldoji.rs |
| Java | Core.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Doji
See Also
CDLDOJISTAR · CDLDRAGONFLYDOJI · CDLGRAVESTONEDOJI · CDLLONGLEGGEDDOJI