Gold VWAP Drift
- 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. - 버전: 1.10
- 업데이트됨: 2 11월 2026
Gold VWAP Drift is a patient, selective system for gold (XAUUSD, M15). It stays out of the market most of the time and acts only when several independent conditions line up, joining the move instead of chasing it.
Version 1.1 keeps the same idea and adds what a daily trader needs around it: five risk levels, a control panel with switches, protection brakes and a stricter set of filters.
Every position has a protective stop from the first tick and an adaptive exit. Only three settings are exposed: the risk level, the magic number and enable trading. Everything else is fixed inside the EA.
Works on hedging and netting accounts. The system keeps its exposure simple, so both account types behave the same.
KEY FEATURES
- Several checks, one decision. The system joins the market when its own independent conditions agree, and stays out when they do not.
- Selective by design. Quality checks keep the system out of weak, quiet or messy conditions, so it takes few trades and picks them with care.
- Exits that adapt. A protective stop, a profit objective and trade management that follow the market as it changes.
- Five risk levels. Min, Low, Medium, High and Xtreme, with the lot proportional to your equity. Each level was backtested on its own.
- Control panel with switches. Turn buy or sell trades, each filter and each exit on or off from the chart. The choice is remembered after a restart.
- Built-in protection. Daily loss limit, equity drawdown brake, margin check and an equity-too-low guard that waits instead of oversizing.
TEST RESULTS
Strategy Tester, XAUUSD M15, 2024.04.11 to 2026.07.22, 1 minute OHLC model, 10,000 USD deposit, broker spread and swap included. Every level was run on its own. These are test results, not a promise.
- Min (0.01 lot): +2,404 USD, profit factor 2.57, 347 trades, relative drawdown 2.28%
- Low: +10,788 USD, profit factor 2.70, relative drawdown 7.98%
- Medium: +34,071 USD, profit factor 2.63, relative drawdown 13.76%
- High: +71,196 USD, profit factor 2.62, relative drawdown 18.25%
- Xtreme: +206,319 USD, profit factor 2.31, relative drawdown 29.82%
The same test on a second broker (symbol GOLD) gave practically the same trades and profit factor, so the system does not depend on one broker.
Because the lot is proportional to equity, profits are reinvested: the higher levels grow faster and also draw down more. The drawdown figure is the one to choose a level by.
RISK LEVELS AND MINIMUM EQUITY
- Min: the broker minimum lot (0.01). Any account that accepts it.
- Low: from about 2,900 USD of equity.
- Medium: from about 1,450 USD.
- High: from about 1,000 USD.
- Xtreme: from about 550 USD.
If the equity is too small for the selected level, the EA waits and the panel shows EQUITY TOO LOW with the equity needed, instead of trading a larger lot than the level asks.
THE CONTROL PANEL
- Status at a glance: RUNNING, PAUSED, DAILY LIMIT, DRAWDOWN BRAKE, EQUITY TOO LOW, ALGO TRADING OFF or MARKET CLOSED.
- Key figures: risk level and lot, equity check, current drawdown, today's result and the open position.
- Controls: Trading on or off, Buy trades, Sell trades.
- Filters: trend confirmation, entry quality, market and calendar.
- Exits and safety: adaptive trailing, profit target and Friday close.
- The panel sits at the right edge of the chart, follows a light or dark chart theme and folds with one click. The defaults are the tested configuration.
PROTECTION
- Daily loss limit: no new trades for the rest of the day after a loss of 6% of the day's starting balance.
- Drawdown brake: new trades pause at a 35% equity drawdown and resume at 30% or after 7 days.
- Margin check: no new trade while the margin level is below 150%.
- Order checks: market open, fresh quote, spread, volume and free margin are verified before every order. Failed entries and closes are retried.
Open trades always keep their stop and their exit rules, and the brakes only stop new entries. Deposits and withdrawals are not counted as losses.
SETTINGS
- Risk level: Min (default), Low, Medium, High or Xtreme.
- Enable trading: when off, no new entries; open trades keep their exit.
- Magic number: identifies the trades of this EA (default 23100).
REQUIREMENTS
XAUUSD (some brokers call it GOLD), M15 chart, algo trading enabled, hedging or netting account. A VPS is recommended for continuous operation.
QUESTIONS
Do I need to change any setting? No. Attach it to an XAUUSD M15 chart, choose a risk level and leave the switches on.
Which risk level should I use? Start with Min or Low and move up when you are comfortable with the drawdown. Compare levels by the drawdown figure.
Does it work on netting accounts? Yes. The system keeps its exposure simple, so hedging and netting behave the same.
What does Friday close do? It closes the open trade before the weekend and blocks new entries. It is off by default.
Can I use it on other symbols? It was designed and tested on gold. The panel shows a notice on other symbols.
RISK DISCLAIMER
Trading leveraged products such as gold CFDs carries a high level of risk and can result in the loss of your capital.
Backtest results are not a guarantee of future performance. Test on a demo account first and trade only with capital you can afford to lose.
This product does not provide investment advice.
Questions, ideas for improvements or problems: send me a private message (DM) on MQL5.com.
