MAGIC NUMBER GAME EA V1.0 MT4 — Precision M5 Gold Scalper for Disciplined Traders


If you’ve been hunting for a consistent, rule-based way to trade XAUUSD without staring at the charts all day, MAGIC NUMBER GAME EA V1.0 MT4 might be exactly what you need. Built specifically for XAUUSD (Gold) on the M5 timeframe with a recommended minimum deposit of $1,000, this Expert Advisor focuses on repeatable price behaviors around “number clusters”—the psychological levels gold revisits again and again during intraday swings. Instead of chasing every candle, it waits for high-probability setups, manages risk first, and works within clearly defined guardrails so you can trade with discipline.


Below, you’ll find a complete overview: how it works, features, suggested settings, installation steps, risk controls, and testing tips—plus a straightforward disclaimer to keep expectations realistic.


What Makes “MAGIC NUMBER GAME” Different?


Gold is fast. Especially on M5, where micro-trends and liquidity bursts can explode and fade within minutes. The idea behind the MAGIC NUMBER GAME strategy is simple yet powerful: price on XAUUSD tends to react around round numbers and tight “number bands” (think 00s, 25s, 50s, 75s). These areas often become magnets or turning points when combined with volatility and session timing.


The EA quantifies those levels and adds filters—like current volatility (ATR), session behavior (London/NY overlap), and spread guards—so trades only trigger when conditions align. It then executes and manages positions with pre-planned risk, using dynamic stops and take-profits that adapt to volatility. The end result is a systematic scalper that aims to capture small, repeatable edges while avoiding random noise.



Quick facts:



  • Instrument: XAUUSD (Gold)

  • Timeframe: M5

  • Platform: MetaTrader 4 (MT4)

  • Recommended Capital: $1,000+ (start small, scale with equity)

  • Style: Intraday scalping & fade/break reactions at psychological levels

  • Audience: Traders who value risk management, consistency, and a rules-first approach


Key Features



  • Number-Cluster Logic: Targets reactions around round-number bands where liquidity and behavioral bias concentrate.

  • Adaptive Volatility Filter: Uses ATR to size stops/targets relative to current market speed—no one-size-fits-all SL/TP.

  • Session Awareness: Prefers liquid windows (e.g., London open, NY session) to reduce slippage and random fills.

  • Spread & Slippage Guards: Avoids entries when trading conditions worsen (e.g., news spikes, thin liquidity).

  • Dynamic Risk Sizing: Risk by percent or fixed lots; the EA calculates position size to stay within your max loss per trade.

  • Hard Daily Loss Cap (Optional): Stop trading for the day after a preset drawdown—especially useful for prop-firm rules.

  • News Pause (Manual/External): Optional setting to pause around high-impact events; simple and practical.

  • Break-Even & Trail Options: Lock in gains as soon as price moves favorably; trail intelligently during momentum bursts.

  • Multiple Trade Modes: Conservative (fewer, higher-quality signals) vs. Standard (balanced) vs. Aggressive (more setups).

  • MagicNumber Management: Unique IDs for each chart to keep orders organized (vital if you run multiple charts/EAs).

  • Clean Logs & Alerts: Understand exactly why a trade was taken or skipped; transparency builds trust.


How It Trades (In Plain English)



  1. Watches Round Levels: The EA tracks price proximity to key number zones that Gold frequently magnets to or rejects from.

  2. Checks Conditions: ATR must be within your chosen band (not too low, not too wild). Spread must be acceptable. Session should be liquid.

  3. Confirms Bias: Depending on your mode, it may require a micro-structure confirmation (e.g., mini breakouts, small rejection wicks).

  4. Executes with Risk Defined: Orders are placed with dynamic SL/TP informed by volatility and the distance to the next number band.

  5. Manages the Trade: If price runs in your favor, it can move to break-even and trail; otherwise, it exits per plan—no “hope mode.”


This is a risk-first scalper. The aim isn’t to win every trade—it’s to compound small edges while keeping losers contained.


