hour int64 0 23 | bars int64 996 3.08k | coverage_pct int64 32 100 | spread_median_usd float64 0.16 0.24 | spread_p90_usd float64 0.24 0.36 | range_median_usd float64 2.86 6.97 | volume_median int64 455 2.11k | spread_pct_of_range float64 2.3 7.5 |
|---|---|---|---|---|---|---|---|
0 | 3,084 | 100 | 0.16 | 0.28 | 4.58 | 1,007 | 3.5 |
1 | 3,084 | 100 | 0.16 | 0.28 | 5.71 | 1,541 | 2.8 |
2 | 3,084 | 100 | 0.16 | 0.28 | 4.47 | 1,073 | 3.6 |
3 | 3,084 | 100 | 0.16 | 0.28 | 3.55 | 807 | 4.5 |
4 | 3,084 | 100 | 0.16 | 0.28 | 2.97 | 622 | 5.4 |
5 | 3,084 | 100 | 0.16 | 0.28 | 4.11 | 905 | 3.9 |
6 | 3,084 | 100 | 0.16 | 0.28 | 4.33 | 1,064 | 3.7 |
7 | 3,084 | 100 | 0.16 | 0.28 | 4.2 | 943 | 3.8 |
8 | 3,076 | 100 | 0.16 | 0.28 | 4.16 | 929 | 3.8 |
9 | 3,084 | 100 | 0.16 | 0.28 | 3.89 | 838 | 4.1 |
10 | 3,084 | 100 | 0.16 | 0.28 | 3.59 | 771 | 4.5 |
11 | 3,084 | 100 | 0.16 | 0.28 | 3.72 | 827 | 4.3 |
12 | 3,084 | 100 | 0.16 | 0.28 | 4.81 | 1,121 | 3.3 |
13 | 3,082 | 100 | 0.16 | 0.28 | 6.52 | 1,939 | 2.5 |
14 | 3,084 | 100 | 0.16 | 0.28 | 6.97 | 2,110 | 2.3 |
15 | 3,084 | 100 | 0.16 | 0.28 | 5.85 | 1,734 | 2.7 |
16 | 3,084 | 100 | 0.16 | 0.28 | 4.67 | 1,214 | 3.4 |
17 | 3,060 | 99 | 0.16 | 0.28 | 4.04 | 1,001 | 4 |
18 | 3,036 | 98 | 0.16 | 0.28 | 3.74 | 900 | 4.3 |
19 | 3,004 | 97 | 0.16 | 0.28 | 3.59 | 843 | 4.5 |
20 | 2,976 | 96 | 0.16 | 0.28 | 2.96 | 594 | 5.4 |
21 | 996 | 32 | 0.16 | 0.24 | 2.86 | 562 | 5.6 |
22 | 1,999 | 65 | 0.24 | 0.36 | 3.22 | 455 | 7.5 |
23 | 3,057 | 99 | 0.16 | 0.28 | 3.65 | 576 | 4.4 |
XAUUSD Hourly Spread and Volatility, 2025–2026
One year of gold (XAUUSD) bid-ask spread and volatility aggregated by hour of the broker trading day, built from 70,546 five-minute MetaTrader 5 bars across 312 sessions, 1 August 2025 to 31 July 2026.
MetaTrader records the spread on every bar. Almost nobody publishes it, so most advice about when spreads widen on gold is folklore. This is the measurement.
DOI: 10.5281/zenodo.21973215 · Source: github.com/tech-kick/xauusd-hourly-data · Write-up: techkick.me/research
Columns
| Column | Meaning |
|---|---|
hour |
Hour of the broker server day. Not UTC. |
bars |
M5 bars observed in that hour across the period |
coverage_pct |
Bars as a share of the busiest hour |
spread_median_usd |
Median bid-ask spread, US dollars |
spread_p90_usd |
90th percentile spread |
range_median_usd |
Median high-minus-low of the M5 bar |
volume_median |
Median tick volume |
spread_pct_of_range |
Spread as a percentage of typical movement |
The last column is the one worth reading. Spread is constant; what changes across the day is the size of the move it is charged against.
Findings
- Median spread is $0.16 and identical in all 24 hours. It exceeded $1.00 in 3 bars out of 70,546.
- Median daily range is $76.12 (10th percentile $25.84, 90th percentile $162.62).
- Median five-minute range runs from $2.86 to $6.97 across the day — roughly 2.4×.
- Median weekend gap is $7.60 across 52 breaks; 48% exceeded $10.
The practical consequence: the cost of trading as a share of the move is driven almost entirely by the denominator.
Limitations
Read these before using the numbers.
- One broker, one account type, one year. Every spread figure belongs to a single raw-spread account. A standard account folding cost into the quote looks completely different, and that comparison is not in this data.
- Hours are broker server time, not UTC, and not yours. The daily maintenance break leaves
two hours with reduced coverage; they are not comparable like-for-like with the rest and
coverage_pctidentifies them. - Gold ran from roughly $3,288 to $4,044 over the period. Ranges are in dollars, so they are not directly comparable to a period at a very different price level.
- One year characterises a regime, not an instrument.
Reproducing it
build.py is the exact script that produced the CSV, verified to reproduce it byte for byte.
It expects the gzipped pickled MT5 bar frames it was written against, so it will not run as-is
without that archive — it is published so the arithmetic is auditable, not as a turnkey tool.
make_chart.py regenerates the chart from the CSV.
Licence
Data: CC BY 4.0 — use it, cite it. Script: MIT.
Tech Kick (2026). "XAUUSD hourly spread and volatility, 2025-2026."
Dataset: 70,546 M5 bars, 312 sessions, 2025-08-01 to 2026-07-31.
DOI: 10.5281/zenodo.21973215
Corrections
If you find an error, open a discussion. Two claims were corrected as a direct result of running this, and both are documented rather than quietly edited:
- "Gold has a $10–$30 daily range" — repeated from memory, never checked. The measured median is $76.
- "A $1.00 spread filter removes a meaningful share of entries" — on a raw account it is reached in 3 bars out of 70,546, so it does not.
- Downloads last month
- 1
