Gold Breakout Prop MT5
- Uzmanlar
- Sürüm: 1.20
- Etkinleştirmeler: 5
A gold breakout EA built to keep a prop-firm account alive first.
Most gold EAs show you a profit curve. This one shows you the drawdown, the out-of-sample test, the costs it was tested with, and the limits it will not cross.
Strategy (open, no black box)
- XAUUSD, H4 signal timeframe (attach to any chart timeframe).
- Entry: the bar closes above the 20-bar high or below the 20-bar low (Donchian), in the direction of the 200 EMA.
- Stop: 2.5 x ATR(14) on every trade, placed with the order. If the stop can't be placed, the trade is closed at once.
- Exit: 4 x ATR trailing stop, with an optional start (in R) and minimum step; optional take profit in R; optional break-even at x R plus points.
- One trade at a time. No martingale, no grid, no averaging, no hedging, no hidden behaviour. Every rule is an input.
Prop-firm protection
- Daily loss lock measured from the day's base (the higher of balance and equity at your firm's reset hour).
- Max drawdown, static (from the start balance) or trailing (from the equity high).
- Safety buffer: locks before each limit, so slippage and gaps have room.
- Breach-aware sizing: every entry is trimmed or refused so its stop can't take you past a limit. A trade carried past the day reset has its stop tightened to fit the new day's room, or it is closed.
- Profit target stop: stops trading (and can close the trade) once the target is reached.
- Friday close for firms that ban weekend holding. It also runs on the day before Good Friday, 25 Dec, 1 Jan and any closed days you list.
- Firm-style presets: 2-step phase 1 (5/10/10), phase 2 (5/10/5), funded (5/10), strict trailing (4/8), instant funding (3/6), or your own numbers. The numbers are shown in the input, so you can check them against your firm's rules.
Risk and execution
- Three lot modes: risk % of balance, fixed lot, or 0.01 lot per X of balance. Whatever the mode, the code never risks more than 2% of balance on one trade.
- News filter: high-impact events from the MT5 economic calendar on a live chart, plus your own event list. The list also works in the Strategy Tester, so you can back-test the filter. No new entries inside the window you set. It can close the open trade before the event. It can also cut the lot to any % you choose around news.
- Maximum slippage input. After a slipped fill, the stop and target move with the real fill price, so the risk stays as planned.
- Virtual stop: if your broker refuses a stop move (stops or freeze level), the EA keeps the wanted stop itself and closes at market when price reaches it. A restart keeps it.
- Broker check (OrderCheck) before every order, plus volume, margin and stop-level checks.
- Works on 2- and 3-digit gold quotes and on symbol names with suffixes.
Panel
- State, the room left to each limit, today's P/L, open trade P/L, margin level, ping, last/average/worst slippage, next news event. A compact mode is included. Pop-up and push alerts when a lock fires.
- Restart-safe: the start balance, the day's base, the high-water mark, lock state, virtual stops and slippage stats all survive a terminal restart.
- Works on hedging and netting accounts.
Test results (Strategy Tester, MetaQuotes-Demo data, $100,000, 0.5% risk, $17 per lot round turn deducted for commission and slippage)
| Window | Data | Trades | Profit factor | Net return | Max equity drawdown |
|---|---|---|---|---|---|
| In-sample 2022-01 to 2025-06 | real ticks | 104 | 1.28 | 7.67% | 6.11% |
| Out-of-sample 2025-07 to 2026-11 | real ticks | 37 | 2.09 | 9.4% | 3.24% |
| Out-of-sample, default 2-step phase-1 preset | real ticks | 21 | 3.14 | 9.97% | 3.01% |
Limits off in the first two rows (strategy only, 0.5% risk). Profit factor and return are after the $17/lot cost.
Parameters were set on the 2022-2025 window before the out-of-sample window was run. They were not tuned afterwards. The v1.20 additions are all off by default, so the default results above are the same strategy as before.
Be clear about what this is
- These are back-test results only. There is no live trading record. Past test results do not predict future results.
- H4 gold gives about 25-35 trades a year. A phase-1 target can take months. If you want trades every day, this is not your EA.
- Gold stops are wide. At 0.5% risk you need about $25,000 or more. Below that, the EA refuses entries rather than over-risk.
- The news filter checks entries at the H4 bar open. Set the window wide enough to cover the bar you want to skip.
- Check your own firm's rules (day reset hour, trailing method, news and weekend rules) and set the inputs to match. No EA can promise you'll pass a challenge.
What you get
- The EA, with every rule as an input.
- .set presets for each firm style, plus news-guard, break-even, trail-from-1R and fixed-lot presets. You don't need to send a message to get them.
- A settings guide covering every input, plus troubleshooting.
Screenshots are real: taken on a live demo chart, not mock-ups.
