Home >EA Lineup >MEGAMAX DONCHIAN USDJPY

megamax-donchian
★ New EA · 9.4-yr live MT5 BT PF=1.44 · with-trend breakout (no averaging-down)

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 EAUSDJPY H1 with-trend breakout (+9.4%/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.44 / max DD 6.2%.

Live MT5 Strategy Tester 9.4-yr BT (USDJPY H1, $10,000)

MetricResult
Verification Period2014 - 2025 (9.4 yr)
Profit Factor1.44
Win rate / total trades32.8% / 619
Maximum Drawdown6.2%
Annual (compound)+9.4%/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.44

期待値

勝率

32.8%

619取引

最大DD

6.15%

証拠金DD

年率複利

+9.4%

+$940/年($10,000基準)

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 / TimeframeUSDJPY / H1
N_Channel (Donchian period)40
SL_ATR / Trail_ATR (trailing)1.5 / 4.0
HoldBars (time-based exit) / ATR_Period60 / 14
Direction / RiskPercentBUY-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 / TFPFMax DDWin RateTrades15 yr
USDJPY / H1 ★ main N40 Trailing1.446.2%32.8%619+133.4%
EURJPY / H1 N20 (2017-2026)1.496.0%25.0%312+74.7%
GBPJPY / H4 N40 Trailing1.414.7%38.5%148+18.2%

* 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)
↓ Register your account to get it free

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 with consistent results across 15 years of real-tick testing.

Entry
Trend entry on a breakout of the 20-bar Donchian channel.
Stop loss
Initial ATR×1.5 stop (distributed preset).
Trail / exit
ATR×4 trailing stop to extend the trend, with a 60-bar time stop.
Risk
Balance × 0.5% (low risk, low drawdown). Adjustable via Run-Mode.
Timeframe
USDJPY trends persistently on H1; 15-year real test gave +301% / PF 1.36.

📈MT5 Strategy Tester ReportMEGAMAX DONCHIAN USDJPY

🏆 MT5 Official Strategy Tester Result · USDJPY / H1Open original in new tab
MEGAMAX DONCHIAN USDJPY Strategy Tester Report

📋 About this report

  • Official MT5 Strategy Tester report (XMTrading-MT5 server)
  • 5-10 years of real price data + every tick (99.9% accuracy) model
  • Balance curve (blue) / Equity curve (green) shows floating losses too
  • Past results do not guarantee future profits

📈MT5 Strategy Tester ReportMEGAMAX DONCHIAN EURJPY

🏆 MT5 Official Strategy Tester Result · EURJPY / H1Open original in new tab

📋 About this report

  • Official MT5 Strategy Tester report (XMTrading-MT5 server)
  • 5-10 years of real price data + every tick (99.9% accuracy) model
  • Balance curve (blue) / Equity curve (green) shows floating losses too
  • Past results do not guarantee future profits

📈MT5 Strategy Tester ReportMEGAMAX DONCHIAN GBPJPY

🏆 MT5 Official Strategy Tester Result · GBPJPY / H4Open original in new tab

📋 About this report

  • Official MT5 Strategy Tester report (XMTrading-MT5 server)
  • 5-10 years of real price data + every tick (99.9% accuracy) model
  • Balance curve (blue) / Equity curve (green) shows floating losses too
  • Past results do not guarantee future profits

Run Mode (Defensive / Standard / Aggressive)

Every EA exposes a "RunMode" dropdown that switches aggressiveness across three levels. It only multiplies the lot (risk) — entry/exit logic, symbol and timeframe never change.

Defensive

×0.5

Half of standard risk. Both max drawdown and expected return are roughly halved. For capital preservation or first-time automated trading.

Approx. return: +3.1%/yrApprox. max DD: 3%

Standard (recommended)

×1.0

The backtest figures shown on this page use this setting. Start here.

Approx. return: +6.1%/yrApprox. max DD: 6.01%

Aggressive

×2.0

Double the standard risk. Return and max drawdown roughly double, raising the risk of ruin. Use only with money you can afford to lose.

Approx. return: +12.2%/yrApprox. max DD: 12%

Approximations relative to Standard (Defensive ≈ 0.5x / Aggressive ≈ 2x). Drawdown does not scale linearly; in sharp markets Aggressive can exceed this estimate. Lots auto-adjust to balance when compounding is on.

All Parameters

All 53 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.

