Highest / Lowest
Indicator
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.
Highest High is above Lowest Low (69,954.2).
Highest High 69,954.2 · Lowest Low 64,643.9 · Mid 67,299.0
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.
Channel rising
New highs are lifting the upper line, or old lows are dropping out of the window.
Channel falling
New lows are pulling the lower line down.
Channel narrow
The last 20 highs and lows sit close together.
Channel wide
The window still contains a far high or a far low.
Price on the midpoint
The close is near halfway between the window's high and low.
Highest / Lowest formulaHow it is calculated.
Find the highest high
The max high of the last 20 bars, or of every bar so far if fewer than 20 are loaded.
Find the lowest low
The min low over that same window.
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.
| Setting | Default | Range | What it changes |
|---|---|---|---|
| Length | 20 | 1 to 10,000 | How many bars are in the window. The Signal lens changes this. |
| Highest | #26a69a, 1 px | Fixed | The highest high. |
| Lowest and mid | #ef5350 and #787b86, 1 px | Fixed | The 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.
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
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
The same idea on the downside. The line itself moves once that low is inside the window.
A narrow channel
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.
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 + Donchian Channel
The Donchian channel is this same highest-high and lowest-low idea, with its own length default.
Highest / Lowest + ATR
ATR says whether the channel's width is wide for recent ranges.
Highest / Lowest + EMA
The EMA is a smooth of price. This channel is the raw extremes.
Highest / Lowest + Volume
Traders often look at volume when price closes outside the window.
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 indicatorsTry Highest / Lowest on a live chart.
Free. No download.
Works in your browser and on iPhone too.