Highest high and lowest low

Highest / Lowest
Indicator

Support and resistanceOn the price chartFree on ChartLabs

Highest high / lowest low draws the highest high and the lowest low of the recent bars, plus the midpoint between them, framing the recent trading range.

The Donchian channel, as described by Perry Kaufman, 2013. Reviewed by the ChartLabs team, updated Nov 2026.

Example market1hIndicatorsAtlas AIHighest / Lowestchartlabs.co/charts
Atlas reads it

Highest High is above Lowest Low (69,954.2).

Highest High 69,954.2 · Lowest Low 64,643.9 · Mid 67,299.0

Atlas reads it

Highest High is above Lowest Low (69,954.2).

Highest High 69,954.2 · Lowest Low 64,643.9 · Mid 67,299.0

Illustration on simulated data.

Highest high and lowest lowWhat is the Highest / Lowest indicator?

This is a Donchian channel: the highest high and the lowest low over the length, and a midpoint halfway between them. The default length is 20. Until 20 bars exist, the lines use the bars so far, so they start on the first bar.

Highs of 5, 8 and 6 with lows of 1, 3 and 2 put the third bar at a highest high of 8, a lowest low of 1 and a midpoint of 4.5. With the default length of 20 those three bars are still inside a partial window, so the same numbers apply. There is no source input. The high and the low are fixed.

The highest line is #26a69a, the lowest is #ef5350, and the midpoint is #787b86, all 1 px, on the price chart. A light fill sits between the outer lines.

Partial window

Before 20 bars, the highest and lowest are taken from the bars loaded so far. The lines are not empty.

High and low only

The close does not enter the formula. A source setting is not offered.

Highest / Lowest signalsFive patterns to know.

1Bullish lean

Channel rising

New highs are lifting the upper line, or old lows are dropping out of the window.

2Bearish lean

Channel falling

New lows are pulling the lower line down.

3Inconclusive

Channel narrow

The last 20 highs and lows sit close together.

4Inconclusive

Channel wide

The window still contains a far high or a far low.

5Inconclusive

Price on the midpoint

The close is near halfway between the window's high and low.

Highest / Lowest formulaHow it is calculated.

Mid=highest high+lowest low2
STEP 1

Find the highest high

The max high of the last 20 bars, or of every bar so far if fewer than 20 are loaded.

STEP 2

Find the lowest low

The min low over that same window.

STEP 3

Mark the middle

Midpoint is the average of those two. Highs 5, 8, 6 and lows 1, 3, 2 give 8, 1 and 4.5 on the third bar.

Highest / Lowest settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
Length201 to 10,000How many bars are in the window. The Signal lens changes this.
Highest#26a69a, 1 pxFixedThe highest high.
Lowest and mid#ef5350 and #787b86, 1 pxFixedThe lowest low and the midpoint. A light fill sits between the outer lines.
Setting
Length
Default
20
Range
1 to 10,000
What it changes
How many bars are in the window. The Signal lens changes this.
Setting
Highest
Default
#26a69a, 1 px
Range
Fixed
What it changes
The highest high.
Setting
Lowest and mid
Default
#ef5350 and #787b86, 1 px
Range
Fixed
What it changes
The lowest low and the midpoint. A light fill sits between the outer lines.
2097 bars in the window
70,20866,82563,44360,06164,803.7

Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.

Highest / Lowest strategiesUse it in 3 setups.

A close through the upper line

Ifthe close is above the priorhighest high

A close outside the previous window is the classic channel break. Traders often want the new high to hold on the next bar.

A close through the lower line

Ifthe close is under the priorlowest low

The same idea on the downside. The line itself moves once that low is inside the window.

A narrow channel

Whilethe channel is tighta break is a smaller distance

The window's range is small. A break covers less price than a break out of a wide window. It is still just a break of the window.

Test a rule in the Strategy TesterFree with 1 year of history. Past results do not guarantee future results.

Highest / Lowest mistakesCommon mistakes.

Treating the line as a prediction

The upper line is the highest high already printed in the window. It moves when a new high arrives or an old one ages out.

Forgetting an old spike

A single spike stays in the channel until it is more than 20 bars ago. The channel looks wide because of that bar.

Using the midpoint as an average of the closes

The midpoint is halfway between the high and the low. The closes do not enter it.

Highest / Lowest combinationsPair it with these.

Highest / Lowest FAQQuestions traders ask.

What are the highest/lowest settings?

One length, default 20. No source. The high and the low are always used.

What is the three-bar example?

Highs 5, 8 and 6, lows 1, 3 and 2. On the third bar the lines are 8, 1 and 4.5, because 20 bars have not loaded yet and the window is the bars so far.

Does the close matter?

No. Only highs and lows. The midpoint is their average.

Why do the lines start immediately?

Before the length is filled, the highest and lowest of the bars so far are used. Record 0 is that bar's own high and low.

How is this different from Bollinger Bands?

Bollinger Bands are a moving average plus a standard deviation. These lines are the actual highest high and lowest low.

Does an old spike stay forever?

No. It leaves the window after the length has passed.

Does it repaint?

No. A closed bar's high and low stay. The live bar can still set a new extreme until it closes. Once a bar leaves the window, the line can step.

Where does the idea come from?

Richard Donchian's channel, as Perry Kaufman describes it in Trading Systems and Methods (5th ed., 2013, chapter 5).

Related indicatorsMore support and resistance tools.

All support and resistance indicators

Try Highest / Lowest on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
HH/LL