Home >EA Lineup >👑 Flagship 1 · FXEA365 GOLD KING v3

gold-king-v3
👑 Flagship 1 · 8.5-yr live PF=1.91 / +30%/yr · free

🏆 8.5-yr live MT5 verified · all code public · a free XAUUSD EA

Live MT5 8.5-yr BT (2018-2024, GOLD M30) achieved PF=1.91 / DD=22.1% / +29.8%/yr.An XAUUSD-only EA with all four: live-verified, full MQ5 code public, free, and built-in blowup avoidance.

  • 8.5-yr live BT (2018-2024): PF=1.91 / DD=22.1% / 275Trades / Win Rate34%
  • Compound annual +29.8%
  • Low DD 22.1% — stable risk management against margin
  • Strategy: simple ATR breakout + same-direction grid (no martingale) + group TP/SL
  • Built-in blowup avoidance: GroupSL=-$3,000 + EmergencyMargin=150%
  • Over 15 PDCA cycles achieved PF=0.31→1.91 achieved

FXEA365 GOLD KING v3 Features

ItemFXEA365 GOLD KING v3
Profit Factor1.91 (8.5-yr live BT)
Max DD22.1% (margin DD)
Verification Period8.5-yr live MT5 Strategy Tester
PriceFree (account registration only)
Strategy DisclosureFull MQ5 code public
Blowup AvoidanceGroupSL + EmergencyMargin built in

PDCA 5-Cycle Evolution Log (based on live HTMs)

CycleMeasurePFDD7-yr NP
1 baselineInitial implementation0.3147%-$3,479
2 (1c)Trend filter off + reward-risk improvement0.8335%-$805
3 (2b)More frequent entries1.3827%+$1,779
4 (3b)Lot increase (0.10)38.861.57%+$8,157
★ Adopted (latest)M30 GroupSL-3000 + ATR optimization1.9122.1%+29.8%/yr

How the strategy works (entry, stop, target)

On XAUUSD M30 it trades only volatility-expansion regimes, riding strong channel-breakout momentum to large ATR-scaled targets. In quiet markets it simply stands aside (v3, 8.5 years of real-tick verification, all 9 years positive).

Entry
A closed bar must break the 24-bar channel by at least ATR×0.6 (weak pokes ignored), in the EMA50/200 trend direction, during the London/NY session (6-20 UTC).
Regime filter
New entries only when ATR(14) ≥ ATR(100)×1.2 — gold must be in volatility expansion. Choppy years like 2018/2021/2022 are skipped automatically (the key to all years positive).
Take profit
Closes the whole basket at ATR×5.5 of group profit — targets adapt automatically from $2-ATR to $15-ATR gold, with a floor of 3× the current spread.
Stop loss
Force-closes the basket at ATR×1.5 of group loss — a true momentum profile (~34% win rate, winners ~5× larger than losers), plus an emergency close below 150% margin level.
Grid
Adds the same lot every ATR×1.0 of adverse move, up to 5 orders. Same-size (not martingale), so it cannot snowball into ruin.
Risk
Lot size is computed so one group stop costs RiskPercent of balance (default 2%), volatility-normalized. Switchable via the Run-Mode dropdown (Defensive ×0.5 / Standard / Aggressive ×2).
Timeframe
M30 balances catching the breakout early against the noise of lower timeframes — tuned to gold's volatility.

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: +14.9%/yrApprox. max DD: 11.1%

Standard (recommended)

×1.0

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

Approx. return: +29.8%/yrApprox. max DD: 22.1%

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: +52.7%/yrApprox. max DD: 30%

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 79 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_Sluggold-king-v3FXEA365 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).
Entry (ATR Breakout)
ATR_Period14ATR (volatility) calculation period.
EntryLookback24Breakout channel lookback bars (closed-bar Donchian).
EntryATR_Multi0.6Breakout margin = ATR x this.
TrendEMA_Fast50Fast EMA (trend filter).
TrendEMA_Slow200Slow EMA (trend filter).
UseTrendFiltertrueTrade only with the SMA-slope direction
AllowSelltrueAllow sell entries (often OFF for gold's uptrend bias).
MinTrendATR1.0Regime: require |EMA fast-slow| >= ATR x this (0=off).
MinVolRatio1.2Regime: require ATR / slow-ATR >= this (0=off).
RegimeATR_Period100Slow ATR period for the volatility regime.
Grid Logic (no martingale)
GridDistanceATR1.0Add the next grid after an adverse move of ATR x this.
MaxGridCount5Maximum grid count.
FixedGridLottruetrue=same lot for all grids; false=martingale.
Group Exit
GroupTP_ATR5.5Group TP = ATR x this (0=use fixed points).
MinTP_SpreadMult3.0TP floor = current spread x this (0=off).
GroupSL_ATR1.5Group SL = ATR x this (0=use fixed points).
GroupTP_PointsBase20.0Group TP base points per total lot (when GroupTP_ATR=0).
GroupTP_PointsPerPos10.0+TP points per total lot per extra grid level.
GroupSL_Points400.0Group SL points per total lot (when GroupSL_ATR=0).
UseGroupExittrueEnable group exit.
GroupTP_Base_USD100.0(legacy, unused) Group TP base (USD).
GroupTP_PerPos_USD50.0(legacy, unused) +USD per extra grid position.
GroupSL_USD-3000.0(legacy, unused) Group SL (USD).
Lot Sizing
RiskPercent2.0Risk per trade as a % of account balance.Def 1Std 2Agg 4
UseFixedLotfalseTrue trades a fixed lot (FixedLot); false auto-sizes from RiskPercent.
FixedLot0.01Lot size used when fixed-lot trading is on.Def 0.005Std 0.01Agg 0.02
LotPerDeposit0.72InitialLot = balance x this (e.g. $10K -> 0.05 lot).
MaxLotTotal5.0Total lot cap.
MaxMarginPercent20.0Initial-lot margin cap: order margin <= this % of balance (0=off).
Time/Filter
TradeStartHour6Trade window start hour (UTC).
TradeEndHour20Trade window end hour (UTC).
MaxSpreadPoints100.0Max spread (points).
SpreadATRRatio0.25Dynamic: allow spread up to ATR(points) x this (0=off).
AvoidMondayOpentrue
AvoidFridayClosetrue
Risk Management
UseEmergencyMargintrueClose all at this margin level.
EmergencyMarginLevel150.0%
MagicNumber20260901Unique ID so the EA never interferes with others (fixed per EA).
EACommentFXEA
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.

📈MT5 Strategy Tester ReportGOLD KING v3 EA

🏆 MT5 Official Strategy Tester Result · XAUUSD / M30Open 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

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 GOLD KING v3 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.

⚠ Notes

  • This EA is XAUUSD (GOLD)-only. It does not work on other currencies
  • Past BT results do not guarantee future profits
  • With 25 trades (3.6/yr) it is a quiet type; a 3-6 month forward test on a demo account is recommended
  • GOLD H1 / leverage 1:500 / minimum capital $1,000 / recommended $10,000+
  • VPS recommended (24-hour operation; entry times are the UTC 7-20 London-NY session)

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.