A pivot high is a bar whose high is above the highs of the n bars on each side; a pivot low is the opposite, using the low. The larger n is, the fewer pivots you get, and the more significant they are.
An uptrend strings together higher highs and higher lows; a downtrend, lower highs and lower lows. When that sequence breaks, the structure changes.
A pivot is only confirmed n bars later: you need to see the next n bars to know the high was not exceeded. On a chart, it therefore always appears with a delay.
In a backtest, a pivot can only be used from the bar where it is confirmed, n bars after it forms. Using it earlier means using information from the future: look-ahead bias, which makes results look better than they are.
Examples
PIVOT-X (fictional market) : In this fictional market, each dot marks a confirmed pivot: red for a high, green for a low. When successive lows rise, then the highs too, the structure is bullish as long as no major low is broken.
March 2000 – October 2002: the Nasdaq’s bearish structure : After peaking at about 5,000 points in March 2000, the Nasdaq Composite made lower highs and lower lows for more than two years. Each rebound stalled below the previous high. By the October 2002 low, the index had lost about 78%.
Key terms
Pivot high
Bar whose high is above that of the n bars on each side
Pivot low
Bar whose low is below that of the n bars on each side
Market structure
Sequence of highs and lows that describes the trend
Look-ahead bias
Backtest bias that uses information not yet available