A time-window range breakout for gold. One trade idea per day, a hard stop on every position.
- Net profit
- +59.3%
- Profit factor
- 1.26
- Max drawdown
- 8.1%
Simulated, Jan 2020 – Sep 2026
The same disciplined box breakout, rebuilt for Bitcoin's volatility and its seven-day week.
Historical simulation: BTCUSD H1, Jan 2020 to Sep 2026, 10,000 USD start. Not indicative of future results.
Overview
BTC Box Breakout records the high and low of a fixed morning window on BTCUSD, places stop orders either side of it, and trades the first breakout. It is a separate EA, not a re-skin: lot sizing follows your broker's volume step, the pyramiding trigger is percentage-based, and weekend trading is off by default.
How it works
Each day the EA records the high and low of a fixed server-time window (05:00 to 09:00 by default) and draws the box on the chart.
A Buy Stop goes at the box high and a Sell Stop at the box low. If price is already through an edge, it enters at market instead.
The first side to break is traded and, in single-trade mode, the opposite order is cancelled. No new trades open on Saturday or Sunday unless you switch weekends on.
At a fixed time (20:00 by default) all orders are deleted and all positions are closed.
Features and protections
Every position carries a percentage stop (1.0% by default). A take profit based on a multiple of the box is optional.
Lots follow your broker's own volume step (0.01, 0.001, 0.1 and so on) with a maximum-lot cap in every mode.
Bitcoin trades seven days a week; the EA opens no new trades on weekends unless you enable them.
Optional. Shares one record with Golden Box Breakout when both run on the same account, so the rule applies to the whole account.
Resumes the day after a terminal or VPS restart without duplicate orders.
Percentage-based pyramiding (up to 3 adds) and small randomisation of entry, stop, 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 | +39.5% |
| 2021 | +37.6% |
| 2022 | −12.2% |
| 2023 | −6.4% |
| 2024 | +8.3% |
| 2025 | +3.0% |
| 2026* | +22.9% |
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
The server-time window that forms the box, and the daily time at which everything is closed.
Risk mode, risk value, stop-loss %, maximum-lot cap, behaviour below the broker's minimum lot, optional take profit.
Trade both directions after the first fill; trade Saturday and Sunday.
Enable, best-day maximum %, basis, minimum daily cap, optional fixed cap, alert level, seed values.
Percentage trigger for each add, number of adds, size multiplier; entry delay, lot variance, stop buffer, close-time variance.
Set files and a PDF user guide are provided to buyers.
Questions
Same family of idea, separate code. BTC Box uses a percentage trigger for pyramiding, follows the broker's volume step, and keeps weekends off by default. The two share one consistency record if you run both on one account.
Yes. The MQL5 Market demo runs in the MetaTrader 5 Strategy Tester. Backtest it on your own broker's data first.
Breakout systems struggle when price chops sideways inside the day. The strategy does best when Bitcoin trends intraday and gives profit back in quiet, choppy years. We publish those years rather than hide them.
No. All figures are historical simulations and live results will differ.
Also in the collection
A time-window range breakout for gold. One trade idea per day, a hard stop on every position.
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.