Donchian Channels EA for MT5 https://www.mql5.com/en/market/product/170388 – Devoted Implementation of Tom Basso’s Pattern Following Breakout System
This Professional Advisor is a clear, totally automated buying and selling robotic that brings to life the basic Donchian Channel breakout methodology precisely as described by legendary Market Wizard Tom Basso in his webinar recording “Pattern Following Purchase/Promote Engines”.
The technique is pure pattern following at its core: it waits for a powerful worth breakout from the Donchian Channel after which rides the pattern so long as it continues, utilizing the other channel band as a dynamic trailing cease. No fancy indicators, no repainting, no over optimization, simply easy, sturdy worth motion based mostly on closed bars.

How the Buying and selling Logic Works
- Entry Guidelines (confirmed on reside worth motion):
- Purchase (Lengthy): Ask worth crosses above the higher Donchian Channel band by no less than 1 pip.
- Promote (Brief): Bid worth crosses under the decrease Donchian Channel band by no less than 1 pip.
- Cease Loss & Trailing Cease:
- On an extended commerce, the decrease Donchian band acts as each the preliminary cease loss and the trailing cease.
- On a brief commerce, the higher Donchian band serves the identical objective.
- The trailing cease updates solely as soon as per bar at bar shut and strikes solely within the dealer’s favor. It by no means strikes in opposition to the place.
- Exit: The commerce is closed robotically when worth touches the trailing cease stage. There isn’t a take revenue goal, permitting winners to run so far as the pattern carries them.
The EA strictly permits just one place at a time and doesn’t use pyramiding, martingale, grid, or every other excessive threat strategies.
Threat Administration Constructed-In
Place sizing is totally dynamic and conservative:
- Lot dimension is calculated earlier than each commerce to threat precisely the chosen RiskPercent (default 1.0%) of the present account stability.
- The calculation makes use of the true cease distance (distinction between entry worth and the other Donchian band).
- A MaxAllowedLot parameter (default 5.0 however editable) provides an additional security cap.
- Threat is recalculated on each new commerce, making the EA appropriate for rising or fluctuating account sizes.
Sensible Benefits
- Multi-Image and Multi-Chart Prepared: You’ll be able to connect the EA to as many charts and devices as you need (Foreign exchange pairs, XAUUSD/Gold, commodities, indices, cryptocurrencies, and so forth.). Every image robotically receives its personal distinctive Magic Quantity (derived from BaseMagicNumber + image hash) so situations by no means intrude with one another.
- Seamless Restoration: If you happen to restart MetaTrader, reload the EA, or swap timeframes, it immediately detects any present open place opened by this EA and continues managing the trailing cease with out interruption.
- Light-weight and Clear: The EA doesn’t draw any objects on the chart and doesn’t generate alerts or sounds. It’s designed purely for severe automated buying and selling.
- Interval: Default 21 (the identical interval utilized in Tom Basso’s “Pattern Following Purchase/Promote Engines” webinar), however totally adjustable through the DC_Period enter.
Further parameters embody EnableCriticalLogging (for detailed commerce and path cease info within the Consultants tab) and full management over threat and lot limits.
Who Is This EA For?
Merchants who recognize easy, time examined pattern following methods and need a dependable, fingers off implementation of the Donchian breakout technique taught by one of many greats within the trade. It’s particularly appropriate for many who wish to “let winners run” and settle for that not each breakout will turn into an enormous pattern (typical of pure pattern following methods).
Vital Disclaimer
As with every buying and selling system, previous efficiency just isn’t indicative of future outcomes. The markets contain substantial threat of loss. Please take a look at the EA totally within the MetaTrader 5 Technique Tester, optimize the parameters in your most popular symbols and timeframes, and run it on a demo account for a enough interval earlier than contemplating reside buying and selling.


