ParameterDefaultDescription
General
VersionCheck_EnabletrueEnable automatic update notifications.
EA_Slugmegamax-donchian-usdjpyFXEA365 site EA identifier (do not change).
RunModeMODE_STANDARDRun mode (Defensive x0.5 / Standard x1.0 / Aggressive x2.0). Switches the lot multiplier.
Economic Event Filter
EconFilter_EnabletrueAvoid trading around high-impact economic events.
EconFilter_AvoidNFPtrueAvoid NFP (1st Friday each month).
EconFilter_AvoidFOMCtrueAvoid FOMC (US Federal Open Market Committee).
EconFilter_AvoidCPItrueAvoid CPI (US consumer price index).
EconFilter_AvoidWeekendtrueAvoid weekend risk (late Fri / early Mon).
EconFilter_AvoidHoursBefore2Avoid N hours before the release.
EconFilter_AvoidHoursAfter1Avoid N hours after the release.
EconFilter_ServerGMTOffset3Server-time GMT offset (summer=3 / winter=2).
EconFilter_VerbosefalseVerbose filter logging.
EconFilter_UseCalendartrueAuto-fetch from MT5 economic calendar (falls back to NFP/CPI rules where unavailable).
EconFilter_MinImportance2Min calendar importance (1=low+ / 2=medium+ / 3=high only).
EconFilter_CurrenciesUSDCalendar target currencies (CSV, e.g. USD,EUR,JPY).
EconFilter_StopImportance3Fully stop new entries at this importance or above.
EconFilter_StopBeforeMin120Stop: N minutes before release.
EconFilter_StopAfterMin60Stop: N minutes after release.
EconFilter_ReduceLotFactor0.5Lot factor on medium impact (reduce instead of stop).
EconFilter_ReduceBeforeMin30Reduce lot: N minutes before.
EconFilter_ReduceAfterMin15Reduce lot: N minutes after.
Safety Guard
Guard_EnabletrueEnable the safety guard (forward only).
Guard_EmergencyMargin120.0Close all if margin level falls below this % (0=off).
Guard_DailyLossPct8.0Stop new entries for the day at this daily loss % (0=off).
Guard_DailyLossClosefalseAlso close open positions when the daily loss is hit.
Guard_MaxConsecLoss0Stop new entries for the day after N consecutive losses (0=off).
Guard_FridayClosefalseClose everything late Friday.
Guard_FridayCloseHour20Friday close-all hour (server time).
News Protect
Guard_NewsProtectMode00=off / 1=SL to break-even / 2=half close / 3=close all.
Guard_NewsProtectMin15Run protection N minutes before high-impact events.
Dashboard / Notify
Notify_PushtrueMT5 mobile push notifications (requires MetaQuotes ID).
Notify_EmailfalseEmail notifications (requires MT5 email setup).
Notify_WebhookURLGeneric webhook URL (Discord/Slack, etc.; empty=off).
Notify_MarginAlert150.0Alert when margin level falls below this %.
Notify_DailySummarytrueSend a daily summary at a set time.
Notify_SummaryHour6Daily summary send hour (server time, 0-23).
Dash_TradeCSVtrueRecord all fills to CSV (MQL5/Files).
Dash_PauseButtontrueShow a pause button on the chart.
Notify_NewsPrewarnMin60Pre-warn N minutes before entries are halted (0=off).
Donchian Core (htf_survivors.json 値)
N_Channel20Donchian lookback bars (XAUUSD/EURJPY=20, USDJPY/GBPJPY=10)
SL_ATR2.0SL = ATR x this (wider for gold).
TP_ATR5.0TP = ATR x this (e.g. 8.0 for EURJPY/USDJPY).
HoldBars60Hold timeout (bars; 20 for EURJPY/USDJPY)
ATR_Period14ATR (volatility) calculation period.
MinATR_Abs0.0Min ATR (price units; 0=off, e.g. 0.03 for JPY)
Direction Filter (swap-aware)
AllowBuytrueAllow buy entries.
AllowSelltrueAllow sell entries (often OFF for gold's uptrend bias).
Risk
RiskPercent0.5Risk per trade as a % of account balance.Def 0.25Std 0.5Agg 1
FixedBaseBalance00 = compounding (lot follows balance). >0 = use this fixed base (no compounding / daily-withdrawal mode).
FixedLot0.0Lot size used when fixed-lot trading is on.Def 0Std 0Agg 0
MaxLot5.0Hard cap on total lots (prevents runaway / oversized positions).
MagicNumber20260604Unique ID so the EA never interferes with others (fixed per EA).
AllowCenttrueAllow cent / micro accounts
DetailedLogtrueLogs wait/skip reasons, entries and exits to the Journal (forward only).

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)

Try it free first

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 →

STEP 2 Register your account number and download (free)

Free registration; your account number is used only for EA license activation

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.

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.

Related EAs

5-Day Email Course (Free)

Get one email a day covering the essentials of FX automated trading, how to read backtests correctly, and tips for choosing a broker.

* Privacy strictly protected. You can unsubscribe at any time.