Recommended Settings (Starting Point)



These are starter ideas. Always forward-test on demo and adjust to your broker conditions.




  • Account Type: ECN/RAW with low spreads on XAUUSD

  • Timeframe: M5 (designed and optimized for it)

  • Risk Per Trade: 0.5%–1.0% of equity (new users: start at 0.25%–0.5%)

  • Trade Mode: Standard (balance between frequency and quality)

  • ATR Period: 14 (common baseline; adjust if markets get unusually quiet or hyper-volatile)

  • ATR-Based SL/TP: SL ≈ 1.5–2.5 × ATR; TP ≈ 1.0–2.0 × ATR (keep RR ≥ 1:1 in choppy phases, expand in trends)

  • Max Daily Loss: 2%–4% of equity; when hit, the EA stops trading for that day

  • Max Open Positions: 1–2 (Gold can move fast; less is often more)

  • News Pause: On major events (CPI, NFP, FOMC); pause 15–30 mins before/after

  • MagicNumber: Unique for each instance if running multiple charts


Installation & Setup (MT4)



  1. Download & Copy: Place the .ex4 file into MQL4/Experts inside your MT4 data folder.

  2. Restart MT4: Or right-click Navigator → Refresh to load the EA.

  3. Attach to Chart: Open XAUUSD, set M5 timeframe, drag the EA onto the chart.

  4. Allow Live Trading: Check “Allow live trading” in the Common tab.

  5. Configure Inputs: Choose your lot mode (fixed or risk %), set ATR, mode (Conservative/Standard/Aggressive), daily loss cap, and MagicNumber.

  6. Enable AutoTrading: Click the AutoTrading button (must be green).

  7. Test First: Run Strategy Tester for at least 12–24 months of data, then forward-test on a demo before going live.


Pro tip: Use a VPS close to your broker’s server to minimize latency—this can make a noticeable difference on M5 scalping.


Backtesting & Forward-Testing Notes


Backtests are great for sanity checks, but they’re still simulations. For XAUUSD on M5, use high-quality tick data (at least 99% modeling, variable spread if possible) and include realistic slippage. Start with a modest initial balance (e.g., $1,000–$3,000) and risk 0.5% per trade to see how the equity curve behaves in quiet periods vs. headline-heavy weeks.


When you move to forward testing, a small demo first is essential. Compare key stats: win rate, average win vs. loss, max consecutive losses, profit factor, and drawdown. The goal is consistency, not a one-off lucky month. Once your broker conditions are validated and you’re comfortable with the daily loss cap, you can consider switching to live—still small at first.



Risk Management (Read This Twice)



  • Respect the Daily Loss Cap: It’s your parachute. When hit, walk away. Overtrading kills great systems.

  • Keep Leverage Sensible: Even if your broker offers 1:500, your position sizing matters more than headline leverage.

  • Avoid News Landmines: Gold can gap and spike—no EA can “out-code” a flash move.

  • Don’t Stack EAs Blindly: Running multiple bots on Gold at the same time can create hidden correlation risk.

  • Journal Everything: Note spreads, slippage, session, and any manual pauses; refine settings with evidence.


Who Is This EA For?



  • Disciplined traders who appreciate a rule-based edge on a single pair (XAUUSD) and a single timeframe (M5).

  • Prop-firm hopefuls who need strict risk limits, daily stops, and consistent execution behavior.

  • Part-time traders who want structure without babysitting every candle.


If you want an EA that yolo-chases every move or promises triple-digit monthly returns… this isn’t it. MAGIC NUMBER GAME EA is built for measured, repeatable decisions.


Final Word & Disclaimer


MAGIC NUMBER GAME EA V1.0 MT4 offers a clear, tested framework for M5 trading on Gold, emphasizing number-cluster behavior, clean risk management, and session-aware entries. Whether you’re demo-testing for prop goals or trading a small live account, start conservative and let data guide your tweaks.


Join our Telegram for the latest updates and support


Happy Trading