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

UKOIL (Brent Crude Oil) Historical Data CSV Free Download

Brent is the international crude benchmark and the reference price for two-thirds of the world’s traded oil. The dataset starts January 2020 — one week before the COVID crash — so you get the pandemic collapse below $20, the historic 2022 spike to $139 after the invasion of Ukraine, the 2022–2023 decline under OPEC+ supply management and the full 2024–2026 cycle, all in one continuous broker feed.

422,565

OHLC candles across 9 timeframes.

M1 → MN1

Nine separate CSV files in one ZIP.

Jan 2020 – Oct 2026

Live dataset, exported 19 October 2026.

CSV

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

6.22 MB

ZIP size, plain uncompressed CSV inside.

UKOILm

MT5 export symbol — rename to match your broker.

UKOIL Historical Data — Timeframe Breakdown

FileRowsFromTo
UKOILm_PERIOD_M1_OHLC.csv100,0002026-06-262026-10-19
UKOILm_PERIOD_M5_OHLC.csv100,7502025-03-202026-10-19
UKOILm_PERIOD_M15_OHLC.csv100,0842022-02-182026-10-19
UKOILm_PERIOD_M30_OHLC.csv72,7392020-01-132026-10-19
UKOILm_PERIOD_H1_OHLC.csv36,3982020-01-132026-10-19
UKOILm_PERIOD_H4_OHLC.csv10,4112020-01-132026-10-19
UKOILm_PERIOD_D1_OHLC.csv1,7472020-01-132026-10-19
UKOILm_PERIOD_W1_OHLC.csv3542020-01-122026-10-18
UKOILm_PERIOD_MN1_OHLC.csv822020-01-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).Check the server offset before aligning with NYMEX/ICE session data.
Open, High, Low, CloseUKOIL candle prices.Validate High ≥ max(Open, Close) and Low ≤ min(Open, Close).
TickVolumeBroker tick activity inside the candle.Not exchange volume — use it as an activity proxy.
SpreadRecorded broker spread.Keep it: energy CFDs widen at the daily rollover and around the weekly EIA inventory report.

How to Use the UKOIL 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) and run Strategy Tester backtests on the exact series.
  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. Keep the daily settlement break and weekend gaps in your assumptions — energy CFDs widen spreads at rollover and gap over weekends.
import pandas as pd

df = pd.read_csv("UKOILm_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

UKOIL is listed under several names depending on the broker: UKOIL, BRENT, XBRUSD, BCO, Brent Crude CFD. The dataset works with any of them — rename the files or the custom symbol to match your MT5 Market Watch exactly.

UKOIL Historical Data — FAQ

How far back does the UKOIL data go?

UKOIL data spans Jan 2020 – 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.

What is the difference between UKOIL and USOIL?

UKOIL tracks Brent, the international seaborne benchmark, while USOIL tracks WTI, the US inland benchmark. Brent usually trades at a small premium to WTI; the spread between them is itself a traded market. Both datasets use the same nine-timeframe CSV structure, so you can run the same strategy on each and compare.

Which MT5 symbol name does this dataset use?

The files are exported from the UKOILm symbol (broker “m” suffix). Rename them to match your own broker’s symbol — UKOIL, BRENT, XBRUSD, BCO, Brent Crude CFD. The CSV structure (Timestamp, Open, High, Low, Close, TickVolume, Spread) is identical across brokers.

Can I use this data for MT5 backtesting and machine learning?

Yes. Every file is plain CSV: Timestamp, Open, High, Low, Close, TickVolume, Spread. Energy CFDs trade nearly around the clock on weekdays with a daily settlement break — the series reflects the broker’s real sessions, including spread widening at the daily rollover and the weekend gaps. Load it as an MT5 custom symbol for Strategy Tester runs, or directly in pandas.

Related Datasets

Need an EA Tested on This Data?

We build MT5 Expert Advisors for energy CFDs and validate them on clean datasets like this one — with realistic spread, rollover and gap 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. ×