Skip to content
Forex Indicator System Thailand
Back to marketplace
Support and resistanceIndicator

Donchian Ultimate (Donchian channel with support and resistance zones)

Donchian channel with selectable timeframe and boundary method, plus support/resistance zones and alerts

Donchian Ultimate (Donchian channel with support and resistance zones) on an MT5 chart
Example on an MT5 chart

Download the indicator free

Download right away. Nothing to fill in.

Version
1.00
Published
11/21/2026
File size
32 KB

Open source, Apache License 2.0, by EarnForex.com. See licences

Version history

  1. 1.00Current11/21/2026 · 32 KB

    First release on this site.

How to read it

Drag it onto a chart. Set InpTimeframe above the chart timeframe to see a larger timeframe channel, for example the D1 channel on an H1 chart. Alerts are off by default; turn on at least one channel (IsShowAlert, IsSendEmail or IsSendNotification).

AlertCandle defaults to the previous, closed candle, which is steadier. If you switch it to the current candle, alerts can fire mid-bar and the bar may reverse before it closes.

Parameters

NameDefaultDescription
InpPeriod20Number of bars used to find the channel high and low.
InpTimeframePERIOD_CURRENTTimeframe used to calculate the channel. Defaults to the chart timeframe. A higher value shows the higher-timeframe channel on a smaller chart; a lower value falls back to the chart timeframe.
PriceTypePRICE_HH_LLHow the boundaries are found: Highest High/Lowest Low, an average of the highest High with the Open or Close at that extreme (and the matching lows), Highest Open or Highest Close.
Shift0Number of bars to shift the channel back. 0 means no shift.
IsShowResistanceSpantrueShow the shaded resistance zone below the upper line.
IsShowSupportSpantrueShow the shaded support zone above the lower line.
AlertCandleALERT_PREVIOUS_CANDLECandle used to check alert conditions: the previous (closed) candle or the current candle.
IsAlertMidLineBullishCrossingtrueAlert when price crosses the mid line upward.
IsAlertMidLineBearishCrossingtrueAlert when price crosses the mid line downward.
IsAlertCandleCloseInsideResistancetrueAlert when a candle closes inside the resistance zone.
IsAlertCandleCloseInsideSupporttrueAlert when a candle closes inside the support zone.
IsShowAlertfalseNotify with an MT5 popup alert. Off by default; at least one channel must be on for any alert to be sent.
IsSendEmailfalseSend an email alert (email must be set up in MT5 first).
IsSendNotificationfalseSend a push notification to the MT5 mobile app (MetaQuotes ID must be set up first).

Defaults are the values shipped with the EA, not a recommendation. Results depend on the market and on each account. Past results do not guarantee future results. Trading carries a high risk of loss.

How to install

  1. Download the .ex5 file.
  2. In MT5, choose File > Open Data Folder.
  3. Copy the file into the MQL5\Indicators folder.
  4. Right-click Indicators in the Navigator window and choose Refresh (or restart MT5).
  5. Drag the indicator onto a chart, adjust the Inputs if you like, then click OK.

Description

This indicator draws a Donchian channel, with an upper line, a lower line and a mid line, from the highest and lowest values of the last InpPeriod bars, and adds two shaded zones: a green resistance zone below the upper line and an orange support zone above the lower line.

There are five ways to find the boundaries (for example Highest High/Lowest Low, or using the Open/Close at the extremes), and the channel of a higher timeframe can be shown on a smaller chart. Four alert conditions are available: price crossing the mid line up, crossing it down, a candle closing inside the resistance zone, and a candle closing inside the support zone.

Banners from the Exness partner programme

Exness banner: gold spreads*

FXIDTH is an independent IB partner of Exness. This channel is not owned or operated by Exness.*Spreads may fluctuate and widen due to factors including market volatility, news events, market open/close, and others.*Processing times may vary depending on the chosen payment method.