pivot_high

forge.tafunctionSince Forge API 1
Signaturepython
forge.ta.pivot_high(high: ArrayLike,left: int = 5,right: int = 5) -> np.ndarray

The high of a swing high, written right bars after the swing.

Parameters

NameTypeDefault
highArrayLike
leftint5
rightint5

Indicator: Pivot high

Bar i holds high[i - right] if that bar is strictly above the left bars before it and the right bars after it, else NaN.