Mizzen Gold Range
- Experts
- Version: 1.0
- Activations: 5
Mizzen Gold Range is an original Expert Advisor for gold (XAUUSD). It marks the quiet Asian-session range each day and trades the first breakout of that range during the London and New York hours. One trade per day, with a stop-loss and take-profit sent with every order.
No grid, no martingale, no averaging, no DLL, no web requests, no hidden behaviour.
How it trades
- Range: the high and low from 01:00 to 10:00 server time (the Asian session, before the London open on GMT+2/GMT+3 servers). If your broker uses a different server time zone, shift the hour inputs.
- Volatility filter: the day is skipped if the range is narrower than 0.15× or wider than 2.0× the daily ATR(14) of completed days.
- Entry: from 10:00 to 20:00 server time, the first move beyond the range by a buffer of 0.05× daily ATR opens one trade in that direction (market order). After one trade, or a deliberate skip, the EA waits for the next day.
- Stop: half the range width from entry. Target: 1.5× the range width from entry (about 3R). Both are on the order.
- Time exit: any open trade is closed at 23:00 server time. If the broker stops quoting early (some holiday and daylight-saving weeks), the trade is closed at the next session open, with its stop and target still in place.
Risk controls
- Position size: 1% of equity at the stop (or a fixed lot if you set one). If the broker's minimum lot is larger than that, the minimum lot is used only when its stop risk is at most 5% of equity; otherwise the trade is skipped and logged.
- Daily loss limit: 3% from the server-day start (no new entries that day).
- Equity guard: 25% below peak equity pauses new entries for 5 days.
- Spread filter: spread must be under 10% of the range width.
- Margin, volume, trade-mode, stops-level and freeze-level checks before every order and close. Works on hedging and netting accounts (one position at a time).
Tested results (honest)
All gold figures below are every tick based on real ticks, JustMarkets-Demo2 symbol XAUUSD.m, M5 chart, leverage 1:100, v1.00 defaults. Compiled with 0 errors and 0 warnings (MetaEditor build 6292). None of these runs produced trade errors or a stop-out.
USD 10,000, 15 November 2025 to 15 November 2026:
- Net profit: +5,400.21. Profit factor 1.56. Recovery factor 4.35. Sharpe ratio 5.37.
- Equity drawdown maximal: 1,242.84 (8.14%). Balance drawdown maximal: 1,040.52 (6.87%).
- 209 trades, 48% winners. Largest single loss: -146.40. A netting-account run gave the same result.
Tuning vs held-out. The rules and settings were chosen using only the first eight months (15 November 2025 to 15 July 2026). The last four months were held out. Split of the full-year run by deal close time:
- Tuning window: net +3,082.03, profit factor 1.59, 133 trades.
- Held-out four months: net +2,318.18, profit factor 1.53, 76 trades.
Prior year (never used for tuning), USD 10,000, 15 November 2024 to 15 November 2025: net +1,117.71, profit factor 1.10, equity drawdown 1,649.17 (15.57%), 225 trades. That year was much weaker than the test year. Expect uneven years, including losing ones.
USD 1,000, 15 November 2025 to 15 November 2026: net +1,268.68, profit factor 1.62, equity drawdown 276.02 (26.57%), 190 trades (held-out: +441.70, PF 1.56). At this size most trades use the 0.01 minimum lot, which often risks 2-5% per trade instead of 1%, so drawdowns are much deeper. 16 trades were skipped because the minimum lot would have risked more than 5%. A larger deposit is recommended.
Small-deposit netting checks (1-minute OHLC, same year, technical checks only): XAUUSD D1 chart, USD 1,000: net +699.05, 189 trades, equity drawdown 26.39%. EURUSD H1, USD 1,000: net -163.25, 242 trades — the EA is not designed for EURUSD and is not recommended there. At USD 100 on XAUUSD the minimum lot is always above the 5% cap, so the EA skips every trade and logs it.
Recommendations
- XAUUSD on any chart timeframe (M5 or M15 is convenient). The EA reads the range on M5 and the ATR on D1 internally.
- A broker with GMT+2/GMT+3 server time (New York close), or adjust the hour inputs to match.
- USD 3,000 or more, so that 1% risk sizing works without the minimum-lot fallback. Low-spread gold account; run it on a VPS.
Inputs (v1.00 defaults)
| RangeStartHour / RangeEndHour | 1 / 10 (server time) |
| LastEntryHour / FlatHour | 20 / 23 (server time) |
| SessionEndBufferMin | 15 (also close this many minutes before the broker's session end) |
| BufferATR | 0.05 (x daily ATR) |
| MinRangeATR / MaxRangeATR / ATRPeriod | 0.15 / 2.0 / 14 |
| EnableLong / EnableShort / TradeFriday | true / true / true |
| StopRangeFrac / TargetRangeFrac | 0.5 / 1.5 (x range width; target 0 = time exit only) |
| RiskPercent / FixedLot | 1.0 / 0 (0 = use RiskPercent) |
| MaxMinLotRiskPct | 5.0 |
| DailyLossPercent | 3.0 |
| EquityDDPercent / PauseDays | 25.0 / 5 |
| MaxSpreadRange / MaxSpreadPoints | 0.10 / 0 (off) |
| MaxFreeMarginUsePercent / MinMarginLevel | 30 / 300 |
| SlippagePoints / MagicNumber / ShowPanel | 30 / 26111502 / true |
Risk warning
Trading leveraged gold CFDs carries a high risk of loss. Breakout systems lose on most days when price breaks out and reverses; this EA won only about 43-48% of its trades in testing and relies on larger winners. These figures are historical simulations on one broker's data. The prior year was much weaker than the test year. Live spreads, slippage, swaps, server time zones and news will differ. There is no live signal for this EA yet. Past results do not guarantee future results. Never risk money you cannot afford to lose, and test it on a demo account first.
