ta.pivothigh

Pivot high price, reported rightbars bars after the pivot (when it is confirmed), otherwise na. The pivot bar must be strictly higher than the leftbars bars before it and not lower than the rightbars bars after it. With two arguments the source is high.

ta.pivothigh(source: float, leftbars: simple int, rightbars: simple int) -> series float
ta.pivothigh(leftbars: simple int, rightbars: simple int) -> series float

Parameters

Example

ph = ta.pivothigh(high, 5, 5)