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
- Open MetaTrader 5.
- Go to Navigator → Market.
- Search MR GOLD TRADER PRO.
- Click Install.
- Find it under Navigator → Expert Advisors → Market.
Option B — From MQL5.com
- Open the product page on the MQL5 Market.
- Log in with your MQL5 account.
- Click Install / Download.
- Open MT5 and log in to the same MQL5 account.
- 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
- Open an XAUUSD (Gold) H4 chart.
- Drag MR GOLD TRADER PRO from Navigator → Expert Advisors → Market onto the chart.
- Common tab → enable Allow Algo Trading.
- Inputs tab → enter values manually (see below).
- 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 = truestartTradingSession = 08:00endTradingSession = 21:00openLongPositions = trueopenShortPositions = truemaxConcurrentLongPositions = 1maxConcurrentShortPositions = 1positionAveraging = falseautoLotsBasedOnAccountBalance = trueMinLotSize = 0.01MaxLotSize = 0.10LotSizeMultiplier = 1
CheckSpreadBeforeTrade = trueMaxAllowedSpreadGap = 80AutoPipCalculationBasedOnAVGPrice = trueEnableTrailingStopLoss = trueEnableTrailingStopLossShort = trueAutoCloseWhenDrawDown = trueActivateAutoCloseWithProfit = 1.5HowMuchProfitDropToClose = 0.5openLimitOrders = falseActivateAutoCloseWithLoss = trueopenStopOrders = 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
| Variable | Purpose | Values / Range | Beginner Example |
|---|---|---|---|
enableMarketSessionTrading | Trade only during a defined daily window. | true/false | true |
startTradingSession | Session start (broker server time). | HH:MM | 08:00 |
endTradingSession | Session end (broker server time). | HH:MM | 21:00 |
periodToCheckTrend | Time bucket for EA health/trend checks. | ENUM_TIMEFRAMES | H4 |
IndicatorTimeFrame | Timeframe from which indicators are read. | ENUM_TIMEFRAMES | H4 |
weeks_to_calculate | Weeks used to compute averages (volatility, extremes). | Integer | 8 |
Position Controls
| Variable | Purpose | Values / Range | Beginner Example |
|---|---|---|---|
openLongPositions | Allow BUY entries. | true/false | true |
openShortPositions | Allow SELL entries. | true/false | true |
maxConcurrentLongPositions | Max concurrent BUY positions. | Integer ≥ 1 | 1 |
maxConcurrentShortPositions | Max concurrent SELL positions. | Integer ≥ 1 | 1 |
positionAveraging | Permit averaging-in on controlled conditions. | true/false | false |
closeWhenOppositeTrend | Auto-close if an opposite trend is confirmed. | true/false | false |
magic_number | Unique identifier for this EA’s orders/positions. | Integer (unique) | 26458 (example) |
Lot Size & Risk
| Variable | Purpose | Values / Range | Beginner Example |
|---|---|---|---|
autoLotsBasedOnAccountBalance | Scale lot size with balance/equity and trend strength. | true/false | true |
MinLotSize | Minimum lot size the EA can place. | Lot size | 0.01 |
MaxLotSize | Maximum lot size the EA can place. | Lot size | 0.10 |
LotSizeMultiplier | Multiplier applied in strong (ADX-confirmed) conditions. | Decimal ≥ 1 | 1 |
Spread Filter
| Variable | Purpose | Values / Range | Beginner Example |
|---|---|---|---|
CheckSpreadBeforeTrade | Block entries if current spread exceeds threshold. | true/false | true |
MaxAllowedSpreadGap | Maximum allowed spread (points). | Numeric | 80 |
Stop‑Loss / Take‑Profit
| Variable | Purpose | Values / Range | Beginner Example |
|---|---|---|---|
SLPips | Manual SL for BUY (pips). If 0 and auto is on, EA computes dynamically. | Integer ≥ 0 | 150 |
TPPips | Manual TP for BUY (pips). | Integer ≥ 0 | 300 |
SLPipsShort | Manual SL for SELL (pips). | Integer ≥ 0 | 150 |
TPPipsShort | Manual TP for SELL (pips). | Integer ≥ 0 | 300 |
AutoPipCalculationBasedOnAVGPrice | Use average daily movement to size SL/TP automatically. | true/false | true |
ATR‑based (CRT & Helpers)
| Variable | Purpose | Values / Range | Beginner Example |
|---|---|---|---|
AtrMultiplyForSL | ATR multiplier for Stop Loss on CRT entries. | Integer ≥ 1 | 8 |
AtrMultiplyForTP | ATR multiplier for Take Profit on CRT entries. | Integer ≥ 1 | 32 |
Trailing & Profit Protection
| Variable | Purpose | Values / Range | Beginner Example |
|---|---|---|---|
EnableTrailingStopLoss | Enable trailing management for BUY positions. | true/false | true |
EnableTrailingStopLossShort | Enable trailing management for SELL positions. | true/false | true |
AutoCloseWhenDrawDown | Activate profit‑drop exit logic once armed. | true/false | true |
ActivateAutoCloseWithProfit | Arm auto‑close only after this % profit is reached. | Decimal (%) | 1.5 |
HowMuchProfitDropToClose | Close if current profit drops this % from the peak. | Decimal (%) | 0.5 |
enable_alerts | On‑screen alerts for key events. | true/false | true |
Pending Orders
| Variable | Purpose | Values / Range | Beginner Example |
|---|---|---|---|
openLimitOrders | Allow placing Buy/Sell Limit pending orders. | true/false | false |
openStopOrders | Allow placing Buy/Sell Stop pending orders. | true/false | false |
openBuyLimitOrders, openSellLimitOrders | Control each limit type individually. | true/false | false |
openBuyStopOrders, openSellStopOrders | Control each stop type individually. | true/false | false |
maxConcurrentBuyLimitOrders, maxConcurrentSellLimitOrders | Caps for limit orders per side. | Integer ≥ 0 | 1 |
maxConcurrentBuyStopOrders, maxConcurrentSellStopOrders | Caps for stop orders per side. | Integer ≥ 0 | 1 |
Expiry12Hrs, Expiry24Hrs, Expiry48Hrs, Expiry72Hrs, Expiry120Hrs | Standard expiry presets (hours) used by the grid logic. | Integers | 24 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:
autoLotsBasedOnAccountBalancewithMinLotSize/MaxLotSizeclamps and trend‑aware multipliers. - Spread filter:
CheckSpreadBeforeTradewithMaxAllowedSpreadGap. - Session control:
enableMarketSessionTrading,startTradingSession,endTradingSession. - SL/TP: Manual pips or
AutoPipCalculationBasedOnAVGPrice; CRT usesAtrMultiplyForSL/TP. - Trailing:
EnableTrailingStopLoss,EnableTrailingStopLossShortactivate after favorable move. - Profit‑drop exit:
AutoCloseWhenDrawDownarms atActivateAutoCloseWithProfitand closes after drop ofHowMuchProfitDropToClose. - Capital check:
CheckMoneyForTradeensures 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
- Open MT5 Strategy Tester → Expert: MR GOLD TRADER PRO → Symbol: XAUUSD → Model: 1 minute OHLC or Every tick → TF: H4.
- Set a realistic spread (broker’s average). Enable visual mode to observe entries.
- Start with the Safe Mode inputs, then adjust one group at a time (risk → timing → pending).
- 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_numberbetween 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.