Skip to content

MT5 EAGold–silver spread hedging · one panel

Gold and silver as one trade.Work the swings in the spread.

Short gold, long silver · Long gold, short silver · Auto zero axis

Two hedged groups, short gold/long silver and long gold/short silver, managed from one panel. With 0.01 lot on each leg, every index point is 1 US dollar.

  • Silver lot size matched for any broker
  • Positions survive restarts and disconnects
  • Full risk controls, close-all in one click

Gold/silver spread index

Fetching quotes…

—

S = 50 × silver − gold + 828

Gold XAUUSD
—
Silver XAGUSD
—
Gold/silver
—
Round trip
—

Fetching yesterday's close…

Index since you opened the page

Since you opened the page: a few seconds more

Reference quotes: Swissquote public prices. Not your broker's quote; for reference only. Readings differ by 1–5 points between platforms.Updated — Beijing time

What it does

Gold and silver are combined into one index. The EA trades the swings of that index.

  • Where the index comes from

    Index S = 50 × silver − gold + 828. One lot of silver is 5,000 oz and one lot of gold is 100 oz, so the ratio is 50. With 0.01 lot on each leg, a 1-point move in the index is exactly 1 USD on the pair. The 828 only shifts the number into a readable range; it does not change P&L.

    Broker silver is not 5,000 oz? The EA reads the contract size and works out the silver lot for you.

  • Two groups, one direction each

    Expand group = sell gold + buy silver; it gains when the index rises. Shrink group = buy gold + sell silver; it gains when the index falls. You can hold both: shrink when the index is high, expand when it is low.

    A position is always two legs, opened and closed together.

  • The zero axis and the swings

    The zero axis is the index’s centre line. When the index drifts far from it, you open; when it comes back a few points, you take profit. That can happen several times a day. The hard part: the axis itself moves. The EA can compute the axis automatically and stops opening new positions when it moves too fast.

    The two legs are not equal in dollars. When the gold/silver ratio shifts, the index trends.

One real day of the indexHistorical data. The horizontal line is the zero axis: watch the index swing around it.

One real day: 2026-09-24

Historical dataSimulated trips

The index swung between −278.78 and −235.47 during the day. Blue: the 0 axis (−238.31); light band: the ±10-point zone; dashed: the entry lines.

One real day: 2026-09-24The index through one day (a point every 3 minutes), with the 0 axis, the ±10 zone, the entry lines and 2 simulated entries.−280−260−240−220−20006:0009:0012:0015:0018:0021:0000:0003:00

Simulated with the EA's default 20-point entry and 5-point take-profit per pair: 2 pairs opened that day, 1 closed at take-profit.

Note: the 0 axis here is the previous close, so the swings are easy to see. The EA's default axis is a 24-hour moving average; with it, the entries, exits and result would differ.

Source: Dukascopy public M1 history; index from bid prices, executable prices from the asks; simulated fills at minute closes, no commission, swap or slippage. Times are Beijing time. Built 2026-10-01. Past moves say nothing certain about the future.

Show the trades of the day
GroupOpen (Beijing)Open indexClose (Beijing)Close indexPoints
Expand19:58−259.3300:40−254.24+5.09
Expand00:57−258.40open——

Panel demo

Demo · historical replay · not live

A web copy of the EA panel, replaying one real historical day at high speed. Every button works: it places no order, it just tells you what that button does in the EA.

  • Demo
  • Historical replay
  • Simulated fills
  • Not live trading

An ordinary day: Thu 24 Sep 2026. Range about 43 points, close to the median of the period (about 50).

Demo settings
HyperMatch Gold/Silverv1.0 demo
Beijing 2026-09-24 06:00:00Server 01:00

−241.93

0 axis = −238.31

Now −3.62 pts

Live spread: highs / lows

PeriodHighLowExp n / maxShr n / max
Mon−191.42−241.419 / +45.30 / −4.7
Tue−166.24−236.996 / +48.312 / −22.5
Wed−160.06−242.477 / +15.914 / −66.5
Thu−241.93−241.930 / −3.60 / −3.6
Fri————
PeriodHighLowExp n / maxShr n / max
Today−241.93−241.930 / −3.60 / −3.6
Yesterday−160.06−242.477 / +15.914 / −66.5
Week−160.06−242.4722 / +48.326 / −66.5
Month*−160.06−336.0945 / +57.055 / −66.5

* Month data starts 2026-09-14

Now −3.62 pts

Controls

Positions & P&L

Exp avg —Shr avg —

Positions

