XAUUSD H1 trend engine with a ratchet trail that locks profit at +16. Open to everyone.
https://mcpautomation.io.
Without this MetaTrader blocks the check and the EA will not start.InpLicenseKey in the EA's
Inputs tab. Your key appears on this page the moment you are approved.The key is tied to your account and 2 MT5 accounts. Sharing it switches it off.
Apex Gold Ratchet trades gold against the US dollar on MetaTrader 5, on the one-hour chart. It protects every trade with a fixed stop from the first second, and then does the unusual bit: the moment a trade is 16.00 in profit the stop jumps LEVEL WITH THE MARKET and ratchets forward in 0.05 steps. Winners are taken quickly. Nothing is ever left without a stop. No grid, no martingale, no averaging into losers.
Build 1.10b changed how it chooses trades. Two small models decide: one scores whether an hour is worth trading at all, the other picks the side. They read only dimensionless quantities - volatility ratios, position within a range, normalised momentum - across M15, M30, H1 and H4, and never look back more than seven days. The old momentum + ATR rule is still in there as InpEngine = 1 if you want it.
Build 1.12b is the current one. It changes no trading logic either - 1.12b, 1.11b and 1.10b all return the same 212 trades, 77.36% win, PF 1.67 and +$1,011.12 over the same real-tick window, and 1.12b's trade-by-trade deal export is byte-identical to 1.11b's. What it adds is presentation: the on-chart panel's right column is now measured against the rows in it instead of being drawn full height, which hands back 390 pixels of chart on a 1600x900 window and 570 on a 1920x1080 one; the footer carries the website and support address; and the EA has its own icon in the Navigator.
Build 1.11b added the on-chart dashboard. The panel only reads your account and trade history; it can never place or change an order, and InpShowPanel = false turns it off. The figure worth watching on it is risk per trade, worked out from your live balance and lot size rather than copied from a setting: if it reads 2.00%, a full stop-out costs you 2.00% of the account.
1.11b also corrects the results table below. Net profit was always right; the win rate and profit factor had been reconstructed from the tester journal instead of read from MT5's own statistics, and were overstated. Every figure quoted now comes from TesterStatistics or from the EA's deal export, and the two agree exactly.
How a trade happens:
- One decision per hour, at the open of each H1 bar, inside a 15:00 to 11:00 server-time
window. Midday (12:00, 13:00, 14:00) never trades.
- The model scores the bar. It trades when that score passes 0.70.
- Stop loss 40.00, take profit 25.00, both measured from the fill.
- THE RATCHET: at +16.00 the stop goes to entry +16.00 and then creeps in 0.05 steps.
- Maximum two positions. Everything is flat before the weekend.
What it did in testing - MT5 strategy tester, every tick based on REAL TICKS, XAUUSD on RoboForex-Pro, fixed 0.01 lot. The models were trained on 2023-01 to 2025-06 ONLY and tested on 2025-07 to 2026-10, which they had never seen:
engine trades win PF net v1 rule 406 73.15% 1.25 +$940 v2 model (this build) 167 77.25% 1.63 +$747
Half the trades, but +$4.47 per trade against +$2.32. At 2% risk over that same unseen window the model returned +43% with a 9.2% drawdown; at 4% risk, +99% with 17.8%.
One thing I want to be straight about. The model inside this build is retrained on the whole 2023-2026 period, because more data makes a better live model. That means any backtest of THIS build over THAT period is in-sample and would flatter it. So the numbers above come from an identical model that only ever saw the first half. I would rather show you the smaller honest number than the bigger dishonest one.
And the shape of the thing has not changed. A typical winner is about +16 and a full loser is -40, so one full stop-out cancels two and a half typical winners. Measured across the 212 trades of that window the realised averages are +15.38 per winner and -31.47 per loser, a ratio of 2.05, because the ratchet closes some losers before they reach the stop. With those averages it has to win 67% of its trades to break even; it won 77.36%. The entire margin is about ten percentage points of hit rate. It makes money by being right often, not by winning big. Losing runs are normal - the longest in that window was four.
During development the identical logic was run at 20% of balance per trade. The same $10,000 account, same signals, same data, same period, finished at $5.53. The 2% preset finished far ahead. Nothing changed but the size. Do not turn the risk up.
A back test is run with hindsight on data that already happened. Live is always worse. How much worse is what this beta is for.
YOU WILL NEED MT5 BUILD 3700 OR NEWER The model runs on MetaTrader's own ONNX runtime. If the EA refuses to start, set InpEngine = 1 to fall back to the v1 rule - and please tell me, because that is the single most useful report anyone can send me right now.
THE FULL MANUAL AND THE LICENCE Manual https://mcpautomation.io/assets/apexratchet/Apex_Gold_Ratchet_Beta_Manual.pdf Licence https://mcpautomation.io/assets/apexratchet/Apex_Gold_Ratchet_Beta_Licence.pdf
The licence is the Apex Gold Ratchet Beta Software Licence Agreement v1.0, which you accept by running the software. In short: free, personal, revocable, for testing only; do not share the file or your key; unfinished software with no warranty; each licence check sends your key, account number, broker, account type, currency, leverage, terminal build and a machine identifier; and if you run it on real money, any loss is yours.
A tester told exactly what to look for reports something useful. A tester told nothing reports whether it made money for two weeks, which tells neither of us anything.
Roughly in order of how much I need it:
1. DOES IT START AT ALL ON YOUR SETUP? This build runs a model on MetaTrader's ONNX
runtime and that is brand new in this EA. Tell me your MT5 build number and whether it loaded. If it refused, set InpEngine = 1 and tell me what the Experts tab said.
2. DOES THE TRADING WINDOW LAND WHERE IT SHOULD? The window is 15:00 to 11:00 SERVER time
and brokers sit on different GMT offsets. Tell me your broker, your server's offset, and roughly which hours you see trades arriving.
3. DOES THE FRIDAY CLOSE FIRE BEFORE THE WEEKEND? Default 23:25 server time. A position
still open on Saturday is a bug report I want immediately.
4. IS IT TRADING ROUGHLY 8-12 TIMES A MONTH? The model is pickier than the old rule, so
fewer trades is expected. A lot more or a lot fewer means it is behaving differently on your feed.
5. IS THE RATCHET WORKING? When a trade goes your way the stop should jump to about +16
and then creep. Trades running well past +16 and coming back to a loss means the trail is not firing - tell me immediately and include the Journal lines.
6. RUN BOTH ENGINES IF YOU CAN. InpEngine = 0 is the model, 1 is the old rule. If you have
two demo accounts, running one of each for a few weeks is the most valuable thing anyone could give me.
7. ANYTHING IN THE EXPERTS OR JOURNAL TAB THAT READS LIKE AN ERROR. Copy the line.
What I am NOT asking is whether it made money over two weeks. With a profit factor near 1.8 on a few trades a month, a losing fortnight is completely normal and is not a bug.
• MetaTrader 5. Anyone can join — you do not need to own anything of mine first.
• An XAUUSD chart on H1. The EA decides on the hourly bar, so the chart period matters.
• A HEDGING account. It can hold two positions at once.
• DEMO is strongly recommended. The build does NOT block a real-money account — it
prints a warning and raises an Alert, then runs. On a live account, any loss is yours.
• MetaTrader must be allowed to reach the licence server: Tools > Options > Expert
Advisors, tick "Allow WebRequest for listed URL" and add https://mcpautomation.io
• A terminal that stays on, so a VPS helps. A missed ratchet update is worse than a
missed entry.
• An account you are willing to let run for at least three weeks. It takes roughly 18-20
trades a month, so a few days tells us nothing.
Apex Gold Ratchet — 1.12b (6 November 2026)
WHAT CHANGED Nothing about how it trades. This is a presentation release: the panel gives you back a large piece of your chart, it carries the brand and my contact details, and the EA now has its own icon in the Navigator.
Same model, same 40.00 stop, 25.00 target, +16.00 ratchet in 0.05 steps, 15:00–11:00 window, Friday close, two-position cap and sizing as 1.11b and 1.10b.
As with 1.11b I checked that rather than asserting it. 1.12b was run over 2025-07-01..2026-10-19 on REAL TICKS, the same config as the 1.11b run, and the trade-by-trade deal export is identical to 1.11b's — same trades, same tickets, same prices, same running balance.
THE PANEL GIVES THE CHART BACK The right-hand column used to be drawn full height whatever it contained, so on a tall chart it covered a few hundred pixels of price for no reason. It is now measured against the rows that are actually in it.
1600 x 900 736 px of column -> 346 px 390 px of chart returned 1920 x 1080 916 px -> 346 px 570 px returned 760 x 500 unchanged (it was already tight)
The column is sized from its own content, not from a number I typed in, so this cannot drift as rows are added or removed later.
BRANDING ON THE PANEL The ratchet mark now sits in the header bar, and the footer carries:
MCP AUTOMATION - mcpautomation.io Tshivhidzo Mbedzi - support@mcpautomation.io
On a narrow chart the footer drops the slogan first and keeps the contact details — if only two lines fit, those two are the ones you get. The title position and the centre block are both derived from the logo box, so no chart size can put text on top of the mark.
The EA also carries its own icon now, so it is identifiable in the MT5 Navigator and in Windows, and the copyright line names me rather than being blank.
NO CHANGE TO Inputs. InpShowPanel and InpPanelRefresh behave exactly as in 1.11b, and turning the panel off still changes nothing about trading. No preset has been touched; the four .set files in this zip are byte-identical to the 1.11b ones.
THE NUMBERS, UNCHANGED FROM 1.11b Real ticks, XAUUSD, fixed 0.01 lot. The models were trained on 2023-01 to 2025-06 ONLY and tested on 2025-07 to 2026-10, which they had never seen:
engine trades win PF net v1 rule 406 73.15% 1.25 +$940 v2 model (this build) 167 77.25% 1.63 +$747
Half the trades, but +$4.47 per trade against +$2.32. At 2% risk over that same unseen window the model returned +43% with a 9.2% drawdown.
The model inside this build is retrained on the whole 2023–2026 period, because more data makes a better live model. Any backtest of THIS build over THAT period is therefore in-sample and would flatter it. The figures above come from an identical model that only ever saw the first half.
THE SHAPE OF IT, measured on the 212 trades of that window: average winner +15.38 median winner +16.00 average loser -31.47 median loser -40.05 ratio 2.05 - a FULL stop-out cancels two and a half typical winners, but the ratchet closes some losers early, so the realised average is 2.05 rather than 2.50 break-even hit rate with those averages: 67%. It won 77.36%. longest losing run in the window: 4.
The whole margin is in about ten percentage points of hit rate, which is why position size matters more than any entry setting, and why a losing fortnight is not evidence of anything.
A back test is run with hindsight on data that already happened. Live is always worse. How much worse is what this beta is for.
YOU NEED MetaTrader 5 build 3700 or newer (the model runs on MT5's ONNX runtime). If the EA refuses to start, set InpEngine = 1 to fall back to the v1 rule, and please tell me — that is still the single most useful report anyone can send me.
WHAT I MOST WANT TESTED
1. Does it start cleanly on your broker and terminal build?
2. Does the panel fit your chart — is the right column the right height,
and does the footer keep the website and email at your window size?
3. Does the risk-per-trade figure match what you expect for your settings?
4. Does the trading window land correctly on your server's clock?
5. Is it trading roughly 8–12 times a month?
6. Does the ratchet fire — stop jumping to about +16 then creeping?
KNOWN The panel redraws once a second. If that bothers your machine, raise InpPanelRefresh or set InpShowPanel = false; neither affects trading. Peak drawdown is measured from when you attached the chart, not from your account's history, so it reads 0.00% on a fresh attach. Below 760 x 500 pixels the panel hides itself entirely.
Apex Gold Ratchet — 1.11b (6 November 2026)
WHAT CHANGED An on-chart dashboard, and a correction to the published figures. The trading logic is UNCHANGED from 1.10b. Same model, same 40.00 stop, 25.00 target, +16.00 ratchet in 0.05 steps, 15:00–11:00 window, Friday close, two-position cap and sizing.
I checked that rather than claiming it: 1.11b and the 1.10b logic run over 2025-07..2026-10 on real ticks both return 212 trades, 77.36% win, PF 1.67, +$1,011.12, 2.28% equity drawdown. Identical to the cent and to the trade.
THE DASHBOARD A header bar, a right-hand column and a footer, with the chart still visible between them. Two new inputs:
InpShowPanel true show it at all InpPanelRefresh 1 redraw interval, seconds
It reads; it never trades. It cannot open, close or modify an order. Turn it off and the EA behaves exactly the same.
What it shows, all computed live from your own account and trade history:
- EA status, licence, account type (real/demo), connection, engine
- open and closed trades, win rate, closed and open P/L
- peak equity drawdown since the chart was attached
- RISK PER TRADE, worked out from your balance and lot size rather than
copied from a setting. If it says 2.00%, a full stop-out costs you 2.00%. This is the number worth watching before you raise your size.
- ratchet settings, balance, equity, free margin, spread, broker time
On a narrow chart it drops the least important items rather than drawing on top of itself. Below 760x500 pixels it hides entirely.
A CORRECTION YOU SHOULD KNOW ABOUT The results table in the 1.10b changelog and manual overstated two figures. Net profit was right; win rate and profit factor were not. Corrected:
v1 rule 406 trades 73.15% win PF 1.25 +$940 (was 76.5%, 1.34) v2 model 167 trades 77.25% win PF 1.63 +$747 (was 81.5%, 1.80)
Per-trade edge is +$4.47 against +$2.32. The error came from reconstructing results out of the tester journal instead of reading MT5's own statistics. Every figure quoted now comes from TesterStatistics or from the EA's deal export, and the two agree with each other exactly.
Nothing about the EA changed because of this. The numbers describe the same trades they always did — they are simply now reported correctly.
YOU NEED MetaTrader 5 build 3700 or newer (the model runs on MT5's ONNX runtime). If the EA refuses to start, set InpEngine = 1 to fall back to the v1 rule, and please tell me.
WHAT I MOST WANT TESTED
1. Does the panel draw correctly on your screen and chart size?
2. Does the risk-per-trade figure match what you expect for your settings?
3. Does it still start cleanly on your broker and terminal build?
4. Does the trading window land correctly on your server's clock?
5. Is it trading roughly 8–12 times a month?
6. Does the ratchet fire — stop jumping to about +16 then creeping?
KNOWN The panel redraws once a second. If that bothers your machine, raise InpPanelRefresh or set InpShowPanel = false; neither affects trading. Peak drawdown is measured from when you attached the chart, not from your account's history, so it reads 0.00% on a fresh attach.
Apex Gold Ratchet — 1.10b (6 November 2026)
WHAT CHANGED The entry is now a learned model instead of the momentum + ATR rule. Nothing else changed: same 40.00 stop, 25.00 target, +16.00 ratchet in 0.05 steps, 15:00–11:00 window, Friday close, two-position cap and sizing.
Two small models decide: one scores whether a bar is worth trading, the other picks the side. They read only dimensionless quantities — volatility ratios, position in range, normalised momentum — across M15/M30/H1/H4, never looking back more than seven days.
WHY On real ticks, trained on 2023-01..2025-06 and tested on 2025-07..2026-10 which the models never saw, fixed 0.01 lot:
v1 rule 406 trades 73.15% win PF 1.25 +$940 v2 model 167 trades 77.25% win PF 1.63 +$747
Half the trades, but +$4.47 per trade against +$2.32.
The model shipped in this build is retrained on the full 2023–2026 period because more data makes a better live model. That means a backtest of THIS build over THAT period is in-sample and would flatter it — the numbers above come from the honest out-of-sample test instead.
YOU NEED MetaTrader 5 build 3700 or newer (the model runs on MT5's ONNX runtime). If the EA refuses to start, set InpEngine = 1 to fall back to the v1 rule, and please tell me — that is the most useful report you can send right now.
WHAT I MOST WANT TESTED
1. Does it start on your broker and terminal build? (ONNX is the new risk.)
2. Does the trading window land correctly on your server's clock?
3. Does the Friday close fire before the weekend?
4. Is it trading roughly 8–12 times a month? (The model is pickier than v1.)
5. Does the ratchet fire — stop jumping to about +16 then creeping?
KNOWN The model is pickier than the rule, so expect noticeably fewer trades. That is intended, not a fault.
Apex Gold Ratchet — 1.00b (first beta build, 5 November 2026)
First build handed to testers. Nothing has changed yet because nothing has been reported yet.
What is in it:
• XAUUSD H1 engine. One decision per H1 bar, window 15:00–11:00 server time.
• Direction from 12-bar momentum, minimum move 30.00.
• Volatility gate: no new trades while ATR(14) is above 16.00.
• Stop 40.00, target 25.00, both measured from the fill.
• Ratchet trail: at +16.00 the stop moves to entry +16.00 and then advances
in 0.05 steps behind price.
• Maximum 2 positions. Everything closed Friday 23:25 server time.
• Risk sizing by percent-of-balance. Four presets included.
• Beta licence client — requires a key from /portal/beta.
Known limitations, stated up front:
• The Friday close time (23:25) is correct for RoboForex. Other brokers close
at a different moment and the setting may need adjusting. This is the first thing I want reported.
• The trading window is in SERVER time, so a broker on a different GMT offset
trades a different part of the day than the one this was tested on.
• Tested on one feed only (RoboForex-Pro, GMT+3). That is the point of the beta.
Translated automatically by Google. The English version is the official one.