Entered highs and lows · rolling price boundaries

Donchian Channel Calculator

Calculate rolling highest-high and lowest-low channel boundaries from entered bars, with midpoint, width, source indices and every completed window exposed.

Runs in your browserCurrent row includedNo breakout or trade signal

Enter one period and ordered high-low bars

Each boundary uses the current completed row and previous period minus one rows.

Entered

One completed bar per line. High must be at least low.

Donchian boundary: Upper and lower are rolling extrema, not automatic support or resistance. This page does not label breakouts, direction, trend, entries, stops or exits.

Latest Donchian window

Entered Supplemental Indicators 1.0.0.

Derived
No Donchian window calculated yetEnter at least one complete period of ordered high-low rows, or load the audited example.

How the Donchian Channel is calculated

Upper = highest high in the current N-row window
Lower = lowest low in the current N-row window
Midpoint = (upper + lower) ÷ 2
Width = upper − lower

Version 1.0.0 uses the classic highest-high and lowest-low channel with the current completed row included. The first window reports at zero-based index N − 1.

The table identifies the most recent row that supplied each equal extreme. No current close is entered, so the calculator cannot and does not classify a boundary crossing.

Assumptions and limits

  • Period must be an integer from 2 to 200.
  • At least one complete period of ordered high-low bars is required.
  • Rows must be oldest to newest and come from one symbol, timeframe and feed.
  • Other implementations can exclude the current bar, apply a chart shift or use close prices.
  • Breakout, support, resistance, trend, entry, stop and exit interpretations are withheld.

Worked example from the audited fixture

Reproduce it with “Load audited example”The eight-bar fixture uses period 5. Its latest window has upper boundary 108 and lower boundary 100, supplied by the most recent matching extreme rows. The midpoint is (108 + 100) ÷ 2 = 104 and the full channel width is 8.

How to interpret the result

These boundaries summarize only the entered high-low window. Because no current close is entered, the tool cannot determine whether price touched or crossed either boundary. Width 8 is a price-unit span, not a volatility forecast.

Frequently asked questions

  • Enter a period and at least that many ordered high-low bars from one symbol, timeframe and feed.
  • It is the highest high in the current period-bar window.
  • It is the lowest low in the current period-bar window.
  • Midpoint is upper plus lower divided by two, and width is upper minus lower.
  • Yes. Version 1.0.0 includes the current completed row and previous period minus one rows.
  • The numeric boundary is unchanged, and the table attributes it to the most recent equal-extreme row.
  • Only when the same high-low prices, period, inclusive current row, zero chart shift and history boundary are used.
  • No. Breakout, support, resistance, trend, entry, stop and exit labels are withheld.

Sources and methodology

Compare the chart feed and trading terms

Use one broker feed, symbol and timeframe for every entered observation, and compare the source history with your terminal before relying on a platform match.

XM

Review available instruments, chart history and account terms.

Check XM terms

FBS

Compare symbol specifications and chart-feed conventions for your region.

Check FBS terms

FXOpen

Confirm chart history and trading conditions for the entered symbol.

Check FXOpen terms

Risk and affiliate disclosure: Leveraged forex and CFD trading can result in substantial losses. These are affiliate links, so ForexMT4Indicators.com may receive compensation if you register or trade through them, at no additional cost to you. Availability and terms vary by jurisdiction and broker entity.

Disclaimer: The results from this tool are estimates for educational and informational purposes only and may differ from your broker's figures. This is not financial or investment advice. Trading forex and CFDs carries a high level of risk and can result in the loss of all your capital. Always verify calculations with your broker and trade within your risk tolerance.