Prop Preflight

Level 2 · Market structure

Swing highs and lows

6 min readUpdated Oct 22, 2026

You'll be able to mark swing highs and lows with a precise rule, and account for the delay in confirming them.

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.

Check your understanding

1. With n = 2, what makes a bar a swing low?
Answer

Its low is lower than the lows of the two bars before and the two bars after. The rule compares lows on both sides.

2. When is a swing high with n = 3 confirmed?
Answer

After three more bars have closed lower. The rule needs the bars that follow.

3. A backtest marks swing lows at the moment they form. What problem is that?
Answer

Look-ahead bias. It uses information not yet available in real time.

Saved in this browser only.

Related

Sources

Education only, not advice. Futures trading uses leverage, and losses can exceed the money in an account. Examples are hypothetical unless a source is given.