pivot_high
forge.tafunctionSince Forge API 1
Signaturepython
forge.ta.pivot_high(high: ArrayLike,left: int = 5,right: int = 5) -> np.ndarrayThe high of a swing high, written right bars after the swing.
Parameters
| Name | Type | Default |
|---|---|---|
| high | ArrayLike | |
| left | int | 5 |
| right | int | 5 |
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.