Goldvane EA: Trading Gold Breakouts with Discipline

Goldvane EA: Trading Gold Breakouts with Discipline

5 October 2026, 03:52
Nawal Kishor Yadav
0
24
Goldvane EA: Trading Gold Breakouts with Discipline

Oct 5, 2026 · @Nawal Kishor Yadav

Why I built Goldvane (product Linke:- https://www.mql5.com/en/market/product/199520

Gold rarely drifts. It sits quietly in a range, then moves hard when big money arrives, usually at the London and New York opens. Goldvane is built to catch those breakouts with fixed rules and a defined risk on every single trade.

I wanted an EA I could leave running without worrying about a hidden martingale or a grid slowly building up. So every rule in Goldvane starts from one question: how much can this trade lose, and is that loss known before the order is placed?

This post explains how Goldvane trades, how to set the risk, what the backtest shows, and who the EA is (and is not) for.

What Goldvane is, and what it never does

Goldvane is a fully automated breakout EA for XAUUSD on MetaTrader 5. Every trade is opened by a pending stop order and carries a Stop Loss and a Take Profit from the first second.

Just as important is what it never does:

  • No martingale. The lot size never doubles after a loss.
  • No grid. It does not stack orders at fixed distances.
  • No averaging down. It never adds to a losing position.
  • No trade without a Stop Loss. The maximum loss is known before entry.

These rules cost some "smoothness" in the equity curve, but they keep a single bad week from wiping out an account.

How it trades

Goldvane combines several independent breakout models inside one EA. Each model has its own entry, exit and trade-management rules, so they react to different kinds of moves.

Session-range breakouts. While the market is quiet before Europe opens, the EA measures the price range. It then places a buy stop above the range and a sell stop below it. When London or New York liquidity pushes price out of the range, one side triggers and the other order is cancelled.

Market-structure breakouts. Other models track recent swing highs and swing lows. A break of these levels often starts a larger trend, so these trades aim for bigger targets and stay open longer.

Trade management. Pending orders that no longer make sense are deleted automatically. Once a trade moves into profit, a trailing stop and a profit lock pull the Stop Loss forward, so a winning trade is less likely to turn into a loser.

Because entries use stop orders, Goldvane only enters when price is already moving in the trade's direction. It does not try to guess tops or bottoms.

Money management: you choose the risk

Goldvane offers four money-management modes, chosen with one dropdown in the inputs:

Mode

How the lot size is set

Best for

Risk fixed money per trade (default)

Every trade risks the same amount, e.g. 100 USD

Steady, predictable risk per trade

Risk % of balance per trade

Every trade risks a % of the current balance

Growing the lot size with the account

Fixed lot size

Every trade uses the same lot

Traders who want full manual control

Risk profile

Five presets from Very Low to Very High

Quick setup without calculations

The five risk profiles scale every model together. Very Low risks a quarter of the Average level and Very High risks double, so you can step risk up or down without changing anything else.

My advice: start one or two levels lower than you think you need. You can always raise the risk after a few weeks of live results.

Built-in account protection

On top of the Stop Loss on every trade, Goldvane has extra safety switches:

  • Daily loss protection. After a set daily loss, the EA stops placing new orders until the next day.
  • Equity target. When your equity reaches a chosen goal, the EA closes everything and stops.
  • Maximum lot size. A hard cap so no single trade can be larger than you allow.
  • Free-margin check. Before every order, the EA checks that the account has enough margin.
  • Friday exit (optional). Delete pending orders or close all trades before the weekend gap.

None of these replaces sensible risk settings, but together they limit the damage on a bad day.

Everything on one dashboard

A clean panel on the chart shows the state of the EA at a glance, so you never need to dig through the terminal tabs:

  • Account: balance, equity, floating P/L and today's P/L.
  • Trading: the active risk mode, daily loss limit, open positions and pending orders.
  • Market: spread, server time, max lot setting and magic number.
  • Status: Active, Paused, Weekend or Stopped, shown in color at the top.

The panel and the chart colors can be turned off or changed in the inputs.

Backtest results

With default settings (fixed 100 USD risk per trade), Goldvane made 1,033 trades on XAUUSD H1 from January 2025 to September 2026, with a profit factor of 1.77. The test used MetaTrader 5's Strategy Tester with 100% history quality.

Metric

Result

Total net profit

13,749.81 USD

Profit factor

1.77

Winning trades

69.12% (longs 71.83%, shorts 65.72%)

Average win / average loss

44.22 USD / 55.56 USD

Largest losing trade

122.37 USD

Maximum consecutive losses

7 trades (442.15 USD)

Maximum equity drawdown

769.16 USD

Recovery factor

17.88

Two honest notes on these numbers:

  • The average loss is larger than the average win. The edge comes from winning about 7 trades in 10, so expect losing streaks; the test had one of 7 losses in a row.
  • Plan your account for the drawdown. The deepest drop was about 769 USD, close to 8 times the 100 USD risk per trade. Choose your risk so that a drop of that size is comfortable for your account.

A backtest is a simulation, not a promise. Live results depend on your broker's spread, execution and server time.

Getting started

  1. Use a hedging account with a low-spread broker. Most MT5 brokers use server time GMT+2 in winter and GMT+3 in summer, which Goldvane expects.
  2. Open an XAUUSD chart (any symbol name your broker uses for gold) and set it to H1. The EA reads the other timeframes it needs by itself.
  3. Attach Goldvane and allow algo trading.
  4. Choose your money management. The default 100 USD risk per trade suits accounts around 10,000 USD. For smaller accounts, lower the risk money or switch to Risk % mode.
  5. Check the broker clock. If your broker is not on GMT+2/GMT+3, enable "Use custom broker GMT offset" and enter its offsets.
  6. Run it on a demo first, ideally on a VPS so it runs 24/5 without interruptions.
  7. Test it yourself in the Strategy Tester with "Every tick based on real ticks" before going live.

Who Goldvane is for

A good fit if you:

  • Want to trade gold with a clear, fixed risk on every trade.
  • Prefer an EA without martingale, grid or averaging.
  • Can accept losing streaks and drawdowns as a normal part of trading.
  • Will run it on a VPS and check it from time to time.

Not a good fit if you:

  • Expect profit every day or every week.
  • Want to double a small account quickly with high risk.
  • Cannot afford to lose the money in the trading account.

Final words

Goldvane is built around one idea: trade gold breakouts with rules, and always know the risk before the trade. If that matches how you want to trade, you can find Goldvane EA on the MQL5 Market. Download the demo, run your own tests, and send me a message with any questions.

Risk warning: Trading gold with leverage carries a high level of risk and may not be suitable for every investor. Past performance, including backtests, does not guarantee future results. Only trade with money you can afford to lose.

Nawal Kishor Yadav, developer of Goldvane EA