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

US500 (S&P 500) Historical Data CSV Free Download

US500 is the MT5 CFD name for the S&P 500. This dataset gives you the broker-feed OHLC series exactly as your EA will see it in the Strategy Tester — including the 2020 crash and 2022 bear market for honest stress testing. Yahoo Finance and Excel exports only give you daily rows; here you get intraday M30 and H1 candles back to 2019.

438,510

OHLC candles across 9 timeframes.

M1 → MN1

Nine separate CSV files in one ZIP.

Jul 2019 – Oct 2026

Includes the 2020 crash and 2022 bear market.

CSV

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

6.69 MB

ZIP size, plain uncompressed CSV inside.

US500m

MT5 export symbol — rename to match your broker.

US500 Historical Data — Timeframe Breakdown

FileRowsFromTo
US500m_PERIOD_M1_OHLC.csv100,0002026-07-012026-10-09
US500m_PERIOD_M5_OHLC.csv100,0002025-05-122026-10-09
US500m_PERIOD_M15_OHLC.csv100,0002022-06-152026-10-09
US500m_PERIOD_M30_OHLC.csv82,6802019-07-162026-10-09
US500m_PERIOD_H1_OHLC.csv41,7522019-07-162026-10-09
US500m_PERIOD_H4_OHLC.csv11,3782019-07-162026-10-09
US500m_PERIOD_D1_OHLC.csv2,2342019-07-162026-10-09
US500m_PERIOD_W1_OHLC.csv3782019-07-142026-10-04
US500m_PERIOD_MN1_OHLC.csv882019-07-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 July 2019.

CSV Columns Explained

ColumnMeaningBacktesting Note
TimestampBroker candle open time (server time).Verify the server offset before aligning with another data source.
Open, High, Low, CloseUS500 candle prices.Validate High ≥ max(Open, Close) and Low ≤ min(Open, Close).
TickVolumeBroker tick activity inside the candle.Not centralized volume — use it as an activity proxy.
SpreadRecorded broker spread.Keep it: index CFDs widen at the cash open and rollover.

How to Use the US500 Data

  1. Download the ZIP and extract the nine CSV files.
  2. For MT5: import into the Strategy Tester or rebuild the US500 symbol history; match the exact symbol name your broker uses (US500, SPX500, SP500, USA500).
  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 session gaps are the three checks that catch most bad imports.
  5. Include spread and the overnight financing behavior when you interpret results — index CFDs are not futures.
import pandas as pd

df = pd.read_csv("US500m_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["session"] = pd.cut(df.index.hour, bins=[-1, 7, 13, 21, 24],
                       labels=["Asia", "London", "NewYork", "LateNY"])

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

Also Known As

US500 is listed under several broker names: SPX500, SP500, USA500, US500Cash, S&P 500 Index CFD. The dataset works with any of them — rename the symbol to match your MT5 Market Watch exactly.

US500 Historical Data — FAQ

Is US500 the same as the S&P 500 index?

US500 is the CFD contract offered by MT5 brokers that tracks the S&P 500 index. Its prices come from your broker's feed, so intraday candles can differ slightly from the official index print. This dataset is the broker feed — exactly what your MT5 backtest will use.

How far back does the US500 data go?

M30, H1, H4, D1, W1 and MN1 candles run from July 2019 to October 2026. The M1, M5 and M15 files contain the most recent 100,000 candles each (M15 covers 2022 onward).

Can I use this data for the 2020 COVID crash backtest?

Yes. The M30-H1 files include February-March 2020 in full, so you can test stop distance, gap behavior and margin stress for that period. M1 data does not reach that far back because MT5 keeps only 100,000 M1 bars.

Related Index Datasets

Need an EA Tested on This Data?

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