Calculation
upper = highest high of the last n bars lower = lowest low of the last n bars middle = (upper + lower) / 2
Named after Richard Donchian. The current bar is part of the window, so price never crosses a line: it moves it.
How to read it
- A flat line means no new n-bar extreme has been made on that side.
- A line stepping up (or down) shows new extremes being made: the mark of a trend.
- A narrow channel is a quiet market; the first step out of a long flat stretch is the end of that range.

Add it in Oyticker
- Click Indicators, choose Donchian Channels.
- In its row of the legend, click the Settings button to set its length.
Limits
- A new 20-bar high is a fact about the past 20 bars; many are followed by a return into the range.
- A single spike sets the line for the next n bars.
- The lines step: they are levels, not a smooth trend.
Charts in this guide use simulated prices generated for illustration; levels and outcomes shown are examples, not observations of a real market. For information only, not investment advice.