Donchian Channels TRADING STRATEGIES EA MT4/MT5 BACKTESTS & NEW OPTIMIZED SET FILES

Donchian Channels TRADING STRATEGIES EA MT4/MT5 BACKTESTS & NEW OPTIMIZED SET FILES

17 November 2024, 12:56
Biswarup Banerjee
0
1 581

Complete User Documentation — MT4 & MT5

1. OVERVIEW

The Donchian Channel Strategy EA is a powerful trend-following and breakout Expert Advisor that automatically trades based on Donchian Channel breakouts and reversals. It combines classic Donchian logic with multiple optional trend filters (MA, ADX, RSI, MACD, Parabolic SAR) and advanced risk management tools.

Who Should Use It: Ideal for traders who want to capture strong breakouts and trending moves in forex, indices, commodities, and cryptocurrencies. Suitable for both beginners and experienced traders.

Main Benefit: Automate high-probability Donchian Channel breakout and mean-reversion strategies with robust risk controls, trailing stop, breakeven, and multiple filters.


2. INPUT PARAMETERS & SETTINGS

This product shares a common set of general input settings with all Expert Advisor products in this series. The following sections are covered in the common guide: General Settings (lot size, SL/TP modes, magic number, trade direction), Breakeven Settings, Trailing Stop Settings, News Filter Settings and News Action Settings, Martingale Settings, Grid Settings, Hedge Settings, Risk Settings, Position Sizing, Alert Settings, Display Settings, Trade Time Settings, Trade Days Settings, Safeguard Settings, and Trend Filter Settings. All of these are fully documented in the Common General Input Settings for Expert Advisors. The sections below cover only the product-specific inputs unique to this product.

Donchian Channel Settings

This section configures the core Donchian Channel indicator used for generating entry and exit signals.

Setting Name Type Default Value Description Example
Timeframe ENUM_TIMEFRAMES PERIOD_CURRENT Timeframe for Donchian Channel calculation. PERIOD_H1 - Use for hourly chart analysis.
Donchian Period int 20 Period used to calculate highest high and lowest low. 20 - Classic 20-period Donchian Channel.
Extremes Type ENUM HIGH_LOW_CLOSE Method to calculate upper and lower bands. HIGH_LOW - Classic Donchian using High/Low.
Margins int -2 Margin adjustment for band calculation. 0 - No margin adjustment.
Shift int 0 Shift of the Donchian Channel. 0 - No shift.
Entry Strategy ENUM ENTRY_STRATEGY1 Entry logic based on Donchian Channel. ENTRY_STRATEGY2 - Breakout style entries.
Exit Strategy ENUM EXIT_STRATEGY0 Exit logic based on Donchian Channel. EXIT_STRATEGY1 - Reversal based exits.

Donchian Entry Strategy — Options Explained

ENTRY_STRATEGY1: Buy on reversal at lower band, Sell on reversal at upper band (mean reversion style).

ENTRY_STRATEGY2: Buy when price crosses above upper band, Sell when price crosses below lower band (breakout style).

Donchian Exit Strategy — Options Explained

EXIT_STRATEGY0: Disable exit based on Donchian Channel.

EXIT_STRATEGY1: Buy exit on reversal at upper band, Sell exit on reversal at lower band.

EXIT_STRATEGY2: Buy exit when price crosses lower band, Sell exit when price crosses upper band.

EXIT_STRATEGY3: Exit when price crosses middle band.


3. HOW IT WORKS

Core Calculation & Logic

The EA calculates Donchian Channels using the highest high and lowest low over the selected period. It generates buy/sell signals based on the chosen Entry Strategy and can close trades using the Exit Strategy. Multiple optional trend filters (MA crossover, ADX, RSI, MACD, Parabolic SAR) can be enabled to increase signal quality.

Entry Strategies Explained

Donchian Channel Strategy

BUY Signal: Generated when price reverses from lower Donchian band or breaks above upper band (depending on selected strategy).

SELL Signal: Generated when price reverses from upper Donchian band or breaks below lower band.

Best For: Trending markets for breakout strategy and ranging markets for reversal strategy.

Step-by-Step Workflow

  1. Calculate Donchian Upper, Middle, and Lower bands.
  2. Check optional trend filters (MA, ADX, RSI, MACD, SAR).
  3. Generate entry signal based on selected Entry Strategy.
  4. Apply risk management (SL/TP, Breakeven, Trailing Stop).
  5. Execute trade with optional Grid, Martingale or Hedge if enabled.

4. RISK MANAGEMENT FEATURES

This section outlines the risk management capabilities of the EA to help traders protect their capital.

Feature Description
Stop Loss & Take Profit Multiple calculation modes: Pips, Amount, Percent, or None.
Breakeven Moves stop loss to breakeven after activation level.
Trailing Stop Dynamic trailing with activation and increment.
Hidden SL/TP Hides stop loss and take profit from broker.
Risk Management Daily/Weekly/Monthly profit & loss limits, max drawdown protection, spread filter.

5. IMPORTANT NOTES & WARNINGS

Known Limitations

Issue Explanation
Choppy Markets Breakout strategies may generate false signals in sideways markets.
News Events High impact news can cause large spikes — use News Filter.
Over-Optimization Avoid excessive curve fitting. Always forward test.

Settings Beginners Should NOT Change

Setting Why to Leave Default
Magic Number Changing may interfere with trade management.
Donchian Period 20 is the classic and most reliable setting.
Scan Mode EVERY_TICK is recommended for responsiveness.

Dashboard Usage Tips

  1. Monitor "Entry Strategy" and "EA Status" regularly.
  2. Use on Demo account first.
  3. Enable only necessary filters to avoid over-filtering.
  4. Adjust lot size according to your account balance and risk tolerance.

Quick Start Guide

Follow these steps to get started in under 5 minutes:

  1. Download the EA from MQL5 Market.
  2. Install the EA in your MT4/MT5 platform.
  3. Configure Settings — start with defaults and adjust risk parameters.
  4. Attach to Chart on your preferred timeframe (H1 recommended).
  5. Enable AutoTrading and allow DLL imports if required.
  6. Monitor Performance using the built-in dashboard.

You may also be interested in these related products:


Installation Guide for MQL Products | Updating Purchased MQL Products | General Troubleshooting Guide | Backtest and Set Files

Check all my products: https://www.mql5.com/en/users/biswait50/seller

Contact me for support: https://www.mql5.com/en/users/biswait50