outside_bar

forge.tafunctionSince Forge API 1
Signaturepython
forge.ta.outside_bar(high: ArrayLike,low: ArrayLike,allow_equal: bool = True) -> np.ndarray

Outside bar: a bar whose range covers the previous bar's range. Found: 1.

Parameters

NameTypeDefault
highArrayLike
lowArrayLike
allow_equalboolTrue

Indicator: Outside bar

high[i] >= high[i-1] and low[i] <= low[i-1], strictly with allow_equal off. A bar with the same high and low as the one before it is an inside bar only.