Gold Rebound EA
- Experts
-
Ubaldo Barranco Jimenez
I’m a trader and developer focused on building practical tools for MetaTrader 5.
I create Expert Advisors, indicators, trading systems, and custom tools designed to make trading more systematic, efficient, and easier to manage. - Version: 1.0
Gold Rebound EA is an Expert Advisor for gold (XAUUSD) on the M15 chart. It rides the pullbacks of the trend, buying and selling, and shows everything it does on a clear control panel.
It trades about three times a day inside two sessions, one position at a time, and every trade carries a stop and a target from the moment it is sent.
You choose one of six risk levels. Each level has its own minimum capital, so the size of the trades always matches the money behind them.
Built to protect your account. A daily limit, a drawdown brake, a hard stop and a margin guard work by themselves and report their state on the panel.
We build and share our bots to hear from the people who use them. If Gold Rebound EA works for you, please rate it and leave a short review. Your rating and your comments, including anything that could be improved, help us make the next version better.
Main Advantages
- Rebounds with the trend - it looks for pullbacks inside a trend and trades them in both directions.
- Activity you can follow - about three trades a day, in a morning and an afternoon session that you can switch on or off.
- Six risk levels - Min, Low, Medium, High, Xtreme and Auto, each with its own minimum capital.
- Clear control panel - status, risk level, equity, drawdown, result of the day and open position in one card, in dark or light.
- Loss control built in - daily limit, drawdown brake, hard stop and margin guard, all automatic.
- It waits when equity is too low - instead of trading a bigger risk than the level asks, it shows EQUITY TOO LOW and the amount it needs.
- Careful execution - before every order it checks that the market is open, the spread is reasonable, your margin is enough and the stop distances are accepted.
- Safe after a restart - switches and protections are remembered, and deposits or withdrawals are never counted as profit or loss.
- No martingale, no grid, no averaging down - one position at a time, always with its stop.
Test results
Strategy Tester, XAUUSD, M15, 1 minute OHLC model, broker spread included. Window: 2024.04.22 to 2026.11.06, 1,481 trades. Each level was run from its own minimum capital.
- Min, 0.01 lot, from 1,850 USD: +3,951 USD, profit factor 1.28, drawdown 8.2 %
- Low, 0.02 lot, from 3,700 USD: +7,930 USD, profit factor 1.28, drawdown 8.2 %
- Medium, 0.03 lot, from 5,550 USD: +11,881 USD, profit factor 1.28, drawdown 8.2 %
- High, 0.04 lot, from 7,400 USD: +15,864 USD, profit factor 1.28, drawdown 8.2 %
- Xtreme, 0.05 lot, from 9,250 USD: +19,815 USD, profit factor 1.28, drawdown 8.2 %
On the same 9,250 USD account the levels scale from +3,951 USD (Min, drawdown 3.0 %) to +19,815 USD (Xtreme, drawdown 8.2 %). Auto reached +32,151 USD with a 13.9 % drawdown.
These are Strategy Tester results for the window shown. Past results do not guarantee future results.
Risk levels
- Min - 0.01 lot, from 1,850 USD. The default and the gentlest start.
- Low - 0.02 lot, from 3,700 USD.
- Medium - 0.03 lot, from 5,550 USD.
- High - 0.04 lot, from 7,400 USD.
- Xtreme - 0.05 lot, from 9,250 USD.
- Auto - starts at 0.01 lot and adds 0.01 for every 1,850 USD of equity, up to 0.10 lot.
Built-in protection
- Equity check - under 80 % of the capital the level needs, the bot waits and the panel shows EQUITY TOO LOW.
- Daily limit - if equity falls 6 % below the start of the day, no new trades until the next day. Open trades keep their stop and target.
- Drawdown brake - if equity falls 30 % below its peak, new trades pause until it is back under 20 % or seven days pass.
- Hard stop - if equity falls 45 % below its peak, it closes its trades and stops until you switch Trading on.
- Margin guard - no new trades while the margin level of the account is under 150 %.
The panel shows DAILY LIMIT, DRAWDOWN BRAKE, HARD STOP or MARGIN LOW while a protection is active.
Control panel
- A status line: RUNNING, PAUSED, NO SESSION, OUT OF SESSION or the protection that is active.
- Risk level and lot, equity check, drawdown, result of the day and the open position.
- Three switches: Trading, Morning and Afternoon. They are remembered after a restart.
- It follows the colors of your chart, dark or light, and sits on the right without covering the last candles.
- One short note in plain words when the bot is waiting or something needs your attention.
Recommended setup
- XAUUSD (gold) on an M15 chart. Some brokers name it GOLD.
- Hedging account recommended. Netting accounts work too, with one position at a time.
- Pick the highest level whose minimum capital is below your equity. Try it on a demo account first.
- Only three settings: Risk level, Enable trading and Magic number. Keep the terminal running, a VPS is ideal.
Questions and answers
Do I have to set any strategy values? No. The only settings are Risk level, Enable trading and Magic number.
Which chart does it need? Gold on an M15 chart.
How often does it trade? About three trades a day in its two sessions, one at a time.
What if my account is smaller than the level needs? It waits and shows EQUITY TOO LOW with the amount needed. Choose a smaller level or add capital.
Can I turn a session off? Yes. Morning and Afternoon are switches on the panel, and an open trade still closes on its own.
Does it work on a netting account? Yes. Hedging is recommended, and results can differ between brokers.
Risk warning
Trading leveraged products such as gold carries a high level of risk and can result in the loss of your capital.
Backtest results do not guarantee future results. Test the bot on a demo account first, and trade only with capital you can afford to lose.
Gold Rebound EA does not provide investment advice.
If you see something to improve or run into a problem, send me a private message on MQL5.
