three_inside

forge.tafunctionSince Forge API 1
Signaturepython
forge.ta.three_inside(open: ArrayLike,high: ArrayLike,low: ArrayLike,close: ArrayLike,long_body_pct: float = 50.0,allow_equal: bool = True) -> np.ndarray

Three inside: a harami confirmed by the third bar. Found: 1 up, -1 down.

Parameters

NameTypeDefault
openArrayLike
highArrayLike
lowArrayLike
closeArrayLike
long_body_pctfloat50.0
allow_equalboolTrue

Indicator: Three inside

Up: the first two bars are a harami after a fall and the third closes above the first open. Down: a harami after a rise and the third closes below the first open.