Community scripts › Built into Depth › Donchian Channels

Donchian Channels

by Swiftedge ◆ FOUNDER · Classic indicators
FreeBuilt into Depth
Donchian Channels on the live order book chart in Swiftedge Depth

What it shows

The highest high and lowest low of the last N candles, and their middle.

How to read it

A new high above the upper line is a breakout of the last N candles' range.

How it's calculated

The upper line is the highest high of the last 20 candles, the lower line the lowest low, and the middle line sits halfway between them. The lines only move when a new high or low enters the window or an old one drops out, which gives the channel its stepped look.

What it can't tell you

A new 20-candle high is a fact about the last 20 candles only. On a short timeframe that can be a small move.

Donchian Channels on 9 markets right now

1h candles with Depth's default settings, calculated exactly as on the chart. Updated 9:41 AM ET (14:41 UTC), 12 Nov 2026, every 10 minutes.

MarketPriceHigh / middle / lowReading
Bitcoin72,07074,778 / 73,246 / 71,714This candle made a new 20-candle lowOpen chart ›
Gold3,899.334,003.12 / 3,944.94 / 3,886.77This candle made a new 20-candle lowOpen chart ›
Ethereum2,0122,084 / 2,026 / 1,967Price in the middle third of the 20-candle rangeOpen chart ›
Solana81.4785.12 / 82.76 / 80.40This candle made a new 20-candle lowOpen chart ›
XRP1.03031.0680 / 1.0434 / 1.0187This candle made a new 20-candle lowOpen chart ›
US 5007,590.407,641.53 / 7,594.51 / 7,547.50Price in the middle third of the 20-candle rangeOpen chart ›
US 10028,241.228,556.5 / 28,230.6 / 27,904.8Price in the middle third of the 20-candle rangeOpen chart ›
Silver50.45151.988 / 51.068 / 50.147Price in the lower third of the 20-candle rangeOpen chart ›
WTI crude oil85.3986.71 / 85.46 / 84.20Price in the middle third of the 20-candle rangeOpen chart ›

Settings in Depth

The defaults; every setting can be changed with the gear next to the indicator.

Timeframethe chart's timeframe (or a fixed 1m to 1D)
Length20

FAQ

What does 'a new 20-candle high' in the table mean?

The current 1h candle has traded at or above the highest high of the previous 20 hours, so it touches the upper line.

Why is the middle line useful?

It is the midpoint of the recent range, so it shows at a glance whether price trades in the upper or the lower half.

Can I use a longer channel?

Yes, the length goes from 2 to 300 candles.

More in Classic indicators