Megamax Donchian Trend
- Experts
-
Kenichiro Sakamoto
I'm Kenichiro Sakamoto, the developer behind FXEA365 — a studio building transparent, rule-based Expert Advisors for MetaTrader 5. - Version: 1.42
- Updated: 2 August 2026
- Activations: 5
MEGAMAX DONCHIAN — USDJPY H1 Trend Follower
=== START HERE ===
1) Read the RISK WARNING below before anything else.
2) Attach the EA to a USDJPY H1 chart — on any other chart it will place no trades.
3) Test the free demo in the Strategy Tester first: see “5-MINUTE DEMO CHECKLIST” below.
4) Independent forward results: see “INDEPENDENT VERIFICATION (FXEA365)” below.
MT5 EDITION — This is the MetaTrader 5 build of MEGAMAX DONCHIAN. An MT4 edition is published separately on this account. The two builds share the same core entry logic. The MetaTrader 5 build additionally offers cent-account support, built-in per-asset presets and a selectable trading timeframe; the MetaTrader 4 build does not. The figures in this description were measured on MetaTrader 5 with 100% real tick data; the MT4 build will differ, because tick model, spread and execution differ between the two platforms and between brokers.
IMPORTANT — attach the EA to a USDJPY H1 chart. The strategy reads that timeframe; on any other chart it will simply place no trades. If you are testing the free demo in the Strategy Tester, set the symbol and timeframe to USDJPY H1 or you will see zero trades.
MEGAMAX DONCHIAN is an automated trading system for USD/JPY on the H1 timeframe. It is a pure trend follower: it waits for a confirmed breakout of the Donchian channel of the recent range, then rides the move with an ATR trailing stop and no fixed take-profit. There is no grid and no martingale. The design accepts that most trades are small losses or scratches, and aims to let a minority of strong, sustained USD/JPY trends carry the result — over a long 9.4-year track record.
RISK WARNING FIRST: The published default Run-Mode is ULTRA (maximum verified risk). It targets the highest return and reaches the deepest relative drawdown. Choose the Run-Mode that matches your account and temperament — Defensive, Standard or Aggressive are the everyday recommendations; Ultra is for experienced traders who accept large equity swings. All backtests below are historical, not a live track record.
FOUR RISK TIERS — ONE DROPDOWN, SAME SIGNAL, RISK SCALES (real-tick backtest, MT5 Strategy Tester, USDJPY H1, 2017-2026, ~9.4 years, $10,000, default settings otherwise):
- Defensive: +71% / Profit Factor 1.59 / max equity drawdown 4.8%
- Standard: +165% / Profit Factor 1.50 / max equity drawdown 7.3%
- Aggressive (recommended): +716% / Profit Factor 1.55 / max equity drawdown 16.4% (relative 19.5%)
- Ultra (published default): +2,155% / Profit Factor 1.55 / relative equity drawdown 58.6% (absolute max equity drawdown only 16.3%)
Every tier trades the identical signal; only position-sizing risk scales. Note the two drawdown figures at the top tiers: because a high-compounding trend system reinvests gains, the ABSOLUTE maximum equity drawdown stays modest (~16%), while the RELATIVE peak-to-trough drawdown grows with compounding — reaching 58.6% at Ultra. Both are disclosed on purpose so you can judge the real swing. Cross-checked on the Exness feed (OHLC model): consistent across feeds.
This is a tool. It does not promise profit. Automated trading carries real risk, and trend-following systems endure long stretches of small losses while waiting for a trend. Please read the whole description, start on the tier that fits you, and size your risk before using it on a live account.
HOW IT WORKS
1) Entry — Donchian breakout
The EA tracks the highest high and lowest low of the recent Donchian channel (default 20 H1 bars) and enters when price breaks beyond that range. A breakout signals that the market has left its recent equilibrium and may be starting a directional move.
2) Initial stop — ATR-based
On entry, a protective stop is placed at a multiple of ATR (default 2.0×) from the entry price. This sizes the initial risk to current volatility rather than a fixed pip distance, so the stop adapts to quiet and active conditions alike.
3) Trailing stop — Let trends run
As the trade moves in your favour, the stop trails behind price at a wider ATR distance (default 4.0×). There is no fixed take-profit: the trailing stop both protects open profit and gives the trend room to continue, closing the trade only when price retraces by the trailing distance.
4) Time stop
If a position has not developed into a trend after a configured number of bars (default 120), it is closed by a time stop, freeing capital and avoiding indefinite exposure to a stalled trade.
5) Position sizing
Lots are sized from a risk percentage of balance against the initial stop distance, with a hard maximum-lot cap. The Run-Mode you select scales this risk percentage up or down.
RUN-MODE: ONE DROPDOWN FOR RISK
MEGAMAX DONCHIAN includes a Run-Mode selector with four settings — the numbers for each are in the table above:
- Defensive: lowest risk and drawdown, for capital preservation
- Standard: the original balanced profile
- Aggressive: our recommended growth setting — strong return at a moderate drawdown
- Ultra: the published default — maximum verified return, deepest relative drawdown, for experienced traders
Because risk and reward scale proportionally, you choose the profile that fits your account and temperament from a single input. Existing users who prefer the previous behaviour should select the Standard preset.
BUILT-IN PROTECTION & MONITORING
- Economic-calendar news avoidance: pauses new entries around high-impact events (uses the built-in MetaTrader calendar; no external connection required)
- Daily-loss stop and consecutive-loss safety guards
- Weekend close option
- On-chart dashboard: balance, equity, margin level, today / week / month / all-time P&L, win rate, longest win/loss streak, current drawdown, spread, and the next high-impact event
- Push and email notifications for opens, closes and margin warnings
=== WHO THIS IS FOR / NOT FOR ===
Right fit: traders who want a long-tested, single-pair trend follower with a hard stop on every trade, who will choose a Run-Mode rather than accept Ultra by default, who understand that two different drawdown numbers can both be honest, and who can wait through quiet stretches without switching the EA off.
Not a fit: anyone who wants daily activity, anyone who reads "absolute drawdown 16%" and stops there — at Ultra the peak-to-trough swing is 58.6% — and anyone unwilling to run it on a VPS or an always-on PC.
=== 5-MINUTE DEMO CHECKLIST ===
1) Download the free demo and open the Strategy Tester. Symbol USDJPY, timeframe H1. On any other symbol or timeframe it places no trades — zero results almost always means this.
2) Modelling: "Every tick based on real ticks". Lower-quality models cannot reproduce the ATR trail or the time stop.
3) Period: 2017.01 to today, the 9.4 years the published table covers.
4) Run Ultra once, then run Aggressive on the identical settings, and look at the equity curve rather than the final percentage. The absolute drawdown barely moves (~16%); the relative peak-to-trough drawdown is what separates them — 58.6% against 19.5%. That relative figure is the one you will actually live through.
5) Compare trade count, profit factor and both drawdown figures with the table above. A large gap usually means a short period, poor tick history, a different broker timezone, or the wrong chart.
6) Then run it on a demo account for at least one month before any live money, on the Run-Mode you chose deliberately.
After that month, please leave a review, positive or negative, with the period, broker and Run-Mode you used. Honest data helps every other trader here more than any marketing.
RECOMMENDED SETUP
- Symbol: USDJPY
- Timeframe: H1
- Account: works from a modest standard account; for very small balances a micro/cent account is recommended so the minimum lot is not oversized
- Leverage: 1:100 or higher is comfortable
- VPS or an always-on PC is recommended so the EA runs 24/5 without interruption
- Default Run-Mode is Ultra. For everyday use we recommend Aggressive (growth) or Defensive/Standard (safety); keep Ultra only if you accept the deeper relative drawdown.
KEY INPUTS
- RunMode: Defensive / Standard / Aggressive / Ultra (default Ultra)
- RiskPercent / FixedLot / MaxLot: position sizing and lot cap
- N_Channel: Donchian breakout channel length (H1 bars)
- ATR_Period: ATR period
- SL_ATR: initial stop distance (ATR multiple)
- Trail_ATR: trailing stop distance (ATR multiple)
- HoldBars: time-stop length
- MinATR_Abs: optional minimum absolute ATR to require volatility
- AllowBuy, AllowSell: enable long / short directions
- News filter, weekend-close and notification settings
IMPORTANT RISK DISCLOSURE
This product is a software tool for automated order execution. It is not investment advice and does not manage your funds. No trading system can guarantee profit, and past performance — including any backtest — does not guarantee future results. Trend-following systems have a low win rate by nature and can suffer extended drawdowns during sideways markets. The Ultra default is intentionally aggressive and reaches a relative peak-to-trough equity drawdown of about 59%; start on a demo account, and step down to Aggressive, Standard or Defensive if the drawdown is more than you want. Only trade with money you can afford to lose.
=== INDEPENDENT VERIFICATION (FXEA365) ===
We publish this EA's full verification record on our own site - the same real-tick
backtest, the out-of-sample split, and equity drawdown (not the flattering balance
drawdown). Check it before you buy, not after:
https://fxea365.com/en/ea/megamax-donchian
SUPPORT
Please use the built-in chat for questions. Updates and improvements are published through the Market and delivered to you automatically.
How to check a backtest yourself — 5 curve-fit tests we apply to our own: https://www.mql5.com/en/blogs/post/772366
=== START HERE ===
1) Read the RISK WARNING below before anything else.
2) Attach the EA to a USDJPY H1 chart — on any other chart it will place no trades.
3) Test the free demo in the Strategy Tester first: see “5-MINUTE DEMO CHECKLIST” below.
4) Independent forward results: see “INDEPENDENT VERIFICATION (FXEA365)” below.
MT5 EDITION — This is the MetaTrader 5 build of MEGAMAX DONCHIAN. An MT4 edition is published separately on this account. The two builds share the same core entry logic. The MetaTrader 5 build additionally offers cent-account support, built-in per-asset presets and a selectable trading timeframe; the MetaTrader 4 build does not. The figures in this description were measured on MetaTrader 5 with 100% real tick data; the MT4 build will differ, because tick model, spread and execution differ between the two platforms and between brokers.
IMPORTANT — attach the EA to a USDJPY H1 chart. The strategy reads that timeframe; on any other chart it will simply place no trades. If you are testing the free demo in the Strategy Tester, set the symbol and timeframe to USDJPY H1 or you will see zero trades.
MEGAMAX DONCHIAN is an automated trading system for USD/JPY on the H1 timeframe. It is a pure trend follower: it waits for a confirmed breakout of the Donchian channel of the recent range, then rides the move with an ATR trailing stop and no fixed take-profit. There is no grid and no martingale. The design accepts that most trades are small losses or scratches, and aims to let a minority of strong, sustained USD/JPY trends carry the result — over a long 9.4-year track record.
RISK WARNING FIRST: The published default Run-Mode is ULTRA (maximum verified risk). It targets the highest return and reaches the deepest relative drawdown. Choose the Run-Mode that matches your account and temperament — Defensive, Standard or Aggressive are the everyday recommendations; Ultra is for experienced traders who accept large equity swings. All backtests below are historical, not a live track record.
FOUR RISK TIERS — ONE DROPDOWN, SAME SIGNAL, RISK SCALES (real-tick backtest, MT5 Strategy Tester, USDJPY H1, 2017-2026, ~9.4 years, $10,000, default settings otherwise):
- Defensive: +71% / Profit Factor 1.59 / max equity drawdown 4.8%
- Standard: +165% / Profit Factor 1.50 / max equity drawdown 7.3%
- Aggressive (recommended): +716% / Profit Factor 1.55 / max equity drawdown 16.4% (relative 19.5%)
- Ultra (published default): +2,155% / Profit Factor 1.55 / relative equity drawdown 58.6% (absolute max equity drawdown only 16.3%)
Every tier trades the identical signal; only position-sizing risk scales. Note the two drawdown figures at the top tiers: because a high-compounding trend system reinvests gains, the ABSOLUTE maximum equity drawdown stays modest (~16%), while the RELATIVE peak-to-trough drawdown grows with compounding — reaching 58.6% at Ultra. Both are disclosed on purpose so you can judge the real swing. Cross-checked on the Exness feed (OHLC model): consistent across feeds.
This is a tool. It does not promise profit. Automated trading carries real risk, and trend-following systems endure long stretches of small losses while waiting for a trend. Please read the whole description, start on the tier that fits you, and size your risk before using it on a live account.
HOW IT WORKS
1) Entry — Donchian breakout
The EA tracks the highest high and lowest low of the recent Donchian channel (default 20 H1 bars) and enters when price breaks beyond that range. A breakout signals that the market has left its recent equilibrium and may be starting a directional move.
2) Initial stop — ATR-based
On entry, a protective stop is placed at a multiple of ATR (default 2.0×) from the entry price. This sizes the initial risk to current volatility rather than a fixed pip distance, so the stop adapts to quiet and active conditions alike.
3) Trailing stop — Let trends run
As the trade moves in your favour, the stop trails behind price at a wider ATR distance (default 4.0×). There is no fixed take-profit: the trailing stop both protects open profit and gives the trend room to continue, closing the trade only when price retraces by the trailing distance.
4) Time stop
If a position has not developed into a trend after a configured number of bars (default 120), it is closed by a time stop, freeing capital and avoiding indefinite exposure to a stalled trade.
5) Position sizing
Lots are sized from a risk percentage of balance against the initial stop distance, with a hard maximum-lot cap. The Run-Mode you select scales this risk percentage up or down.
RUN-MODE: ONE DROPDOWN FOR RISK
MEGAMAX DONCHIAN includes a Run-Mode selector with four settings — the numbers for each are in the table above:
- Defensive: lowest risk and drawdown, for capital preservation
- Standard: the original balanced profile
- Aggressive: our recommended growth setting — strong return at a moderate drawdown
- Ultra: the published default — maximum verified return, deepest relative drawdown, for experienced traders
Because risk and reward scale proportionally, you choose the profile that fits your account and temperament from a single input. Existing users who prefer the previous behaviour should select the Standard preset.
BUILT-IN PROTECTION & MONITORING
- Economic-calendar news avoidance: pauses new entries around high-impact events (uses the built-in MetaTrader calendar; no external connection required)
- Daily-loss stop and consecutive-loss safety guards
- Weekend close option
- On-chart dashboard: balance, equity, margin level, today / week / month / all-time P&L, win rate, longest win/loss streak, current drawdown, spread, and the next high-impact event
- Push and email notifications for opens, closes and margin warnings
=== WHO THIS IS FOR / NOT FOR ===
Right fit: traders who want a long-tested, single-pair trend follower with a hard stop on every trade, who will choose a Run-Mode rather than accept Ultra by default, who understand that two different drawdown numbers can both be honest, and who can wait through quiet stretches without switching the EA off.
Not a fit: anyone who wants daily activity, anyone who reads "absolute drawdown 16%" and stops there — at Ultra the peak-to-trough swing is 58.6% — and anyone unwilling to run it on a VPS or an always-on PC.
=== 5-MINUTE DEMO CHECKLIST ===
1) Download the free demo and open the Strategy Tester. Symbol USDJPY, timeframe H1. On any other symbol or timeframe it places no trades — zero results almost always means this.
2) Modelling: "Every tick based on real ticks". Lower-quality models cannot reproduce the ATR trail or the time stop.
3) Period: 2017.01 to today, the 9.4 years the published table covers.
4) Run Ultra once, then run Aggressive on the identical settings, and look at the equity curve rather than the final percentage. The absolute drawdown barely moves (~16%); the relative peak-to-trough drawdown is what separates them — 58.6% against 19.5%. That relative figure is the one you will actually live through.
5) Compare trade count, profit factor and both drawdown figures with the table above. A large gap usually means a short period, poor tick history, a different broker timezone, or the wrong chart.
6) Then run it on a demo account for at least one month before any live money, on the Run-Mode you chose deliberately.
After that month, please leave a review, positive or negative, with the period, broker and Run-Mode you used. Honest data helps every other trader here more than any marketing.
RECOMMENDED SETUP
- Symbol: USDJPY
- Timeframe: H1
- Account: works from a modest standard account; for very small balances a micro/cent account is recommended so the minimum lot is not oversized
- Leverage: 1:100 or higher is comfortable
- VPS or an always-on PC is recommended so the EA runs 24/5 without interruption
- Default Run-Mode is Ultra. For everyday use we recommend Aggressive (growth) or Defensive/Standard (safety); keep Ultra only if you accept the deeper relative drawdown.
KEY INPUTS
- RunMode: Defensive / Standard / Aggressive / Ultra (default Ultra)
- RiskPercent / FixedLot / MaxLot: position sizing and lot cap
- N_Channel: Donchian breakout channel length (H1 bars)
- ATR_Period: ATR period
- SL_ATR: initial stop distance (ATR multiple)
- Trail_ATR: trailing stop distance (ATR multiple)
- HoldBars: time-stop length
- MinATR_Abs: optional minimum absolute ATR to require volatility
- AllowBuy, AllowSell: enable long / short directions
- News filter, weekend-close and notification settings
IMPORTANT RISK DISCLOSURE
This product is a software tool for automated order execution. It is not investment advice and does not manage your funds. No trading system can guarantee profit, and past performance — including any backtest — does not guarantee future results. Trend-following systems have a low win rate by nature and can suffer extended drawdowns during sideways markets. The Ultra default is intentionally aggressive and reaches a relative peak-to-trough equity drawdown of about 59%; start on a demo account, and step down to Aggressive, Standard or Defensive if the drawdown is more than you want. Only trade with money you can afford to lose.
=== INDEPENDENT VERIFICATION (FXEA365) ===
We publish this EA's full verification record on our own site - the same real-tick
backtest, the out-of-sample split, and equity drawdown (not the flattering balance
drawdown). Check it before you buy, not after:
https://fxea365.com/en/ea/megamax-donchian
SUPPORT
Please use the built-in chat for questions. Updates and improvements are published through the Market and delivered to you automatically.
How to check a backtest yourself — 5 curve-fit tests we apply to our own: https://www.mql5.com/en/blogs/post/772366

