talib.pivothigh
Finds a pivot high — a bar that stands above leftBars bars on one side and rightBars bars on the other.
source is optional; the two bar counts are not.
talib.pivothigh(series float source, series int leftBars, series int rightBars) → series float| Parameter | Type | Required | Description |
|---|---|---|---|
source | series float | no | Optional. The series to search for pivots. |
leftBars | series int | yes | How many bars are required on the left of the candidate. |
rightBars | series int | yes | How many bars are required on the right of the candidate. |
Returns series float — A series float carrying the pivot value.
indicator("Pivot highs")
plot(talib.pivothigh(high, 5, 5))See also talib.alma · talib.atr · talib.barssince
Part of the function index.
Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.