The same disciplined box breakout, rebuilt for Bitcoin's volatility and its seven-day week.
- Net profit
- +116.4%
- Profit factor
- 1.15
- Max drawdown
- 27.9%
Simulated, Jan 2020 – Sep 2026
A time-window range breakout for gold. One trade idea per day, a hard stop on every position.
Historical simulation: XAUUSD H1, Jan 2020 to Sep 2026, 10,000 USD start. Not indicative of future results.
Overview
Golden Box Breakout measures the high and low of a fixed early-session window on XAUUSD, places a Buy Stop above the box and a Sell Stop below it, and trades whichever side breaks first. Everything is closed at a fixed time each day, so nothing is held overnight.
How it works
Each day the EA records the highest and lowest price inside a fixed server-time window (03:05 to 06:05 by default) and draws the box on the chart.
When the window closes it places a Buy Stop at the box high and a Sell Stop at the box low. If price has already moved through an edge, it enters that side at market.
Whichever side breaks first is traded. In the default single-trade mode the opposite order is cancelled the moment one side fills.
At a fixed time (18:55 by default) every pending order is deleted and every open position is closed. Nothing is carried overnight.
Features and protections
Set as a percentage of the entry price (1.0% by default), so it adapts to the price level of gold automatically.
Risk a percentage of balance, a fixed money amount, or a fixed lot, with a maximum-lot cap that applies in every mode.
Optional. Tracks every day's result and stops trading for the day before the best day can exceed the percentage your firm allows.
Volume, free margin, broker stop level and pending-order limits are validated, so the server is never sent an order it would reject.
After a terminal or VPS restart it resumes the day where it stopped and never places duplicate orders.
Safe pyramiding (up to 3 adds) and small randomisation of entry time, stop distance, lot size and close time.
Backtest
Historical simulations from the MetaTrader 5 Strategy Tester. The test conditions are listed with each result so you can reproduce them.
| Year | Return |
|---|---|
| 2020 | +5.7% |
| 2021 | +14.4% |
| 2022 | +3.4% |
| 2023 | −4.4% |
| 2024 | +9.6% |
| 2025 | +9.0% |
| 2026* | +11.5% |
Trading foreign exchange, metals and cryptocurrencies on margin carries a high level of risk and may not be suitable for everyone. Backtested and hypothetical results are not a guarantee of future performance. Read the full risk disclosure.
Requirements
Inputs
Range start and end hour and minute: the server-time window that forms the box.
Daily time at which orders are deleted and positions are closed.
Risk mode (% of balance, fixed money, fixed lot), risk value, stop-loss %, maximum-lot cap, what to do when risk is below the broker's minimum lot, optional take profit as a multiple of the box.
Enable, best-day maximum % of total profit, net or profitable-days basis, minimum daily cap, optional fixed daily cap, alert level, seed values for accounts with history.
Enable, trigger distance, number of adds, add size multiplier; entry delay, lot variance, stop buffer, close-time variance.
Set files and a PDF user guide are provided to buyers.
Questions
Yes. Every product on the MQL5 Market has a free demo you can run in the MetaTrader 5 Strategy Tester. Run your own backtest on your broker's data first.
It includes an optional consistency-rule guard for firms that limit the best trading day as a share of total profit. You set the percentage your firm uses. Always check your firm's rules and test on a demo account first.
We recommend Fusion Markets, the broker this robot was tested on (see the recommended-broker box on this page). Any low-spread gold account can work. The default times assume a GMT+2/GMT+3 server, which is what Fusion Markets uses. For a GMT+0 server, shift the box and close times by the difference; a ready set file is available to buyers.
Set files and a PDF user guide are available to buyers through the product's Comments section and MQL5 private messages.
No. No strategy is. The figures shown are historical simulations and will differ from live results.
Also in the collection
The same disciplined box breakout, rebuilt for Bitcoin's volatility and its seven-day week.
Simulated, Jan 2020 – Sep 2026
A Bollinger-and-RSI mean-reversion grid that waits for stretched prices to snap back.
Simulated, Oct 2019 – Sep 2026
Intraday momentum for the Nasdaq 100: it waits for price to leave its normal noise, then follows the move and is flat by the close.
Simulated, Jan 2023 – Oct 2026
Free guide · 24 pages
A free, plain-language introduction to algorithmic trading: what a trading robot actually is, how it makes decisions, and the steps from nothing to your first Expert Advisor running on a demo account.
Start with the free demo in the MetaTrader 5 Strategy Tester, on your own broker’s data, before you commit.