MR GOLD TRADER PRO — Full Product Documentation

Platform: MetaTrader 5 • Instrument: XAUUSD (Gold) • Primary timeframe: H4

Trend-following SuperTrend + RSI/ADX/MACD/MA/BB ATR-adaptive Risk MR Trading Ai Algorithm V1 OpenAi 3.5.10 (Manual configuration needed) CRT Stop‑Hunt Entries Pending Grid (optional) RoboForex ECN Account (optional)

Install from the Official MQL5 Market

MR GOLD TRADER PRO is distributed exclusively via the MQL5 Market for licensing, security, and automatic updates.

Option A — Inside MetaTrader 5

  1. Open MetaTrader 5.
  2. Go to Navigator → Market.
  3. Search MR GOLD TRADER PRO.
  4. Click Install.
  5. Find it under Navigator → Expert Advisors → Market.

Option B — From MQL5.com

  1. Open the product page on the MQL5 Market.
  2. Log in with your MQL5 account.
  3. Click Install / Download.
  4. Open MT5 and log in to the same MQL5 account.
  5. The EA appears under Navigator → Expert Advisors → Market.
Using a VPS? Install locally first, then in MT5 go to Tools → VPS → Synchronize.

Attach & Allow Trading

  1. Open an XAUUSD (Gold) H4 chart.
  2. Drag MR GOLD TRADER PRO from Navigator → Expert Advisors → Market onto the chart.
  3. Common tab → enable Allow Algo Trading.
  4. Inputs tab → enter values manually (see below).
  5. Click OK. Smiley face at top-right of chart = EA running.

Quick Start — Safe Mode (Beginner)

A conservative profile for first‑time users. Enter these in the Inputs tab:

  • enableMarketSessionTrading = true
  • startTradingSession = 08:00
  • endTradingSession = 21:00
  • openLongPositions = true
  • openShortPositions = true
  • maxConcurrentLongPositions = 1
  • maxConcurrentShortPositions = 1
  • positionAveraging = false
  • autoLotsBasedOnAccountBalance = true
  • MinLotSize = 0.01
  • MaxLotSize = 0.10
  • LotSizeMultiplier = 1
  • CheckSpreadBeforeTrade = true
  • MaxAllowedSpreadGap = 80
  • AutoPipCalculationBasedOnAVGPrice = true
  • EnableTrailingStopLoss = true
  • EnableTrailingStopLossShort = true
  • AutoCloseWhenDrawDown = true
  • ActivateAutoCloseWithProfit = 1.5
  • HowMuchProfitDropToClose = 0.5
  • openLimitOrders = false
  • ActivateAutoCloseWithLoss = true
  • openStopOrders = false
Optional defaults: IndicatorTimeFrame = H4, periodToCheckTrend = H4, weeks_to_calculate = 8, closeWhenOppositeTrend = false.

Inputs Reference (Full)

All variables are shown exactly as in the EA. Each includes a purpose, value range, and a beginner-friendly example.

Session & Timing

VariablePurposeValues / RangeBeginner Example
enableMarketSessionTradingTrade only during a defined daily window.true/falsetrue
startTradingSessionSession start (broker server time).HH:MM08:00
endTradingSessionSession end (broker server time).HH:MM21:00
periodToCheckTrendTime bucket for EA health/trend checks.ENUM_TIMEFRAMESH4
IndicatorTimeFrameTimeframe from which indicators are read.ENUM_TIMEFRAMESH4
weeks_to_calculateWeeks used to compute averages (volatility, extremes).Integer8

Position Controls

VariablePurposeValues / RangeBeginner Example
openLongPositionsAllow BUY entries.true/falsetrue
openShortPositionsAllow SELL entries.true/falsetrue
maxConcurrentLongPositionsMax concurrent BUY positions.Integer ≥ 11
maxConcurrentShortPositionsMax concurrent SELL positions.Integer ≥ 11
positionAveragingPermit averaging-in on controlled conditions.true/falsefalse
closeWhenOppositeTrendAuto-close if an opposite trend is confirmed.true/falsefalse
magic_numberUnique identifier for this EA’s orders/positions.Integer (unique)26458 (example)

Lot Size & Risk

VariablePurposeValues / RangeBeginner Example
autoLotsBasedOnAccountBalanceScale lot size with balance/equity and trend strength.true/falsetrue
MinLotSizeMinimum lot size the EA can place.Lot size0.01
MaxLotSizeMaximum lot size the EA can place.Lot size0.10
LotSizeMultiplierMultiplier applied in strong (ADX-confirmed) conditions.Decimal ≥ 11

Spread Filter

VariablePurposeValues / RangeBeginner Example
CheckSpreadBeforeTradeBlock entries if current spread exceeds threshold.true/falsetrue
MaxAllowedSpreadGapMaximum allowed spread (points).Numeric80

Stop‑Loss / Take‑Profit

VariablePurposeValues / RangeBeginner Example
SLPipsManual SL for BUY (pips). If 0 and auto is on, EA computes dynamically.Integer ≥ 0150
TPPipsManual TP for BUY (pips).Integer ≥ 0300
SLPipsShortManual SL for SELL (pips).Integer ≥ 0150
TPPipsShortManual TP for SELL (pips).Integer ≥ 0300
AutoPipCalculationBasedOnAVGPriceUse average daily movement to size SL/TP automatically.true/falsetrue

ATR‑based (CRT & Helpers)

