doji

forge.tafunctionSince Forge API 1
Functionpython
forge.ta.doji(open: ArrayLike,high: ArrayLike,low: ArrayLike,close: ArrayLike,body_pct: float = 5.0) -> np.ndarray

Doji: a bar whose body is tiny against its range. Found: 1.

Parameters

NameTypeDefault
openArrayLike
highArrayLike
lowArrayLike
closeArrayLike
body_pctfloat5.0

Indicator: Doji

The body is at most body_pct percent of the bar's high to low range.

Classpython
forge.ta.Doji(**inputs: Any) -> None

A bar whose body is tiny against its range.

Inputs

NameTypeDefaultRange
body_pctfloat50 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.