
🌱 4-line summary for beginnersGlossary
- What does this EA do?
- A Donchian (high/low) breakout EA on USDJPY H1. 9.4 years: PF 1.55, DD 58.6% at the ultra-aggressive default.
- Price?
- Free: register an account with a partner broker and download a copy locked to that account. If you don't want to open an account, buy it on the MQL5 Market (buy-out or rent; the price is shown on the purchase page). Both options are lower on this page.
- Who it suits
- People who want simple rule-based trend following on forex. The default is aggressive, so beginners should lower the risk setting.
- After getting it
- Install MT5
- Free version: put the downloaded file in the MT5 Experts folder. If bought on MQL5, it appears in the MT5 'Market' tab. Drag it onto a chart and set it up
- Run it on a USDJPY H1 chart, on a demo account for 1–2 weeks first, then go live
This Is a Different Thing from the Old MEGAMAX v3.6
The old MEGAMAX EA v3.6 (Asia Range Breakout, 11 pairs) blew up on all pairs in live MT5 verification (redesign required) and was taken down(See the old version's verification results here)。
This EA inherits the name but is a complete redesign. The strategy is changed to a simple USDJPY H1 Donchian channel breakout (BUY-only), and after 17 PDCA optimization cycles in Python, we re-verified 9.4 years (2017-2026) in the live MT5 Strategy Tester and passed — we publish only what passed.
New EA · Donchian breakout + ATR exit + time-based exit
MEGAMAX DONCHIAN USDJPY EA
USDJPY H1 with-trend breakout (+39.3%/yr / 9.4-yr live)
It enters with the trend on an upside break of an N-bar Donchian channel, extends profits with an ATR-based initial SL + trailing stop, and exits on time after a set number of bars — a BUY-only breakout EA.Since the buy direction is the swap-receiving side, it is also advantageous on holding costs over the long term. It uses no averaging-down or martingale whatsoever.In 9.4 years (2017-2026) of live MT5 BT, +133.1% / PF=1.55 / max DD 58.6%.
Live MT5 Strategy Tester 9.4-yr BT (USDJPY H1, $10,000)
| Metric | Result |
|---|---|
| Verification Period | 2014 - 2025 (9.4 yr) |
| Profit Factor | 1.55 |
| Win rate / total trades | 35.0% / 629 |
| Maximum Drawdown | 58.6% |
| Annual (compound) | +39.3%/yr |
* Live MT5 Strategy Tester measurements (OHLC per bar / real spread). Only live values are published, not Python BT. The trailing stop captures big trends in full, growing capital about 4x in 9.4 years ($10,000 → $31,120) while keeping risk low at max DD 6.5%.
Profit Factor
1.55
期待値
勝率
35.0%
629取引
最大DD
58.60%
証拠金DD
年率複利
+39.3%
+$3,930/年($10,000基準)
Attach to: USDJPY H1 — The strategy reads the H1 timeframe. On any other chart it will place no trades at all. When testing in the MT5 Strategy Tester, set the symbol and timeframe to USDJPY H1 as well.
Design Highlights (eliminating over-optimization)
- Parameters use the median of the plateau — avoiding single-peak over-optimization
- Robustness confirmed via 3x-spread stress and walk-forward (IS 2012-2019 / OOS 2020-2025)
- BUY-only = swap-receiving side. Swap costs don't work against it even when holding long term
- No averaging-down or martingale. Per-trade risk is fixed with an ATR-based SL
Recommended Settings (live-verified parameters, .set included)
The download zip includes the trailing version EA (MEGAMAX_DONCHIAN_TRAIL_EA) and the verified preset MEGAMAX_DONCHIAN_USDJPY_H1_TRAIL.set.Be sure to apply it to a USDJPY H1 chart and load this .set in the input fields (a different timeframe will not reproduce the results above).
| Pair / Timeframe | USDJPY / H1 |
| N_Channel (Donchian period) | 40 |
| SL_ATR / Trail_ATR (trailing) | 1.5 / 4.0 |
| HoldBars (time-based exit) / ATR_Period | 60 / 14 |
| Direction / RiskPercent | BUY-only (AllowSell=false) / 0.5% |
MEGAMAX DONCHIAN JPY Family (all 9.4-yr live MT5 verified)
The same strategy deployed to several JPY crosses. With low correlation, it suits diversified operation. All are live MT5 Strategy Tester measurements (every-tick equivalent / real spread) for 2017-2026.
| Pair / TF | PF | Max DD | Win Rate | Trades | 15 yr |
|---|---|---|---|---|---|
| USDJPY / H1 ★ main N40 Trailing | 1.55 | 58.6% | 35.0% | 629 | +133.4% |
| EURJPY / H1 N20/Trail10 (2017-2026) | 1.51 | 33.3% | 25.2% | 571 | +552.6% |
| GBPJPY / H4 N20/Trail3 (2017-2026) | 1.32 | 57.0% | 42.6% | 256 | +875% |
* The 4 JPY crosses are distributed as a single "MEGAMAX DONCHIAN JPY Pack" (EA + per-pair H4 presets included). The detailed presets for each pair are described in the README inside the zip. The annual return is modest, but it is a solid, low-DD type consistent over 9.4 years.
★NEW — one EA, three pairs at once
MEGAMAX DONCHIAN JPY (multi-pair)
Instead of running USDJPY, GBPJPY and EURJPY on three separate charts, drop ONE EA on ONE chart and it trades all three at once. Each pair runs its own validated config (per-symbol channel / timeframe / trail / hold), and its backtest is byte-identical to the standalone version (USDJPY within 0.4%, GBPJPY/EURJPY exact).
- • Buy-only Donchian breakout + hard SL + ATR trail + time-exit (same engine as the standalone)
- • Missing symbols auto-skipped, broker suffix auto-detected (works on any MT5)
- • One install, one chart, 3-pair diversification (no more 3-chart setup)
Free with account registration (account-locked). Download the multi-pair and per-pair versions from your dashboard after registering.
How the strategy works (entry, stop, target)
On USDJPY H1, it follows Donchian-channel breakouts with an ATR trailing stop — a robust trend follower tested on 9.4 years of data (2017–2026, Dukascopy).
📈MT5 Strategy Tester Report — MEGAMAX DONCHIAN USDJPY

📋 About this report
- Official report generated by the MT5 Strategy Tester (real-tick data)
- Multi-year real price data with the every-tick (real ticks) model
- Balance curve (blue) / Equity curve (green) shows floating losses too
- Past results do not guarantee future profits
📈MT5 Strategy Tester Report — MEGAMAX DONCHIAN EURJPY
📋 About this report
- Official report generated by the MT5 Strategy Tester (real-tick data)
- Multi-year real price data with the every-tick (real ticks) model
- Balance curve (blue) / Equity curve (green) shows floating losses too
- Past results do not guarantee future profits
📈MT5 Strategy Tester Report — MEGAMAX DONCHIAN GBPJPY
📋 About this report
- Official report generated by the MT5 Strategy Tester (real-tick data)
- Multi-year real price data with the every-tick (real ticks) model
- Balance curve (blue) / Equity curve (green) shows floating losses too
- Past results do not guarantee future profits
Verification Status
How far verification has progressed, from backtest to forward testing
- BacktestDone
- Period
- H1 (2017.01.01 - 2026.06.01)
- History quality
- 100%
- Trades
- 571
- PF
- 1.51
- Max DD
- 33.30%
- OOSDone
- Data source
- MT5 official ticks
- Years verified
- 9.4
- ForwardNot started
This EA has no published forward-test record yet. Until results appear here, judge it only by the backtest / OOS figures above.
- LiveNot started
Run Mode
MeasuredThe "RunMode" dropdown switches how aggressively the EA trades. Only the lot (risk) changes — entry/exit logic, symbol and timeframe stay the same.
Defensive
×0.5Half the Standard lot. For capital preservation or first-time automated trading.
Standard (recommended)
×1.0The reference risk level. Start here.
Aggressive
×2.0Twice the Standard lot. Drawdowns deepen and the risk of ruin rises. Use only money you can afford to lose.
Ultra
The maximum risk level set for each EA. Produces the deepest drawdowns. Only for traders who fully accept the risk.
Measured backtest: USDJPY H1, 2017-01 – 2026-05, 629 trades, $10,000 start, MT5 Strategy Tester. Returns are totals for the whole period, not annual. Every mode trades the same signals; only the lot differs.
Past performance does not guarantee future results. With compounding on, lots adjust automatically to the balance.
All Parameters
All 57 inputs shown in MT5 (EA core + shared modules). Strategy-core values are pre-optimized — keep them at defaults; tune only the operational ones as needed.
| Parameter | Default | Description |
|---|---|---|
| General | ||
VersionCheck_Enable | true | Enable automatic update notifications. |
RunMode | MODE_STANDARD | Run mode (Defensive x0.5 / Standard x1.0 / Aggressive x2.0). Switches the lot multiplier. |
| Economic Event Filter | ||
EconFilter_Enable | true | Avoid trading around high-impact economic events. |
EconFilter_AvoidNFP | true | Avoid NFP (1st Friday each month). |
EconFilter_AvoidFOMC | true | Avoid FOMC (US Federal Open Market Committee). |
EconFilter_AvoidCPI | true | Avoid CPI (US consumer price index). |
EconFilter_AvoidWeekend | true | Avoid weekend risk (late Fri / early Mon). |
EconFilter_AvoidHoursBefore | 2 | Avoid N hours before the release. |
EconFilter_AvoidHoursAfter | 1 | Avoid N hours after the release. |
EconFilter_ServerGMTOffset | 3 | Server-time GMT offset (summer=3 / winter=2). |
EconFilter_Verbose | false | Verbose filter logging. |
EconFilter_UseCalendar | true | Auto-fetch from MT5 economic calendar (falls back to NFP/CPI rules where unavailable). |
EconFilter_MinImportance | 2 | Min calendar importance (1=low+ / 2=medium+ / 3=high only). |
EconFilter_Currencies | USD | Calendar target currencies (CSV, e.g. USD,EUR,JPY). |
EconFilter_StopImportance | 3 | Fully stop new entries at this importance or above. |
EconFilter_StopBeforeMin | 120 | Stop: N minutes before release. |
EconFilter_StopAfterMin | 60 | Stop: N minutes after release. |
EconFilter_ReduceLotFactor | 0.5 | Lot factor on medium impact (reduce instead of stop). |
EconFilter_ReduceBeforeMin | 30 | Reduce lot: N minutes before. |
EconFilter_ReduceAfterMin | 15 | Reduce lot: N minutes after. |
| Safety Guard | ||
Guard_Enable | true | Enable the safety guard (forward only). |
Guard_EmergencyMargin | 120.0 | Close all if margin level falls below this % (0=off). |
Guard_DailyLossPct | 8.0 | Stop new entries for the day at this daily loss % (0=off). |
Guard_DailyLossClose | false | Also close open positions when the daily loss is hit. |
Guard_MaxConsecLoss | 0 | Stop new entries for the day after N consecutive losses (0=off). |
Guard_FridayClose | false | Close everything late Friday. |
Guard_FridayCloseHour | 20 | Friday close-all hour (server time). |
| News Protect | ||
Guard_NewsProtectMode | 0 | 0=off / 1=SL to break-even / 2=half close / 3=close all. |
Guard_NewsProtectMin | 15 | Run protection N minutes before high-impact events. |
| Dashboard / Notify | ||
Notify_Push | true | MT5 mobile push notifications (requires MetaQuotes ID). |
Notify_Email | false | Email notifications (requires MT5 email setup). |
Notify_WebhookURL | — | Generic webhook URL (Discord/Slack, etc.; empty=off). |
Notify_MarginAlert | 150.0 | Alert when margin level falls below this %. |
Notify_DailySummary | true | Send a daily summary at a set time. |
Notify_SummaryHour | 6 | Daily summary send hour (server time, 0-23). |
Dash_TradeCSV | true | Record all fills to CSV (MQL5/Files). |
Dash_PauseButton | true | Show a pause button on the chart. |
Notify_NewsPrewarnMin | 60 | Pre-warn N minutes before entries are halted (0=off). |
SymbolList | USDJPY,GBPJPY,EURJPY | JPY pairs (broker suffix auto-detected) |
ChannelList | 40,20,20 | Donchian channel bars per pair |
TFList | H1,H4,H1 | Timeframe per pair |
TrailList | 8,3,10 | Trailing distance (ATR mult) per pair |
HoldList | 60,180,200 | Max bars to hold before time-exit, per pair |
RiskList | 0.5,1.0,1.0 | Risk % per pair (allocation) |
SLList | 2.0,2.5,2.0 | Initial hard SL (ATR mult) per pair (v1.20) |
SL_ATR | 2.0 | SL = ATR x this (wider for gold). |
ATRPeriod | 14 | |
TradeChartSymbol | true | Also trade the attached chart symbol as a leg |
ChartLegChannel | 20 | Chart-symbol leg: Donchian channel bars |
ChartLegTrail | 8.0 | Chart-symbol leg: trailing ATR mult |
ChartLegHold | 200 | Chart-symbol leg: hold bars |
ChartLegRisk | 0.5 | Chart-symbol leg: risk % |
MaxLot | 5.0 | Hard cap on total lots (prevents runaway / oversized positions). |
MagicBase | 26260001 | |
Slippage | 30 | Allowed slippage (points). |
DetailedLog | true | Logs wait/skip reasons, entries and exits to the Journal (forward only). |
LogVerbose | false | Verbose tier: log every-bar evaluation detail |
Defaults and descriptions follow the EA source. Lot inputs show the effective value after the run-mode multiplier (Defensive x0.5 / Standard x1.0 / Aggressive x2.0). See the bundled MANUAL.html for details.
Download (free)
STEP 1 Prepare your account
Using the EA requires an MT5 account opened through our referral link. If you already have an account, please create an additional account.
No account yet — open a new account via the links below
Adding an account — create an additional account in your member pageSee how →
Buy (paid, one-time license)
Buy MEGAMAX DONCHIAN EA
Buy on the official MetaQuotes Market (MQL5 Market). Payment, licensing and automatic updates are all handled inside the MT5 app.
🏷 Launch pricing now — the price steps up every 3 copies sold. The earlier you buy, the lower the price.
Buy on MQL5 Market (MT5) →Buy on MQL5 Market (MT4) →Buy on the official MetaQuotes Market — install directly in MT5 with automatic updates. No account registration needed.