VariablePurposeValues / RangeBeginner Example
AtrMultiplyForSLATR multiplier for Stop Loss on CRT entries.Integer ≥ 18
AtrMultiplyForTPATR multiplier for Take Profit on CRT entries.Integer ≥ 132

Trailing & Profit Protection

VariablePurposeValues / RangeBeginner Example
EnableTrailingStopLossEnable trailing management for BUY positions.true/falsetrue
EnableTrailingStopLossShortEnable trailing management for SELL positions.true/falsetrue
AutoCloseWhenDrawDownActivate profit‑drop exit logic once armed.true/falsetrue
ActivateAutoCloseWithProfitArm auto‑close only after this % profit is reached.Decimal (%)1.5
HowMuchProfitDropToCloseClose if current profit drops this % from the peak.Decimal (%)0.5
enable_alertsOn‑screen alerts for key events.true/falsetrue

Pending Orders

VariablePurposeValues / RangeBeginner Example
openLimitOrdersAllow placing Buy/Sell Limit pending orders.true/falsefalse
openStopOrdersAllow placing Buy/Sell Stop pending orders.true/falsefalse
openBuyLimitOrders, openSellLimitOrdersControl each limit type individually.true/falsefalse
openBuyStopOrders, openSellStopOrdersControl each stop type individually.true/falsefalse
maxConcurrentBuyLimitOrders, maxConcurrentSellLimitOrdersCaps for limit orders per side.Integer ≥ 01
maxConcurrentBuyStopOrders, maxConcurrentSellStopOrdersCaps for stop orders per side.Integer ≥ 01
Expiry12Hrs, Expiry24Hrs, Expiry48Hrs, Expiry72Hrs, Expiry120HrsStandard expiry presets (hours) used by the grid logic.Integers24 or 48

How the Strategy Works (High‑Level)

  • Core Trend Engine: SuperTrend baseline (MrGoldTrend) with price‑above/below checks, volatility gates (ATR), and momentum alignment (RSI/ADX/DI/MACD) across H4/D1 where needed.
  • Filter Suite: MA stacks (14/50/200/300), Bollinger bands, candle structure checks and weekly/daily context (W1/D1 state).
  • CRT (Candle Range Theory): Detects stop‑hunts beyond recent extremes on higher TF (H1), confirms on lower TF (M5), then enters with ATR‑based SL/TP.
  • Support/Resistance: Automatic levels, used for grid‑style pending orders and protective logic.
  • Execution Safeguards: Spread gate, session gate, position caps, magic_number isolation, capital check before trade.

Pending Orders Logic

When enabled, the EA stages a diversified set of BuyLimit/SellLimit/BuyStop/SellStop orders around computed support/resistance and ATR distances, with per‑type caps and timed expiries.

  • Entries are spaced using ATR and support/resistance projections.
  • Each order carries its own SL/TP (manual pips or auto from average movement).
  • Orders expire after Expiry* hours to avoid stale fills.
  • Existing orders are checked to avoid duplicates (CheckOrder) and obey per‑type caps (maxConcurrent*).

Risk Management & Protections

  • Lot sizing: autoLotsBasedOnAccountBalance with MinLotSize/MaxLotSize clamps and trend‑aware multipliers.
  • Spread filter: CheckSpreadBeforeTrade with MaxAllowedSpreadGap.
  • Session control: enableMarketSessionTrading, startTradingSession, endTradingSession.
  • SL/TP: Manual pips or AutoPipCalculationBasedOnAVGPrice; CRT uses AtrMultiplyForSL/TP.
  • Trailing: EnableTrailingStopLoss, EnableTrailingStopLossShort activate after favorable move.
  • Profit‑drop exit: AutoCloseWhenDrawDown arms at ActivateAutoCloseWithProfit and closes after drop of HowMuchProfitDropToClose.
  • Capital check: CheckMoneyForTrade ensures margin availability before any order.
Recommendation: start with 1 position per side, auto lots ON, and pending orders OFF for your first 2–4 weeks on demo.

Backtesting & Optimization

  1. Open MT5 Strategy Tester → Expert: MR GOLD TRADER PRO → Symbol: XAUUSD → Model: 1 minute OHLC or Every tick → TF: H4.
  2. Set a realistic spread (broker’s average). Enable visual mode to observe entries.
  3. Start with the Safe Mode inputs, then adjust one group at a time (risk → timing → pending).
  4. For optimization: keep targets realistic; avoid overfitting. Validate on out‑of‑sample dates.
Tip: If you plan to share presets publicly, always include dates, spread assumptions, and deposit/lot constraints.

Operating Tips

  • Prefer ECN brokers with tight XAUUSD spreads and 0.01 lot step.
  • Run on a VPS (< 50 ms latency) for stable session‑based execution.
  • Avoid major macro news; consider pausing around FOMC/NFP/CPI.
  • Never share magic_number between EAs on the same symbol.
  • One EA per chart. Keep your terminal and OS time synchronized.
  • Strategy testing completed using RoboForex.

Support & Notes

  • Distribution: Only via the official MQL5 Market. We do not send files directly.
  • Dependencies: Indicators bundled with the product (e.g., MrGoldTrend, MR‑Score) are installed through the Market package.
  • Contact: Use the MQL5 product page messaging for support and updates.
This documentation is designed for manual input (no .set files). If you later want a printable quick sheet or localized versions, we can add them.