Gold Trend Sentinel PRO MT4
- Эксперты
-
Allan Aparece Ninal
Я разрабатываю индикаторы и советники (Expert Advisors) для MetaTrader 5.
Как я работаю:
- Каждый индикатор проверяется на перерисовку: сигналы определяются только на закрытых барах, а тест на каждом тике подтверждает, что они потом не меняются. - Версия: 1.20
- Активации: 5
Gold Trend Sentinel Pro MT4 is an XAUUSD Expert Advisor for MetaTrader 4 that sizes each trade from a risk level. It stops itself on daily loss or drawdown. It can pause around high-impact USD news.
This EA promises no profit. The protection limits exposure; it does not remove the risk of loss. Every result below is a backtest, not live trading.
Built for gold. Gold is what this EA was designed and tested on, and the tests cover only that setting. The tested setting is XAUUSD with the default inputs. It will also trade other symbols, but those were not tested.
MetaTrader 4 edition: the same rule, panel and inputs as the MetaTrader 5 version. The rule passed the same criteria again in the MetaTrader 4 Strategy Tester; the numbers are below.
Quick start
- Open an XAUUSD chart (a prefixed or suffixed name is fine) and attach the EA from the Navigator. Keep AutoTrading enabled.
- Choose the lot size: Risk level (default, Safe, 1% of balance) or Fixed lot (0.01). The Risk row on the panel shows the result.
- Check the protection: the daily loss limit (3%) and the maximum drawdown (20%) are on by default. Push alerts are on too and need your MetaQuotes ID in the terminal.
- Leave the news filter off to run the rule as tested, or turn it on to pause around high-impact USD releases.
Standalone: everything is built in. You do not need to buy or install any other product named on this page.
What you see on the chart
- Status panel: Lot, Risk, Protect and Filters rows, the open trade, monthly results, largest drawdown, next high-impact USD release.
- Buttons: Close (with confirmation), Pause or Resume, Export closed trades to CSV.
Entry rule in brief
On each new H4 bar the EA reads the last closed bar. A buy needs a close above the UT Bot line, a daily close above its 200-day EMA and an upward Supertrend. A sell is the reverse. The stop starts at 3 x ATR and trails. There is no take profit. One position at a time. It is the same entry rule as in the free Gold Trend Sentinel MT4.
What Pro adds
- Lot sizing by risk level: Safe 1%, Medium 2%, High 3%, Very high 5% or a custom percent. The percent is of balance (or equity) lost if the stop is hit, never below the broker's minimum. Fixed-lot mode exists.
- Daily loss limit (3%), daily profit target (off), maximum drawdown from peak equity (20%) with optional closing of the open trade. A cap on new trades per day.
- Optional break-even and partial close (off), time filter, optional spread guard (off by default), and push and e-mail alerts.
Protection and filters block new entries only, never exits.
News filter
Off by default, so the entry rule runs as tested. When on, it blocks new trades for a set time around high-impact USD releases (NFP, CPI, FOMC and similar). An option closes an open trade before the release. MetaTrader 4 has no economic calendar, so the EA uses a built-in list of 556 events from 2020 to December 2026, live and in the Strategy Tester. After that the panel says the list has ended and the filter finds no release.
Backtest, not live trading: Python, XAUUSD broker history, 2020 to October 2026, fixed 0.01 lot, default inputs. Trading through news: 85 trades, +1,348 USD, worst drawdown 635 USD. Pausing 30 minutes either side changed nothing. Also closing open trades 30 minutes before each release gave 97 trades, +1,187 USD, worst drawdown 186 USD. It did not beat trading through news in both halves of the period, hence off by default.
Who it is for / not for
For traders who want to choose a risk level, have loss and drawdown limits applied automatically and test news handling on history. Not for frequent trades, a per-trade profit target or other symbols. For a fixed 0.01 lot, the free edition is enough.
Inputs
| Input | Default |
|---|---|
| Lot size mode; fixed lot; risk level; custom percent; risk based on | risk level; 0.01; Safe; 1.0; Balance |
| Daily loss limit, percent; maximum drawdown, percent; maximum new trades a day | 3; 20; 0 – block new trades (0 = off) |
| Close at maximum drawdown; resume after the stop | false; false |
| Break-even at; partial close at (x entry stop); partial percent | 0; 0; 50 |
| Alerts: push, e-mail, trade, protection stop | true; false; true; true |
| News filter; minutes before and after; close before | false; 30 and 30; -1 (off) |
| Trading days; hours; Friday cut-off hour; maximum spread, percent of price | all true; 0 to 24; 0 (off); 0 (off). Server time. |
| Allow live trading on symbols other than XAUUSD | true |
| Rule inputs as in the free edition, plus magic number, broker clock and debug log | - |
| Dry run: alert each signal, open no trades | false – when on, no trade is opened; each signal is sent as an alert |
| Dry run: pop-up alert with sound | true – pop-up with sound; used only when dry run is on |
| Dry run: push to phone | true – needs your MetaQuotes ID; used only when dry run is on |
| Debug log for bug reports | false |
Push needs your MetaQuotes ID (Tools, Options, Notifications); e-mail needs the Email tab. No set file; keep the defaults.
Use and limits
- It trades on any symbol by default. XAUUSD charts, including prefixed or suffixed names, are what it was tested on. Turn off "Allow live trading on symbols other than XAUUSD" to limit it to gold.
- The stop on gold is about 115 USD per 0.01 lot in 2026. At Safe, below roughly 12,000 USD even the minimum lot risks more than 1%, and the panel says so.
- Keep the terminal running, or use a VPS.
Automatic trading or signals only
By default the EA trades by itself: it opens each trade when its rule fires and manages the stop. If you prefer to decide each entry yourself, set "Dry run: alert each signal, open no trades" to true.
- With dry run on, the EA opens no trade and changes no stop. Each signal arrives as one alert. It gives the direction, symbol, timeframe, price, stop-loss, take-profit (where the rule has one) and the lot size the EA would have used.
- The alert is a pop-up with sound in the terminal and/or a push notification to your phone. Both are on when dry run is on. Switch either one off in the inputs. Each signal is also written to the Experts log.
- You review the signal on your side and decide whether to enter by hand.
- For push on your phone: install the MetaTrader mobile app, find your MetaQuotes ID in its settings, and enter it in the terminal under Tools > Options > Notifications.
- In dry run the EA does not manage trades, including trades you open by hand.
- Dry run is off by default. In the Strategy Tester it only writes to the log.
How it was checked
- Code checks: Python copies of the EA's indicator code and trade handling matched the research rule. This used H4 broker history, October 2021 to October 2026. Result: 112 of 112 signals, 85 of 85 trades.
- MetaTrader 4 Strategy Tester: entries July 2023 to September 2026, every tick from 1-minute broker prices. The tester takes one fixed spread per run. So the period ran in two parts: 170 points to September 2025 and 20 points after, the typical gold spread in each part. All 74 signals matched the Python model; 57 trades against its 58, the missing one opened on the last day of the test. Average +0.43 R per trade (t 2.53), profit factor 2.86 in R, positive in both halves. With the news pause on (30 minutes before, 15 after) the trades were the same. A backtest, not live trading.
- Backtest, not live trading: Python, XAUUSD broker history, October 2021 to October 2026, 10,000 USD start, spread, commission, slippage and swap included, 85 trades. Worst drawdown: fixed 0.01 lot 5.4%, Safe 4.7%, Medium 8.3%. Higher levels magnify losing streaks too.
- The rule was chosen on 2010-2023 research and judged once on 2024-2026, so this is not new out-of-sample evidence. Most profit came from buys in a rising gold market; sells lost slightly. A forward test started in October 2026 is not finished.
How to test in the Strategy Tester
- Open the Strategy Tester (Ctrl+R, or View > Strategy Tester).
- Choose Expert Advisor, then Gold Trend Sentinel Pro MT4.
- Set Symbol and Period to those of the preset you want to test.
- Set Model to "Every tick", the model my tests used. It needs 1-minute history for the period.
- Tick Use date and choose a range, for example 2023.07.01 to 2026.10.01.
- Set Spread. My test used 170 points to September 2025 and 20 points from October 2025 on XAUUSD, as two separate runs.
- Click Expert properties. On the Testing tab, use a deposit close to your own account. On the Inputs tab, make the changes below.
- Click Start.
| Preset | Inputs to change from the defaults |
|---|---|
| XAUUSD H4 | None |
The default inputs already are the XAUUSD H4 preset, so that one needs no changes.
You can try other settings the same way. The tester ignores any live-only option, and a test of other settings is not a validated preset. A backtest describes the past only.
Works well with
These are workflow suggestions. I have not found that any pair gives better trading results. You do not need any of them.
Do not combine this EA with Prop Rules Guard MT4. The EA does not read the Guard's lock. After the Guard closes its trades, the EA can enter again and be closed again until the daily reset. Rely on the EA's own daily loss and drawdown limits. If you use both anyway, set the EA's limit below the Guard's buffer.
| Product | How to use them together | Why |
|---|---|---|
| UT Bot Signal Alerts MT4 | Put it on the H4 chart with key value 1.5 and ATR period 10. | You see the UT Bot line the EA uses. The EA has it built in, so the indicator is optional. |
| SuperTrend Signal Alerts MT4 | Add it to the same H4 chart. | You see a SuperTrend line like the one in the EA's trend filter. The EA has it built in. |
| EA Health Monitor MT4 | Give the EA its own magic number in its inputs. Attach the monitor to one chart of the account. | It shows one row per magic number, so you can read this EA's trades on their own. |
| Prop Rules Monitor MT4 | Attach it to one chart of the account while the EA runs. | It shows your distance to a prop firm's limits. It only watches and never closes anything. |
| EA Health Monitor Pro MT4 | Same set-up as the free monitor. | It adds alarms for floating loss, a silent EA and AutoTrading off. |
Free and Pro: Gold Trend Sentinel MT4 and this EA share the default magic number 770100. Do not run both on the same symbol and timeframe.
Several gold Expert Advisors follow the same market. Running them together adds to one exposure; this is not a tested diversification.
Related products
- Gold Trend Sentinel PRO: the same Expert Advisor for MetaTrader 5.
- Gold Trend Sentinel MT4: the same entry rule with the lot fixed at 0.01 (or the broker's minimum).
- UT Bot Signal Alerts MT4: draws the same UT Bot line and arrows on your chart; this EA uses key value 1.5 and ATR period 10.
- SuperTrend Signal Alerts MT4: a SuperTrend line with alerts; this EA uses a Supertrend filter on H4.
- All my products on MQL5
FAQ
Repaint? No, closed bars only.
Why no trade this week? Three conditions must agree. The Filters row shows any news, time or spread block.
Live demo? No, the demo runs in the Strategy Tester only.
How do I report a problem? Turn on the debug log, repeat it, and send the DBG lines with your inputs and a screenshot.
Reporting a bug or error
- In the inputs, set "Debug log for bug reports" to true.
- Leave the EA running until the problem happens.
- Open the Experts tab in the Terminal window (Ctrl+T), right-click in the log and choose Copy (or open the log folder from the same menu).
- Send it as a comment on this product page or as a LinkedIn message, with the symbol, timeframe, EA version and what you expected to happen.
The debug log never contains your login, name, server, balance or equity. Set it back to false afterwards.
If it helps your trading, a short review on this page helps other traders find it.
Questions: use the comments on this page or send me a message on MQL5.
Trading gold carries a risk of loss, and past results do not predict future results.
