doji
forge.tafunctionSince Forge API 1
Functionpython
forge.ta.doji(open: ArrayLike,high: ArrayLike,low: ArrayLike,close: ArrayLike,body_pct: float = 5.0) -> np.ndarrayDoji: a bar whose body is tiny against its range. Found: 1.
Parameters
| Name | Type | Default |
|---|---|---|
| open | ArrayLike | |
| high | ArrayLike | |
| low | ArrayLike | |
| close | ArrayLike | |
| body_pct | float | 5.0 |
The body is at most body_pct percent of the bar's high to low range.
Classpython
forge.ta.Doji(**inputs: Any) -> NoneA bar whose body is tiny against its range.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| body_pct | float | 5 | 0 to 50 |
body = |close - open|, range = high - low, upper wick = high - max(open, close), lower wick = min(open, close) - low
body <= body_pct / 100 * range
Found: 1
A bar whose high equals its low, or that has a missing price, is never part of a pattern. Computed on the prices the bars are drawn with: on Heikin-Ashi or Renko bars those are the built candles.