No.OpenLotsP&LTargetStateClose this pair (new)
Expand: 0 / 0.00 lots / floating $0.00
No positions
Shrink: 0 / 0.00 lots / floating $0.00
No positions
Lock: 0

P&L

Today
$0.00
Yesterday
—
Week
—
Month
—
Mon
—
Tue
—
Wed
—
Thu
$0.00
Fri
—
Floating
$0.00
Total (today)
$0.00

0 closed today · The demo simulates this one day only; other days stay empty.

Account: hedging ✓ (demo)Quotes: replayCost 5.05 ptsMargin level —Paused: no-open window (server 23:50–01:10)Last error: none

Press any button on the panel and this box explains what it does in the real EA. The demo never places orders.

Data: Dukascopy public M1 history (server day 2026-09-24, from 06:00 Beijing time); the index uses bid prices, executable prices use the asks. Simulation: fills at minute closes, no commission, swap or slippage, 0.01 lot, EA default take-profit and averaging. A demo, not a promise about future results.

Features

Everything you expect, plus the hard parts done properly.

Everything the usual gold–silver hedge panels have

  • Large index readout, zero axis and current deviation in points
  • High, low and expand / shrink counts for Monday to Friday, today, yesterday, this week and this month
  • ±150-point gauge: expand zone, axis zone, shrink zone, with a marker for now
  • One-click open and close for the expand and shrink groups
  • Open both groups, one-click lock, one-click close-all
  • Four index-level orders: expand at, shrink at, close at, lock at
  • Auto mode, trailing take-profit, averaging against the move, master trading switch
  • Per-group take-profit, average entry per group, a row for every position
  • P&L for today, yesterday, this week and this month, plus floating total
  • Statistics, index chart, collapsible panel

What we do better

  1. Executable pricesTriggers and bookkeeping use real bid/ask. The mid price looks nicer, but you pay the spread when you fill.
  2. Balanced at any brokerDetects symbol suffixes, contract sizes and account currency, then sizes the silver leg; if it cannot match, it will not open.
  3. Two legs, one positionIf one leg fails it retries, then closes the other leg; failed closes keep retrying.
  4. Nothing lost on restartPositions, pending orders, trailing peaks and switches all come back after a restart or timeframe change.
  5. Stats rebuilt from historyHighs, lows and counts come from historical bars, so they match after a restart or on another PC, with round-trip counts and range percentiles added.
  6. The axis can move itselfMoving average, previous close, today’s open and more; if the axis moves too fast, new entries pause (trend protection).
  7. Clear pending ordersEach order shows whether it fires at ≥ or ≤ and fires once; it can send a push notification (turn on push in MT5).
  8. A full set of risk controlsGroup stop-loss, auto-lock on drawdown, equity stop, daily loss limit, margin guard, no-entry hours, close before the weekend, spread filter, shock pause.
  9. Hard to misclickUnlock button, close a single position, confirm dangerous actions twice; the status bar says why auto has not opened.
  10. The small thingsChinese and English UI, scales on high-DPI screens, index chart in one click; tonight’s swap shown in index points.

Real data

Historical data

Dukascopy minute quotes, 14 Sept 2026 to 30 Sept 2026, 13 trading days. Every number here comes from a data file shipped with the site.

How far does it move in a day?

Using one-minute closes, the median daily range (high minus low) is 50 points: half the days moved more, half less. "Dozens of points a day" holds up.

Median of all 13 trading days
50pts
8 days in 10 fall within
43.6–68.8pts

Counting highs and lows inside each minute, the median is 67.9 points. The true figure sits between the two.

There are only 13 trading days of data so far. Once there is enough, the 30-, 90- and 365-day medians are shown separately.

Daily high to low of the index

Historical data

The last 13 server days. Top: each bar runs from the day's high to its low; the tick is the close. Bottom: the day's range in points.

Daily high to low of the indexHigh, low and close of the index for each of the last 13 server days, and each day's range; median range 50.0 points.−350−300−250−200−150050100Range09-1409-1609-1809-2209-2409-2809-30Median range 50.0 pts (all 13 days)

Source: Dukascopy minute data (index on bid prices), 2026-09-14 to 2026-09-30. Server days (New York 17:00 roll-over), highest and lowest minute close.

