Noon Barbari

Back to all indicators

swingStructure indicator

Swing High/Low

Recent swing pivots.

What it is

Recent swing pivots.

A swing high is a local peak in price — a bar whose high is greater than the highs of the N bars immediately before and after it. The choice of N (the 'left' and 'right' look-back) controls how strict the definition is: N = 1 is a fractal, N = 3 or N = 5 is more selective.

Swing highs are the building blocks of every market-structure analysis: they define the highs that subsequent prices must break to confirm continuation, and the levels at which short stops are normally placed.

Because a swing high requires N bars to its right to confirm, it is always identified after the fact — a price that looks like a swing high in real time can still be invalidated if the next N bars print a higher high.

Read the full Swing high definition in the glossary →

Live chart

TradingView has no built-in study for this indicator, so there's no live chart to embed here. It's a structure / smart-money tool — the best way to see it is to run it inside a strategy and backtest it.

Parameters

ParameterDefaultRange
Lookback11 – 50

Output fields

The named values this indicator exposes to your entry and exit rules.

last highlast lowprev highprev low

Learn more on the blog

Deep-dive articles explaining this indicator and how to trade it.

Backtest this indicator

Drop this indicator into a rule-set, run it over years of BTC/USDT data, and see whether the edge is real or just curve-fit — no credit card required.