Gold MultiAgent Master

Gold MULTIAGENT (GoldMASTER v1.0) for MetaTrader 5


GoldMASTER is an Expert Advisor (EA) for MetaTrader 5 that trades gold CFDs (XAUUSD) on the 15-minute chart. Its entry logic is trend following with pullback entries: the EA identifies the trend regime with the 50 and 200-period EMAs and the ADX on M15 and H1, waits for a pullback to the 20-period EMA with a rejection candle, and filters the signal with the RSI. Every trade carries a wide stop of ATR on M15 and a target of twice the stop, and is then managed with a cost-adjusted break-even and an ATR trailing stop.

The EA is organized into eleven deterministic components with separate responsibilities (trend regime, signal, intermarket context, fundamentals,

economic calendar, execution and costs, risk, position management and meta-filter). Every candidate decision is logged, so each trade, and each trade not taken, can be traced to the condition that produced it. The design favors capital preservation over trade frequency: few trades per day, cost gates, daily-loss and drawdown guards, and no martingale, grid or averaging down.


1.1 Key features

 - One position at a time per symbol; no martingale, grid or averaging down.

 - Stop loss and take profit always defined and sized by ATR, not fixed pips.

 - Lot size from a percentage of balance, with a capital guard: if the

   broker's minimum lot would exceed the target risk by more than 1.5x, the

   trade is skipped instead of over-risking.

 - Cost gate: spread + commission + expected slippage as a fraction of the

   risk; the trade is skipped if they exceed 10% of R.

 - Context filters with veto power: intermarket (EURUSD, USDJPY, XAGUSD) and

   optional fundamentals (real yield and broad dollar index, from a file).

 - Built-in high-impact calendar (FOMC, NFP, CPI, GDP and PCE, PPI, JOLTS),

   extendable by file; daily rollover block and optional Friday close.

 - Account guards: maximum daily loss, maximum drawdown with a persistent

   lock, pause after consecutive losses and maximum trades per day.

 - Exact New York time for NY+7 servers (Pepperstone and similar), also in

   the Strategy Tester.


1.2 EA components

 Trend regime              EMA50/EMA200 and ADX on M15 with H1 confirmation; ATR   percentiles exclude dead or shock markets.

 Signal                         Pullback to EMA20 within  xATR, rejection candle, RSI within limits.

 Intermarket                EURUSD (dollar proxy), USDJPY (rates proxy, inverted sign), XAGUSD (metals confirmation).

 Fundamentals             10-year real yield and broad dollar index 

 Economic calendar      Blocks entries around high-impact events; session, rollover and Friday rules.

 Execution and costs    Maximum spread, cost gate in R, order sending.

 Risk                            Risk-based lot, capital guard, daily loss, drawdown, losing streaks, daily trade cap.

 Position management  Cost-adjusted break-even, ATR trailing, optional time stop, Friday close.

 Meta-filter                  Optional logistic model estimating the probability of success of each signal.


Each signal receives a confidence score combining technical strength with the intermarket and fundamental scores. The EA trades only if the confidence exceeds and no context filter vetoes it.


BROKER CONFIGURATION

GoldMASTER is configured by default for Pepperstone. It can be used with any MetaTrader 5 broker offering a gold CFD, provided the inputs are adjusted to the broker's contract specification.


BACKTEST

Backtesting results for 2026 are shown in the attached figure (this can be verified using MT5).


FREQUENTLY ASKED QUESTIONS

Q: Can I reduce the stop to trade with a smaller balance?

A: Technically yes (InpATRstopMult), but with tight stops costs and slippage  take a larger share of each trade and raise the win rate required to

   break even. Validate it first with realistic slippage. 

Q: What if the EA locks after a drawdown?

A: The lock is intentional and persists after restarts. Review the trades  before releasing it with InpResetDDLock=true for a single start.

Q: Does it work on other symbols?

A: It is calibrated for gold; on other instruments the ATR, spread and cost  thresholds are not valid without recalibration.


Filtrer:
Aucun avis
Répondre à l'avis