Show the data table
Server dayHighLowRangeClose
2026-09-30−271.15−327.7456.59−309.55
2026-09-29−252.78−289.8137.03−280.41
2026-09-28−234.82−284.3149.49−254.48
2026-09-25−228.11−272.9544.84−243.51
2026-09-24−235.47−278.7843.31−256.11
2026-09-23−160.06−242.4782.41−238.31
2026-09-22−166.24−236.9970.75−175.96
2026-09-21−191.42−241.4149.99−214.53
2026-09-18−196.69−254.4257.73−236.75
2026-09-17−239.65−300.7661.11−253.66
2026-09-16−253.42−304.7051.28−287.44
2026-09-15−270.97−316.2645.29−277.69
2026-09-14−291.12−336.0944.97−309.91

What does one round trip cost?

Opening and closing one pair (0.01 lot each) costs a median 2.69 points in spread, about 2.69 USD; one time in ten it is over 3.4 points.

Most expensive: server hours 1, 2, 3 (about 6, 7, 8 Beijing time in US summer time; one hour later in winter). Spreads are widest right after the daily break, so auto entries should skip them.

Cheapest: server hours 10, 11, 14.

These are Dukascopy spreads. Your broker’s spreads and commissions will differ; the EA panel shows your account’s live round-trip cost.

Median round-trip cost
2.69pts
Exceeded 1 time in 10
3.4pts
Exceeded 1 time in 100
4.24pts

A risk case: the index trends too

From 22 Sept 2026 to 29 Sept 2026, the index moved −104.5 points net in 5 trading days.

Largest rise: 14 Sept 2026 to 23 Sept 2026, the index went from −336.1 to −160.1, about 176 points.

Largest fall: 23 Sept 2026 to 30 Sept 2026, the index went from −160.1 to −327.7, about 168 points.

Measured on daily highs and lows (one-minute closes), so the true swing was at least this big. With a fixed axis and averaging all the way, you sit through the whole swing, not just one leg of it.

The longest one-way leg (no 20-point pullback): −118.7 points, 23 Sept 2026 08:41 to 24 Sept 2026 21:35 Beijing time, over about 36 trading hours.

More extreme: on 30 January 2026 silver crashed. With the same formula, the index went from +1,312.4 to −155.3 in one day, about 1,468 points. At 0.01 lot per leg, that is about 1,468 USD.

Plain mean reversion, "open when it is far, add more the further it goes", digs deeper in moves like these. That is why the EA has an auto axis, trend protection, a shock pause and group stop-losses.

Fixed axis with unlimited averaging vs. our defaults

Backtest in progressThe backtest is still running. Until it finishes this space shows no curve and no number.

Limits of the backtest

Once the backtest is done, its limits will be listed here.

How you set the axis matters

On the same market, a different axis changes how far the index strays, how long it takes to come back, and how much further it runs first.

The EA’s current defaults (a 24-hour average as the axis, and so on) are starting values; they will be updated once the backtest is done.

How you set the axis matters
Zero axisDistance from axis (median / 90%)Not back within 24 h after a 20-pt moveExtra move before coming back (90%)
24-hour average (EMA, H1)10.9 / 26.4 pts17% (12 events)26.5 pts
24-hour average (SMA, H1)12.2 / 30.8 pts13% (15 events)29.3 pts
12-hour average (EMA, H1)7.1 / 19.7 pts0% (16 events)20.7 pts
Previous close15.7 / 38.8 pts6% (18 events)30.9 pts
Today’s open14.7 / 37.9 pts12% (17 events)31.8 pts

Sample: 13 trading days, few events, so read it as a rough guide. A move triggers at ±20 points and counts as back within ±3; averages use closed bars only.

Method
  • Index = 50 × silver − gold + 828 on bid prices; cost = gold spread + 50 × silver spread.
  • Server day: rolls at the New York 5 pm close, like most MT5 brokers.
  • Daily highs and lows use one-minute closes (slightly smaller than the true range).

How much capital?

"Any account size works" really means: match the lot size to the capital. Smaller account, smaller lots, fewer additions.

Your settings

With standard contracts the silver leg uses the same lots
How far the index runs against you from the first entry
Account currencyUSD (USD accounts only for now)

Results

Per pair, per point
$1.00
All 5 pairs, per point
$5.00
Worst floating loss at 176 pts
−$693
Margin of one pair, both legs (approx.)
$37.35
Margin of 5 pairs (approx.)
$186.75
Suggested minimum equity
$1,254

With less than $787, the broker may close you out before the index has moved 176 points (50% stop-out).

EA default: once the floating loss reaches 30% of equity, it closes everything and turns auto off. With the suggested $1,254, that happens at about 95 points: a floating loss of about $289 becomes a realized loss before the move reaches 176 points. You can change this limit in the EA.

