Donchian Ultimate Indicator for MT4/MT5/cTrader
Donchian Ultimate MetaTrader indicator — is a classic Donchian channel indicator with multiple features added:
- Variable period and shift of the Donchian channel.
- The middle line that can be turned off.
- Support for multi-timeframe (MTF) operation.
- 5 different calculation methods for the channel borders.
- Optional support and resistance zones near the main Donchian channel's borders.
- A comprehensive alert system.
- A high level of customization accord to your trading needs.
The indicator is drawn in the main window and doesn't use any standard or custom indicators in its code. Donchian Ultimate is available for the MT4, MT5, and cTrader trading platforms.
Input parameters
- Period (default = 20) — the Donchian channel period.
- Timeframe (default = Current) — the timeframe to calculate the channel on. If you set it to a timeframe that is higher than the current one, the indicator will display a higher timeframe channel on the current chart. The parameter is ignored if set to a timeframe that is lower than the current one.
- PriceType (default = Highest High (Lowest Low)) — the type of prices to use in calculations. Can be one of the five modes:
- Highest High (Lowest Low) — the classic Donchian channel configuration with the upper band calculated as the Highest High of the period and the lower band calculated as the Lowest Low of the period.
- Average Highest High, Highest Open (Lowest Low, Lowest Open) — the upper band is calculated as the average between the Highest High and the Highest Open of the period and the lower band is calculated as the average between the Lowest Low and the Lowest Open of the period.
- Average Highest High, Highest Close (Lowest Low, Lowest Close) — the upper band is calculated as the average between the Highest High and the Highest Close of the period and the lower band is calculated as the average between the Lowest Low and the Lowest Close of the period.
- Highest Open (Lowest Open) — the upper band is calculated as the Highest Open of the period and the lower band is calculated as the Lowest Open of the period.
- Highest Close (Lowest Close) — the upper band is calculated as the Highest Close of the period and the lower band is calculated as the Lowest Close of the period.
- Shift (default = 0) — the indicator's shift in bars.
- Show Resistance Span (default = true) — if true, the upper resistance span will be displayed on the chart.
- Show Support Span (default = true) — if true, the lower support span will be displayed on the chart.
- Alert Candle (default = Previous) — the candle to issue alerts on: Previous — the most recently closed candle or Current — the yet unfinished candle.
- Alert About Bullish Crossing of Mid Line (default = true) — if true, the indicator will issue alerts when a candle closes crossing the middle line from below.
- Alert About Bearish Crossing of Mid Line (default = true) — if true, the indicator will issue alerts when a candle closes crossing the middle line from above.
- Alert About Candle Close Inside Resistance (default = true) — if true, the indicator will issue alerts when a candle closes inside the resistance zone.
- Alert About Candle Close Inside Support (default = true) — if true, the indicator will issue alerts when a candle closes inside the support zone.
- Show Alert (default = false) — if true, indicator will use MetaTrader's native pop-up alerts.
- Send Email (default = false) — if true, indicator will use MetaTrader's email alerts. Email should be properly configured in MetaTrader via Tools->Options->Email.
- Send Notification (default = false) — if true, indicator will use MetaTrader's push notification alerts. Notifications should be properly configured in MetaTrader via Tools->Options->Notifications.
Example and strategy
As with the classic Donchian channel indicator, Donchian Ultimate cannot be used to generate buy and sell signals on its own. What it can do is demonstrate the current situation with the trend and how close the price is to changing direction or extending the trend. As you can see on the chart below, the upper band rises steadily when a trend starts, while both bands start go sideways when the currency pair is consolidating:
The support and resistance zones serve as an early warning system. A narrowing of the space between the two zones signals extremely tight consolidation.
Donchian channel is best combined with candlestick chart patterns.
Download (ver. 1.00, 2023-10-23)
Donchian Ultimate for MetaTrader 4 Donchian Ultimate for MetaTrader 5 Donchian Ultimate for cTrader in .cs Donchian Ultimate for cTrader in .zipYou can open a trading account with any of the MT4 Forex brokers to freely use the presented here indicator for MetaTrader 4. If you want to use an MT5 version of the indicator presented here, you would need to open an account with a broker that offers MetaTrader 5. If you are with a cTrader broker, then you would need to download the cTrader version of the indicator above.
Discussion
Warning! Please read the MetaTrader indicator installation tutorial if you need help installing this indicator.
Do you have any suggestions or questions regarding this indicator? You can always discuss Donchian Ultimate with the other traders and MQL programmers on the indicators forums.
Changelog
1.00 - 2023-10-23
- First release of Donchian Ultimate on EarnForex.com.