harami
forge.ta.harami(open: ArrayLike,high: ArrayLike,low: ArrayLike,close: ArrayLike,long_body_pct: float = 50.0,allow_equal: bool = True) -> np.ndarrayHarami: a small body inside the previous long body. Found: 1 after a fall, -1 after a rise.
Parameters
| Name | Type | Default |
|---|---|---|
| open | ArrayLike | |
| high | ArrayLike | |
| low | ArrayLike | |
| close | ArrayLike | |
| long_body_pct | float | 50.0 |
| allow_equal | bool | True |
The first body is at least long_body_pct percent of its bar's range, the second body lies
inside it and is smaller. With allow_equal off it must stay strictly inside.
forge.ta.Harami(**inputs: Any) -> NoneA small body inside the previous long body.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| long_body_pct | float | 50 | 0 to 100 |
| allow_equal | bool | true |
body = |close - open|, range = high - low, upper wick = high - max(open, close), lower wick = min(open, close) - low
the first body > 0 and >= long_body_pct / 100 * its range; the second body inside the first body (strictly with equal prices off) and smaller than it
Found: 1 when the first bar falls, -1 when it rises
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.