A swing high is a peak: a bar whose high is higher than the bars around it. A swing low is a trough. They are the building blocks of trend definitions, support and resistance, and many stop placements.
A precise rule
A common definition uses a number n of bars on each side:
- Swing high: a bar whose high is higher than the highs of the n bars before it and the n bars after it.
- Swing low: a bar whose low is lower than the lows of the n bars before and after it.
With n = 2, a swing high needs two lower highs on each side. Larger n finds fewer, more significant swings.
Example (hypothetical highs of seven 5-minute bars). 6,001.25, 6,003.00, 6,006.50, 6,004.75, 6,002.00, 6,005.00, 6,003.50.
With n = 2, the third bar (6,006.50) is a swing high: the two bars before (6,001.25, 6,003.00) and the two after (6,004.75, 6,002.00) are all lower.
The confirmation delay
A swing high can only be confirmed n bars after it happens, because you need the bars after it. In real time, you never know the current bar is a swing high when it forms. Any strategy that uses swing points must wait for confirmation, and any backtest that marks them instantly has look-ahead bias (Level 4).
How traders use them
- Structure: higher swing lows in an uptrend, lower swing highs in a downtrend.
- Stops: a long's stop just below the most recent confirmed swing low; the idea is wrong if that low breaks.
- Levels: prior swing highs and lows are often watched as possible support or resistance.
Observation versus interpretation
Observable: which bars meet the swing rule for a stated n, and when they were confirmed.
Interpretation: that a swing point is "important" to other traders, or that price will react there.
Takeaways
- Define swings with a fixed number of bars on each side.
- Swings are confirmed only after the following bars close.
- Backtests must respect the delay to avoid look-ahead bias.
Common misconceptions
- "That was obviously the high." Only after the next bars confirmed it.
- "Bigger n is better." It's slower to confirm and finds fewer swings; the right choice depends on the strategy.