inside_bar
forge.tafunctionSince Forge API 1
Signaturepython
forge.ta.inside_bar(high: ArrayLike,low: ArrayLike,allow_equal: bool = True) -> dict[str, np.ndarray]Inside bar: a bar whose range sits within the previous bar's range. Found: 1.
Parameters
| Name | Type | Default |
|---|---|---|
| high | ArrayLike | |
| low | ArrayLike | |
| allow_equal | bool | True |
high[i] <= high[i-1] and low[i] >= low[i-1], strictly with allow_equal off.
in_a_row counts the inside bars in a row that end at the bar: 0 on a bar that is not one,
and no value on the first bar.