MetaTrader 5 Expert Advisor

Gold Arbitrage EA

MetaTrader 5 Expert Advisor that trades the price gap between spot gold and gold futures with hedged pairs, built-in safety limits and a live dashboard.

Get Started Sign Up

Trade the gap between spot gold and gold futures

Gold Arbitrage EA is a MetaTrader 5 Expert Advisor that watches spot gold and gold futures side by side. When the price gap between them becomes unusually wide, it opens one trade on each, in opposite directions, and closes the pair together once it reaches your profit target.

You attach it to the spot gold chart only. It reads and trades the futures symbol in the background.

Gold Arbitrage EA on a spot gold chart, showing its live dashboard and licence panel

The EA on a spot gold chart, with its dashboard and licence panel.

How it works

  1. It watches the gap. The EA keeps checking the difference between the spot and futures prices.
  2. It opens a hedged pair. When the gap is big enough, it buys the cheaper side and sells the more expensive side at the same time, with the same size on both.
  3. It closes together. When the combined profit of the pair reaches your target, both trades are closed.
  4. It can average a losing pair. If the gap keeps widening, the optional grid adds another pair in the same direction, up to a limit you set.
  5. It pauses between trades. After a pair closes, a cool-off time you choose keeps it from re-entering at once.

If one side is rejected by the broker, the EA keeps the open side protected by the take profit and stop-loss, marks it as unhedged on the dashboard and retries only the missing side.

Two ways to set the trigger

  • Average-based (default). The EA works out what the gap has averaged over the recent past and trades only when the live gap goes above that average plus a small buffer. It adapts to calm and busy markets, and it is ready as soon as it is attached, using the candles already on the chart.
  • Fixed level. It trades as soon as the gap goes above a number you choose.

A short confirmation delay makes sure the gap is real and not a single bad price tick.

Built-in safety controls

  • A stop-loss for the whole pair or grid (optional)
  • Daily profit limit, daily loss limit and a maximum number of new pairs per day
  • A maximum number of grid steps
  • A check that both markets are open before it opens, adds to or closes anything
  • No new trades from a chosen time on Friday afternoon until the weekly close
  • A buffer of days at the start and end of each futures contract with no new trades
  • Trades that are already open keep being managed by the take profit and stop-loss in every case

Live dashboard

A compact panel on the chart shows both symbols’ prices, whether each market is open, the futures expiry date, the current gap and the level needed to trade, the open position and grid step, today’s profit and loss, and every safety limit. A single “Entry Gates” line reads READY, or tells you why the EA is waiting.

What you need

  • MetaTrader 5, 64-bit, on Windows
  • A broker account with both spot gold and a gold futures symbol
  • A licence, using an account on the licensing portal

Licensing

When you attach the EA, a licence panel appears on the chart.

  1. In the Common tab of the EA settings, tick Allow DLL imports.
  2. Enter your licensing portal email and password in the panel and press Sign in.
  3. On a new computer, an approval link is emailed to you. Approve it and sign in again.
  4. The panel shows your plan and expiry date.

Your password is not saved. Licences are managed with Trend Licensing.

The licence sign-in panel shown on the chart

Risk notice

A hedged pair is not risk-free. The optional grid adds positions when a trade moves against you, which can increase losses, and the two prices may not come back together. Test on a demo account first and risk only money you can afford to lose. We make no promise of returns.

User manual

The full user manual explains every setting in plain language: GoldArbitrageEA User Manual (PDF).

Plans and pricing

Essential

INR 3,500 for 3 months

Sign Up

Life Time

INR 25,000 Lifetime

Sign Up

Every plan includes

  • The full Gold Arbitrage EA, all features
  • Runs on 1 account at a time
  • Free updates while your plan is active

A paid subscription is confirmed once your payment has been checked.

Ask a Question

Product FAQ

Which chart do I attach it to?

Attach it to the spot gold chart (for example XAUUSD) only. It reads and trades the futures symbol in the background, so you do not need to open a chart for it.

Which brokers and symbols does it work with?

Any MetaTrader 5 broker that offers both spot gold and a gold futures symbol on the same account. You enter the exact name of the futures symbol in the settings. A 64-bit MetaTrader 5 is required.

Does it need a licence?

Yes. You create an account on the licensing portal, then sign in from the licence panel that appears on the chart. Without a valid licence the EA opens no new trades, but it still manages and closes any positions that are already open. The Strategy Tester does not need a licence.

What happens if my internet connection drops?

The EA keeps running for the offline period allowed by your licence plan, then pauses opening new trades until the connection is back.

Can I turn the grid off?

Yes. The grid add-on can be switched off completely, in which case only one pair is opened per cycle. If you keep it on, you choose when it adds a pair, how large each pair is, and the maximum number of steps.

Does it guarantee profit?

No. No trading system can. Spot and futures prices may not come back together as expected, and the optional grid can increase losses. Test on a demo account first and risk only money you can afford to lose.

Ready to automate your trading?

Get a free consultation and a custom quote for your trading strategy.