Free learning tools Test your finance and trading knowledge before you build, buy, or automate.
FREE CRYPTO DATASET — MT5 / PYTHON READY

BTCXAU (Bitcoin / Gold) Historical Data CSV Free Download

Bitcoin priced in gold — the ratio chart institutional desks actually watch. The dataset starts February 2021 and spans the 2022 bear, the 2024 ETF-era re-rating and the 2025–2026 cycle. When BTCXAU trends up, bitcoin is outperforming the oldest hard asset; when it breaks down, capital is rotating back toward gold.

462,383

OHLC candles across 9 timeframes.

M1 → MN1

Nine separate CSV files in one ZIP.

Feb 2021 – Oct 2026

Live dataset, exported 19 October 2026.

CSV

Timestamp, Open, High, Low, Close, TickVolume, Spread.

8.41 MB

ZIP size, plain uncompressed CSV inside.

BTCXAUm

MT5 export symbol — rename to match your broker.

BTCXAU Historical Data — Timeframe Breakdown

FileRowsFromTo
BTCXAUm_PERIOD_M1_OHLC.csv100,0002026-08-102026-10-19
BTCXAUm_PERIOD_M5_OHLC.csv100,6512025-10-192026-10-19
BTCXAUm_PERIOD_M15_OHLC.csv100,3642023-11-172026-10-19
BTCXAUm_PERIOD_M30_OHLC.csv97,7812021-02-282026-10-19
BTCXAUm_PERIOD_H1_OHLC.csv48,9022021-02-282026-10-19
BTCXAUm_PERIOD_H4_OHLC.csv12,2672021-02-282026-10-19
BTCXAUm_PERIOD_D1_OHLC.csv2,0542021-02-282026-10-19
BTCXAUm_PERIOD_W1_OHLC.csv2952021-02-282026-10-18
BTCXAUm_PERIOD_MN1_OHLC.csv692021-02-012026-10-01

M1, M5 and M15 contain the most recent 100,000 candles (the MetaTrader 5 terminal window). M30 and above carry the full broker history since .

CSV Columns Explained

ColumnMeaningBacktesting Note
TimestampBroker candle open time (server time).Crypto runs 24/7 — check the server offset before aligning with another exchange feed.
Open, High, Low, CloseBTCXAU candle prices.Validate High ≥ max(Open, Close) and Low ≤ min(Open, Close).
TickVolumeBroker tick activity inside the candle.Not exchange volume — use it as a liquidity and activity proxy.
SpreadRecorded broker spread.Keep it: crypto CFDs widen at daily rollover and on weekends.

How to Use the BTCXAU Data

  1. Download the ZIP and extract the nine CSV files.
  2. For MT5: import the CSVs into a custom symbol (Market Watch → Symbols → Create Custom Symbol → Import Bars) — this works for live and delisted symbols alike — or use them for offline analysis.
  3. For Python: load with pandas, parse the Timestamp column, sort ascending and build features (returns, range, session flags).
  4. Run a data-quality pass first: duplicate timestamps, OHLC violations and unexpected gaps are the three checks that catch most bad imports.
  5. Remember crypto trades weekends — treat weekend candles as real liquidity, not as noise, when calibrating stops.
import pandas as pd

df = pd.read_csv("BTCXAUm_PERIOD_M30_OHLC.csv")
df["Timestamp"] = pd.to_datetime(df["Timestamp"])
df = df.sort_values("Timestamp").set_index("Timestamp")

df["range"] = df["High"] - df["Low"]
df["body"]  = (df["Close"] - df["Open"]).abs()
df["ret"]   = df["Close"].pct_change()

print(df.tail())
print(df[["range", "body", "TickVolume", "Spread"]].describe())

Also Known As

BTCXAU is listed under several names depending on the broker: BTCXAU, BTC/XAU, Bitcoin in gold ounces. The dataset works with any of them — rename the files or the custom symbol to match your MT5 Market Watch exactly.

BTCXAU Historical Data — FAQ

How far back does the BTCXAU data go?

BTCXAU data spans Feb 2021 – Oct 2026 overall. M30, H1, H4, D1, W1 and MN1 hold the full broker history; M1, M5 and M15 contain the most recent 100,000 candles each (the MT5 terminal window). All files end with the latest bar at export time — 19 October 2026.

Which MT5 symbol name does this dataset use?

The files are exported from the BTCXAUm symbol (broker “m” suffix). Rename them to match your own broker’s symbol — BTCXAU, BTC/XAU, Bitcoin in gold ounces. The CSV structure (Timestamp, Open, High, Low, Close, TickVolume, Spread) is identical across brokers.

What is this cross useful for?

Cross pairs like BTCXAU show bitcoin’s performance in another unit of account. They are used for relative-strength studies (is BTC outperforming the currency or metal?), correlation work against the underlying FX pair, and diversifying a strategy book away from pure USD crypto beta. The CSV format matches every other AlgoSpecial dataset.

Related Crypto Datasets

Need an EA Tested on This Data?

We build MT5 Expert Advisors for crypto CFDs and validate them on clean datasets like this one — with realistic spread and 24/7 session assumptions.

Build an EA Get Custom Data
🚀 Invite friends — Earn $5 You both get $5 credit on Go Ad · opencode.ai AI-Powered Coding Agent — Try Free Build apps, fix bugs & ship faster with opencode. Get $5 free credit when you join. × Ad · quo.com QuoPhone — $20 Visa Gift Card Free Sign up to Quo, subscribe 3 months, get a $20 Visa gift card. Atif's referral gift for you. ×