Gold Breakout Sentinel

Free MetaTrader 5 Expert Advisor · XAUUSD H1

Gold Breakout Sentinel

Each day it waits at yesterday's high and yesterday's low with a stop order, and enters gold only when a stochastic turn and a Bollinger Band filter agree. Every trade has a fixed stop loss and take profit of 1.9% of the entry price, and an on-chart panel shows the real risk of the next trade for your balance.

  • XAUUSD · H1built and tested for gold only
  • 1.9% / 1.9%fixed stop loss and take profit
  • No gridno martingale, no averaging
  • FreePro edition for sizing and protection

How it trades

Once per H1 bar the EA reads a stochastic calculated on closing prices. When its signal line peaks on the previous bar and the Bollinger Band filter agrees, it places a buy stop at yesterday's high; when the line troughs, a sell stop at yesterday's low. The order is only placed while price has not yet passed that level, and it is deleted after 9 bars if it does not fill. New orders are placed only while the EA has no open position on the symbol.

Before every order it checks the margin, the broker's stop and freeze levels, and that the account would survive the stop loss without reaching the broker's stop-out level. If not, it skips the order and the panel says why.

A real buy from February 2025 on XAUUSD H1: the buy stop at yesterday's high fills and the trade closes at the take profit 1.9% higher
A real buy from the RoboForex history: the stop order waits at yesterday's high, fills, and closes at the target.

Free and Pro

Two separate editions on the MQL5 Market. Both trade the same strategy with the same defaults, so the Pro edition's results at its default settings are the same as the Free edition's; Pro adds sizing, protection and convenience.

Gold Breakout Sentinel (Free)Gold Breakout Sentinel Pro
Lot size0.01 (or the broker's minimum)Fixed lot, or a risk level: Safe 1%, Medium 2%, High 3%, Very high 5%, or custom; from balance or equity
Account protection—Daily loss limit, daily profit target, max-drawdown stop, max trades a day
Orders—Cancel the other stop order when one fills
Trade management—Break-even, trailing stop, partial close (off by default)
Filters—High-impact USD news pause, trading days and hours, Friday cut-off, spread guard
Alerts—Push and e-mail: order placed, trade opened and closed, protection stops
PanelStatus, levels, signals, resultsPlus buttons (cancel, close, pause, export CSV) and monthly statistics
Strategy, stop and default settingsThe same in both editions. Trades XAUUSD only on live and demo charts; the Strategy Tester accepts any symbol.
PriceFreePaid, on the MQL5 Market

No set file needed. The default inputs are the optimised settings, the same ones used for every backtest on this page: attach the EA to an XAUUSD chart and keep them.

Risk and recommended balance

At a gold price near 4,200, the 1.9% stop on 0.01 lot loses about 80 USD. So the balance decides how much even the smallest trade risks. The panel's Risk row shows the real figure for your balance before every trade.

BalanceRisk of 0.01 lot at the stopLevel
8,000 USD or more (recommended)about 1% or lessSafe
4,000 USDabout 2%Medium
2,700 USDabout 3%High
1,600 USDabout 5%Very high
Less than 1,600 USDmore than 5%Extreme
About 200 USDTechnical minimum: below it the EA places no orders, because twice the loss at the stop (a price gap) would reach the broker's stop-out level.

These figures scale with the gold price. Where the broker's minimum lot is 0.10, multiply them by ten.

Worst drawdown by risk level: Safe 5% on the 2021-2026 RoboForex history and 19% over 2009-2026; Medium 13% and 39%; High 19% and 56%; Very high 32% and 79%
Worst drawdown at each Pro risk level, on the RoboForex years and on the longer 2009–2026 gold history.

Backtest

A Python reproduction of the EA's rules on RoboForex-Pro XAUUSD history, January 2021 to October 2026, default inputs, with spread, commission and swap. With 0.01 lot: 234 trades, net profit 2,240 USD, profit factor 1.44, win rate 58%, worst drawdown 268 USD, longest losing streak 4 trades, about 3.4 trades a month.

Closed-trade profit of 0.01 lot from 2021 to 2026, ending at plus 2,240 USD, with the drawdown below
FREE, fixed 0.01 lot.
PRO balance from 10,000 USD at each risk level: Safe 12,647, Medium 17,440, High 22,558, Very high 36,565
Pro risk levels from 10,000 USD.
Net profit of 0.01 lot per year: 2021 minus 34, 2022 plus 222, 2023 minus 119, 2024 plus 299, 2025 plus 766, 2026 plus 1,104
Results by year, 0.01 lot.
Histogram of 234 trade results: 136 wins averaging plus 54 USD and 98 losses averaging minus 52 USD
Every trade's result, 0.01 lot.

Please read before trading it. 2021 to 2026 was the best period for these settings. Over 2009 to 2020 the same settings lost money (profit factor 0.94). On 36 other RoboForex symbols from 2023 to 2026 the rules were not profitable, so the EA is for XAUUSD only. Test it on a demo account first. Past results do not guarantee future results.

Questions

Can I use it on other symbols or timeframes?

It trades XAUUSD only on live and demo charts (broker names with a prefix or suffix, such as XAUUSDm, are fine); on any other chart it stays idle and says so on the panel. The backtests on other symbols were not profitable. The Strategy Tester accepts any symbol, so you can check that yourself.

Why did it not trade today?

Most days have no signal, or price has already passed yesterday's level. The panel shows the last signal and why it was or was not traded.

Does it need a VPS?

It keeps its orders on the broker's server, but the terminal must be running for new orders to be placed and expired ones to be cancelled. A VPS keeps it running when your computer is off; one option is FXVM (affiliate link: I earn a commission if you sign up, at no extra cost to you).

Does it work with 2-digit and 3-digit gold quotes?

Yes. Prices come from the symbol itself, so both work without settings.

Do I need a set file?

No. The default inputs are the optimised settings, the same ones used for every backtest on this page.

How do I report a problem?

In the EA's inputs, SUPPORT group, set "Debug log for bug reports" to true and let it run until the problem happens again (or repeat it in the Strategy Tester). Then send the lines that start with DBG from the Experts tab, your inputs saved as a .set file and a screenshot of the panel by private message on MQL5 or in the product's comments. The log never contains your account number or password. Set it back to false afterwards.

Custom EAs and trading API integrations

I build trading software to order, from a strategy idea to something that runs on its own.

  • MetaTrader 4 and 5Expert Advisors, indicators, risk panels and utilities, with the same checks as this EA.
  • Trading APIsStrategies, order routing, alerts and dashboards on Alpaca, OANDA, Interactive Brokers and other brokers' APIs.
  • Backtests firstA Python backtest of the rules before anything trades, like the one behind this page.

Message me on LinkedIn with what you have in mind. It is the quickest way to reach me, and I reply there.