Donchian Channel Calculator
Calculate Donchian Channel upper and lower bands based on N-period highs and lows. Enter values for instant results with step-by-step formulas.
Calculator
Adjust values & calculateMulti-Period Comparison
Formula
Where N is the lookback period (typically 20). The upper band is the highest high price and the lower band is the lowest low price observed over the last N periods. The middle line is the simple average of the upper and lower bands.
Last reviewed: December 2025
Worked Examples
Example 1: Basic Donchian Channel Calculation
Example 2: Turtle Trading Entry Signal
Background & Theory
The Donchian Channel Calculator applies the following established principles and formulas. Foreign exchange markets facilitate the conversion of one currency into another and serve as the largest and most liquid financial markets in the world, with daily turnover exceeding seven trillion US dollars. Exchange rates are quoted as currency pairs, expressing the price of one unit of a base currency in terms of a quote currency. For example, a EUR/USD rate of 1.0850 means one euro buys 1.0850 US dollars. The smallest standardized price movement in most pairs is the pip, typically the fourth decimal place, with a value of 0.0001 per unit for USD-denominated pairs. The bid price is the rate at which a dealer will buy the base currency, while the ask price is the rate at which it will sell. The spread between bid and ask represents the dealer's compensation and varies with liquidity and volatility. Leverage amplifies both gains and losses by allowing traders to control positions larger than their deposited margin. A 100:1 leverage ratio means a one-percent adverse move eliminates the entire margin, making position sizing and risk management critical. Two parity conditions from international economics anchor exchange rate theory. Purchasing Power Parity (PPP) holds that exchange rates should adjust over time so that identical goods trade at equivalent prices across countries: S = P_d / P_f, where S is the spot rate and P_d and P_f are domestic and foreign price levels. PPP performs well over long horizons but poorly in the short run due to trade barriers, non-tradable goods, and capital flows. Covered Interest Rate Parity (CIRP) is a near-arbitrage condition stating that forward exchange rate premiums or discounts exactly offset interest rate differentials between two currencies: F/S = (1 + r_d) / (1 + r_f). Deviations from CIRP create riskless arbitrage opportunities that traders rapidly eliminate. Uncovered Interest Rate Parity posits that high-yielding currencies should depreciate to offset their interest advantage, though empirical evidence is mixed and the carry trade โ borrowing in low-rate currencies to invest in high-rate ones โ has generated persistent returns.
History
The history behind the Donchian Channel Calculator traces back through the following developments. For much of the nineteenth century and early twentieth century, the international monetary system operated under the classical gold standard, under which each participating currency was fixed to a defined weight of gold, making bilateral exchange rates effectively constant. The system provided price stability and facilitated global trade but constrained governments' ability to respond to economic downturns. World War One shattered the gold standard as nations suspended convertibility to finance wartime expenditures. The interwar period saw attempts to restore gold convertibility, most notably the British return to the gold standard in 1925 at the pre-war parity, a decision criticized by John Maynard Keynes as deflationary. The Great Depression forced widespread currency devaluations and the effective collapse of the international gold standard by the early 1930s. The Bretton Woods Conference of July 1944 established a new order in which member currencies were pegged to the US dollar, while the dollar alone was convertible into gold at 35 dollars per troy ounce. The International Monetary Fund and World Bank were created at the same conference to oversee the system. Bretton Woods delivered exchange rate stability during the postwar growth era but came under strain as US deficits and European dollar accumulation outpaced American gold reserves. On August 15, 1971, President Nixon announced the suspension of dollar-gold convertibility โ the so-called Nixon Shock โ effectively ending the Bretton Woods system. By 1973, major currencies had transitioned to floating exchange rates determined by market supply and demand, a regime that has persisted. On September 16, 1992, hedge fund manager George Soros shorted the British pound against the European Exchange Rate Mechanism constraints, forcing the UK's withdrawal in what became known as Black Wednesday. Electronic trading platforms emerged in the 1990s and 2000s, replacing voice-brokered interbank markets and dramatically reducing transaction costs for institutional and retail participants alike.
Frequently Asked Questions
Formula
Upper = Highest High(N) | Lower = Lowest Low(N) | Middle = (Upper + Lower) / 2
Where N is the lookback period (typically 20). The upper band is the highest high price and the lower band is the lowest low price observed over the last N periods. The middle line is the simple average of the upper and lower bands.
Worked Examples
Example 1: Basic Donchian Channel Calculation
Problem: Over the last 20 periods, the highest high was 163 and the lowest low was 148. Current price is 160. Calculate the Donchian Channel levels.
Solution: Upper Channel = Highest High (20 periods) = 163.00\nLower Channel = Lowest Low (20 periods) = 148.00\nMiddle Line = (163.00 + 148.00) / 2 = 155.50\nChannel Width = 163.00 - 148.00 = 15.00\nChannel Width % = (15.00 / 155.50) x 100 = 9.65%\nPosition = ((160 - 148) / 15) x 100 = 80.0% (upper zone)
Result: Upper: 163.00 | Middle: 155.50 | Lower: 148.00 | Price at 80% of channel (upper zone)
Example 2: Turtle Trading Entry Signal
Problem: 20-period Donchian upper channel is at 163. Price closes at 163.50. 10-period lower channel is at 155. Evaluate the Turtle Trading signal.
Solution: Price (163.50) > Upper Channel (163.00) = New 20-period high\nTurtle System 1 Entry: Long entry triggered\nExit channel (10-period lower) = 155.00\nRisk per unit = 163.50 - 155.00 = 8.50 points\nIf ATR = 4.00, position size = Account Risk / (ATR x Dollar per Point)\nThe exit will trail up as the 10-period low rises
Result: Long Entry Signal at 163.50 | Exit at 10-period low (155.00) | Risk: 8.50 points per unit
Frequently Asked Questions
What is the Donchian Channel and who created it?
The Donchian Channel was created by Richard Donchian, who is widely regarded as the father of trend following. The indicator consists of three lines plotted on a price chart: the upper band showing the highest high over the last N periods, the lower band showing the lowest low over the last N periods, and a middle line that is the average of the upper and lower bands. Donchian developed this indicator in the 1930s and 1940s, making it one of the oldest technical indicators still in widespread use today. The standard setting uses 20 periods, which represents approximately one month of trading days. Its simplicity is its strength, as it clearly identifies the price range and potential breakout levels.
How is the Donchian Channel calculated?
The Donchian Channel calculation is straightforward compared to many other technical indicators. The Upper Band equals the highest high price over the last N periods, where N is typically 20. The Lower Band equals the lowest low price over the last N periods. The Middle Line equals the average of the Upper and Lower bands, calculated as (Highest High + Lowest Low) divided by 2. Unlike moving averages which use all prices in the lookback window, Donchian Channels only care about the single highest high and single lowest low. This means one extreme candle can define an entire channel boundary until it falls outside the lookback window, at which point the channel will contract or shift.
What is the Turtle Trading system and how does it use Donchian Channels?
The Turtle Trading system was a famous trend-following strategy taught by Richard Dennis and William Eckhardt in their 1983 experiment to prove that trading could be taught. The system uses Donchian Channels as its primary entry and exit mechanism. Entry signals occur when price breaks above the 20-period upper channel (buy) or below the 20-period lower channel (sell short). Exit signals use a shorter 10-period Donchian Channel, where long positions are closed when price touches the 10-period lower channel. Position sizing is based on the ATR to normalize risk across different instruments. The Turtles reportedly turned a combined $1.6 million into over $100 million in just a few years using this systematic approach.
How do you identify breakouts using Donchian Channels?
A Donchian Channel breakout occurs when price moves beyond the upper or lower channel boundary, representing a new high or low for the lookback period. A bullish breakout happens when price closes above the upper channel, signaling that buyers have pushed price to a new N-period high. A bearish breakout occurs when price closes below the lower channel. The significance of the breakout depends on the channel period length, with longer periods producing fewer but more meaningful breakouts. Volume confirmation is crucial, as breakouts with high volume are more likely to lead to sustained trends. False breakouts are common, so many traders wait for a close outside the channel rather than just an intraday breach.
What channel period should I use for Donchian Channels?
The optimal Donchian Channel period depends on your trading style and the market you are trading. The classic 20-period setting works well for swing trading on daily charts, capturing approximately one month of price action. Shorter periods like 10 or 14 generate more frequent signals suitable for active traders but produce more false breakouts. Longer periods like 50 or 55 periods (used in the original Turtle system for System 2) produce fewer but higher quality signals ideal for position trading. For intraday trading, periods of 20-50 on 5-minute or 15-minute charts can identify short-term breakout opportunities. Many traders use multiple Donchian Channels simultaneously, such as 20-period for entries and 10-period for exits.
How does channel width relate to market volatility?
The Donchian Channel width is a direct measure of the price range over the lookback period and serves as a volatility gauge. When the channel is narrow, it indicates a period of low volatility and price compression, which often precedes a significant breakout move. Wide channels indicate high volatility with large price swings within the lookback period. As the channel narrows, the upper and lower bands converge, creating a squeeze pattern similar to Bollinger Band squeezes. Traders watch for the channel to start expanding after a period of compression as a signal that a new trend is beginning. The channel width divided by the middle line gives a percentage measure of relative volatility that can be compared across different instruments.
References
Reviewed by Daniel Agrici, Founder & Lead Developer ยท Editorial policy