RETAILBERG ORDERFLOW HYBRID EA v4.01: two engines inside a complete order-flow workspace for gold
RETAILBERG ORDERFLOW HYBRID EA is a fully automatic Expert Advisor for gold (XAUUSD) on MetaTrader 5. Two trading engines, H1 and M5, run side by side from one M5 chart, inside a complete order-flow workspace drawn on the chart itself.
Every signal is shown with its entry, stop, TP1 and TP2 zones and an order-flow score. Around it sit the tools to read the market yourself: power trades and absorption, volume and TPO profiles, studies, divergences, sessions, the CHART ANALYST, a MINI CHART, drawing tools, price alerts and news. Trade it fully automatic, confirm each trade in SEMI AUTO, or take signals by hand with the built-in trade manager.
Two engines, one account
The H1 engine follows the bigger moves that last hours or days: fewer trades, held longer, entered at market once a setup is confirmed. The M5 engine follows the intraday moves: more trades, usually closed within the day, entered with a limit at the signal’s price that expires rather than chase. Each has its own lots and its own on / off switch.
In the test, the H1 engine closed 228 trades (58.3% winners, profit factor 1.38) and the M5 engine 768 (70.3% winners, profit factor 2.97).
Read the years honestly: 2020 to 2023 were flat to slightly positive, and most of the profit came in the strong gold trend of 2025 and 2026. A period like 2020 to 2023 can come back at any time, and a losing period can be longer and deeper than any in the test.
Three systems, one choice
- Trending Markets lets winners run with the trend: fewer, larger wins and deeper drawdowns in quiet years.
- High for Flat Markets protects profit sooner: a much higher share of winning trades and smaller drawdowns.
- Auto Switch (recommended) decides signal by signal how each trade is managed, and leaves very quiet markets alone.
All three take the same signals. You choose one in the inputs and change it only while no trades are open.
How every trade is managed
- A stop sits at the broker from the moment the trade opens.
- Part of the trade is closed at TP1 and part at TP2; the runner follows a trailing stop that only moves in its favour.
- A trade also ends when the trend turns, or after a set time without progress.
- One trade per engine; size never above your lot input: no martingale, no grid, no averaging down.
- Free margin and the broker’s volume limit are checked before every order.
Three ways to trade it
- FULL AUTO: the engines enter and manage every trade.
- SEMI AUTO: each signal opens a confirmation window with the trade, its money at risk and a short analyst summary; you press ENTER or SKIP.
- MANUAL: pick a signal, size it by risk % or by lots, choose TP1 / TP2, breakeven and trailing, and the EA manages the trade for you.
AUTO and MANUAL never run at the same time, and nothing trades until you switch it on in the CORE MANAGER.
Daily loss limit for prop firms
Set a daily limit as a % of the day’s starting balance or as money. When it is reached the EA stops new trades, closes its own trades or closes every trade on the account, as you choose; it counts the whole account or this EA only, and the new day starts at the hour you set. It then shows STOPPED and alerts you.
Prop firm tip: low-risk lots, the limit at 80–90% of the firm’s rule, CLOSE ALL, whole account. The EA does not cap a firm’s overall or trailing drawdown, does not pause for news and can hold trades over the weekend.
What you need
- MetaTrader 5 for Windows, a hedging account, gold on an M5 chart, leverage 1:100 or more.
- $3,000 or more recommended, and a VPS or MetaTrader’s virtual hosting for 24-hour trading.
- No DLLs, no web requests, no third-party services.
- One copy per account and symbol; never beside the STANDALONE EA on the same account and symbol (they share magic numbers).
The full backtest reports
MT5 Strategy Tester, Every tick based on real ticks, Dukascopy, 6 January 2020 to 27 October 2026; XAUUSD, $10,000, 1:100, H1 0.05 / M5 0.10 lots, no commission.
| System | Profit factor | Win rate* | Net profit | Max equity DD |
|---|---|---|---|---|
| Trending Markets | 1.52 | 57.1% | +$16,894 | $2,431 (9.3%) |
| High for Flat Markets | 2.07 | 77.4% | +$17,192 | $1,777 (6.7%) |
| Auto Switch (recommended) | 2.04 | 74.2% | +$18,800 | $1,777 (6.3%) |
* As MT5 counts them: each partial close counts as a trade. Counted per whole trade, Auto Switch won 67.6% of its 996 trades.
RETAILBERG ORDERFLOW HYBRID EA on the MQL5 Market
Download the free demo and run it on real ticks in the Strategy Tester. The 186-page user manual and the 15 account-size presets are attached to this post.
Downloads: user manual and presets
Attached at the bottom of this post:
- RETAILBERG ORDERFLOW HYBRID EA - User Manual.zip: the full 186-page illustrated user manual (PDF).
- RETAILBERG ORDERFLOW HYBRID EA - account size presets.zip: the 15 account-size presets, from $500 to $100,000, aggressive and low risk, with a README. Copy the .set files into MQL5\Presets, then load one on the Inputs tab.
Risk disclaimer
Trading gold, forex and CFDs on margin carries a high risk and is not suitable for every investor; you can lose all the money in your account. RETAILBERG ORDERFLOW HYBRID EA is a software tool. Nothing in this post, the EA, its presets or its manual is investment, financial, tax or legal advice.
Past performance does not guarantee future results. All results shown are hypothetical Strategy Tester simulations on historical data, with no money at risk. A backtest cannot show your broker’s spread at news and at the opens, commission, swap, slippage, refused orders, delays or outages; settings chosen on past data look better on that data than later, and the largest drawdown is still to come. Test the EA in the Strategy Tester and on a demo account before trading real money.
© 2026 RETAILBERG & Abdul Jalil. All rights reserved.