Averaging ladder
PairOpened after the firstLotsUnder water thenFloating loss (incl. spread)
10 pts0.01176 pts−$178.69
220 pts0.01156 pts−$158.69
340 pts0.01136 pts−$138.69
460 pts0.01116 pts−$118.69
580 pts0.0196 pts−$98.69
How it is worked out
  • Per pair per point = lots × 100 oz (0.01 lot = 1 USD).
  • Pair n opens (n − 1) × add step points after the first; at the adverse move it is "adverse − its distance" points under water, plus one round-trip spread.
  • Margin ≈ gold price × 100 × lots ÷ leverage + silver price × 5000 × lots ÷ leverage. Gold and silver are two symbols, so there is usually no hedge margin relief.
  • Suggested minimum = worst loss + 3 × all margin, i.e. the margin level is still 300% at the worst point.
  • Until the backtest finishes, only the formula above is used.
  • Prices: reference gold 4275.02, silver 63.899 (Dukascopy, around the 2026-09-24 close); live quotes are unavailable.
  • Spread: the research median round trip of one pair, 2.69 pts (Dukascopy quotes; your broker differs).

Limits to keep in mind

  • "Any account size works" really means: size the lots to the account. Small account: 0.01 lot, fewer pairs, a wider step.
  • Standard contracts assumed (gold 100 oz, silver 5000 oz). Some brokers use 1000 or 50 oz silver; the EA converts the lots, but money per point changes.
  • Swap and commission are not included. Holding overnight costs money, especially the shrink group.
  • The adverse move can be bigger than you enter: on 30 Jan 2026, when silver crashed, the index moved more than a thousand points in a day.
  • An estimate, not a promise. Margin rules, stop-out levels and spreads differ by broker.

The calculator gives a rough worst case. It does not predict returns.

Get started in three steps

Learn it by hand first, then switch on auto.

  1. Open a hedging account

    Open an MT5 account that allows hedging and check that XAUUSD and XAGUSD can be traded (some brokers call them GOLD / SILVER). Netting accounts can watch but not trade.

  2. Install the EA and the index indicator

    Get the EA and the indicator from official support, copy them into MT5’s Experts / Indicators folders, and attach the EA to any chart.

  3. Manual first, then auto

    Pick the axis mode, take-profit and lot size. Open a few pairs by hand to learn the panel, then turn on auto.

Want it running around the clock? Use a VPS. Free VPS guide (eaea.ai) (opens in a new tab)

How to get the EA: message HyperMatch official support. There is no public download, and the MQ5 source is never published.

Want to see if it fits?

Ask official support first. We answer questions on Telegram.

FAQ

Straight answers.

Is profit guaranteed?

No. No EA can guarantee profit. The index can trend, averaging in makes losses bigger, and spreads and swaps cost money every day. The historical data and replays on this site are from the past and do not predict the future.

What if the index trends one way?

That is the main risk. The EA has several brakes: the axis can follow the market; new entries pause when the axis moves too fast (trend protection) or the index jumps (shock pause); plus group stop-loss, auto-lock on drawdown, an equity stop and a daily loss limit. Set them for your capital. Brakes reduce losses; they do not remove them.

Do I pay overnight swap?

Yes. Each leg has its own swap, and metals usually charge triple on Wednesday. The EA panel converts one night of swap into index points, so check it before holding overnight.

My broker’s silver contract is not 5,000 oz. What now?

Nothing to calculate. On start the EA reads both contract sizes and tick values and works out the silver lot; if it cannot match within 5%, it will not open and tells you why. Suffixed names and GOLD / SILVER are recognised.

Can I use a netting account?

You can watch, not trade. In a netting account, longs and shorts on the same symbol cancel out, so the two groups cannot coexist. The EA greys out every open button and explains why. Use a hedging account.

Does my computer have to stay on?

The EA only runs while MT5 is open, so a VPS is recommended for 24-hour use. If the PC or MT5 restarts, nothing is lost: the EA rebuilds from your positions and its state file.

How is it different from the usual gold–silver hedge panels?

It has all the usual features, plus: executable-price triggers, automatic lot matching at any broker, two-leg integrity and orphan-leg repair, nothing lost on restart, history-based stats, an auto axis with trend protection, a full risk set and swap shown in points. See Features above.

Where does the data on this site come from?

Historical stats use Dukascopy minute quotes run through the same formula. The live index at the top comes from a third-party public quote, is delayed, and is not your broker’s price. Every number states its source and period.

Two HyperMatch systems

One team, one support desk. Pick the one that fits how you trade, or run both.