Trading forex and CFDs on leverage is high risk. Most retail accounts lose money. Read the risk warning

Where to Download Historical Tick Data for Forex

The most widely used free sources of historical forex tick data are Dukascopy's historical data feed, TrueFX and HistData.com, plus the real-tick history your own broker's MetaTrader 5 server provides. Paid options range from inexpensive tools that download and convert free data for MetaTrader to institutional vendors with audited, multi-source feeds. Because forex has no central exchange, every source is one provider's view of the market, so the right choice depends on what you are testing and which broker you will trade with.

Key takeaways

  • There is no "official" forex tick history. Each source reflects one liquidity provider or broker, and spreads, timestamps and gaps differ between them.
  • For MetaTrader 5, the broker's own real-tick history is the closest match to live conditions on that broker, but its depth varies.
  • Dukascopy is the most common free source for long tick histories with bid and ask; tools exist to download and convert it for MT4 and MT5.
  • Check time zone, daylight saving handling and gaps before backtesting; bad data creates fake edges.
  • Tick "volume" in spot forex is a count of price updates, not traded volume.

What tick data is and why it matters

A tick is a single price update: a timestamp, a bid, an ask and sometimes a volume or update count. Bar data (one-minute, hourly, daily) compresses many ticks into open, high, low and close values. For most swing strategies, one-minute bars are enough. Tick data becomes important when your EA:

  • uses stops or targets small enough to be hit within a single one-minute bar,
  • depends on the spread at the moment of entry,
  • trades around news or the daily rollover, when spreads change rapidly,
  • scalps for a few pips, where the order of the high and low within a bar decides the result.

MT4's standard tester generates artificial ticks from bar data, which can produce fills that never existed. Our explainer on 99.9% tick data backtesting in MT4 covers why serious MT4 users import real ticks. MT5 can test on real ticks natively when the broker provides them, as described in how to backtest an EA in MT5.

Free sources of historical forex tick data

SourceWhat you getBid and ask?StrengthsLimitations
Dukascopy historical data feedTick data for many FX pairs, metals and CFDs, going back many years for majorsYesLong history, granular, widely supported by conversion toolsOne bank's ECN feed; download via its website or third-party tools can be slow for large ranges
TrueFXMonthly tick files for a set of major and cross pairsYes (top of book)Simple CSV format, free with registrationFewer instruments; one aggregated institutional feed
HistData.comOne-minute bars and tick files for many pairs, in several platform formatsTick files include bid and askConvenient monthly files, formats for MetaTrader and other toolsSource and gaps should be checked; time zone is fixed (no daylight saving) and must be converted
Your broker's MT5 serverReal ticks recorded by the broker, downloaded automatically by the MT5 testerYesClosest match to the prices and spreads you will tradeHistory depth varies by broker and symbol, sometimes only a few years
Broker APIs (for example OANDA)Candles down to a few seconds, rather than raw ticksBid, ask and mid candlesProgrammatic access, matches that brokerNot true tick-by-tick history; rate limits apply

Availability, registration requirements and terms of use can change, so check each provider's current site. Most free data is licensed for personal use; redistributing it or using it in a commercial product may not be allowed.

Dukascopy in practice

Dukascopy is a Swiss bank, and its historical feed is the default free tick source for a large share of retail algorithmic traders. You can download data through its website's historical data tools or its JForex platform, but most people use third-party tools that batch the download and export to CSV or MetaTrader formats. Open source command-line downloaders exist in several languages, and desktop tools such as Tickstory and StrategyQuant's QuantDataManager have historically offered free or low-cost tiers for this purpose. Expect large files: a single year of EUR/USD ticks contains tens of millions of rows and can run to gigabytes as uncompressed CSV.

Using MT5's own history

In MT5, choosing "Every tick based on real ticks" in the Strategy Tester makes the terminal download the broker's recorded ticks for the test period. That is the most realistic option for an EA you will run on that same broker, because it uses that broker's spreads and quotes. The limitation is depth: if the broker only stores a few years, your test cannot go further back. Running a test across two or three brokers' histories is a useful robustness check.

Most retail traders do not need to pay for raw data. Paid options make sense when you need longer or cleaner history, data from multiple sources, a ready-made MetaTrader workflow, or data you are licensed to use commercially.

CategoryExamplesTypical use
MetaTrader tick toolsTick Data Suite, paid tiers of TickstoryRun MT4 backtests with real ticks and variable spread from imported data
Backtesting platforms with bundled dataForex Tester, Soft4FX and similarManual and automated replay with data supplied as part of a subscription
Institutional vendorsLSEG (formerly Refinitiv) Tick History, TickData and similar specialistsMulti-source, long, cleaned histories for research teams; priced for professionals
Exchange-traded FX futures dataCME currency futures tick data from data vendorsReal traded volume and a centralised order book, useful as a cross-check on spot

Our comparisons of backtesting software and of Forex Tester, Soft4FX and TradingView cover which tools include data and which expect you to supply it. Prices for paid data vary widely; check current pricing directly with the vendor.

Data quality: the checks that matter

Downloading data is easy. Making sure it will not mislead you takes more care. Run these checks before any serious backtest.

Time zone and daylight saving

Sources timestamp data differently: some in UTC, some in a fixed offset with no daylight saving, and many brokers use a server time of UTC+2 in winter and UTC+3 in summer so that daily candles close at 5 pm New York time. If your EA uses session times, such as a London breakout, a one-hour error moves every entry. Convert everything to one reference before testing, and confirm by checking that the weekly open and known news spikes (for example a US non-farm payrolls release) land at the right times. The session time converter helps when lining up sessions across zones.

Gaps and outliers

Look for missing hours on weekdays, duplicated rows and spikes where one tick sits hundreds of pips away from its neighbours. A simple script that flags gaps longer than a few minutes during active sessions, and price jumps beyond a threshold, catches most problems. Decide whether to remove, fill or keep outliers, and be consistent.

Spread realism

Compare the spread in the data with the spread at your broker. A bank ECN feed might show EUR/USD spreads well below a standard retail account's. If your account adds a markup or charges commission, add that cost in the tester; otherwise the backtest will flatter the strategy.

Volume fields

Spot forex is decentralised, so there is no consolidated traded volume. "Volume" in most free tick data is either the number of price updates or the liquidity quoted by one provider. Strategies that depend on volume should be treated with extra caution, or tested on exchange-traded currency futures where real volume exists.

CheckHow to do itWhat a problem looks like
Time zoneFind a known event and see where it landsNFP spike at 12:30 when it should be 13:30 or 14:30 in your reference
Weekend boundariesPlot the first and last ticks of each weekTicks on Saturday, or Sunday open at the wrong hour
GapsFlag gaps over 5 minutes during London and New York hoursMissing blocks on ordinary weekdays
OutliersCompare each tick with a rolling medianSingle ticks far from surrounding prices
SpreadCompute average spread by hourSpreads much lower than your broker's, or zero
Cross-source agreementCompare one-minute closes from two sourcesFrequent differences of more than a pip or two on majors
Better data does not create an edge. Clean tick data removes one source of false confidence, but a strategy can still be curve-fitted to any dataset, however accurate. See curve fitting and over-optimisation before trusting a result. Also respect each provider's terms: most free data is for personal use only. And whatever your backtest shows, leveraged forex trading carries a high risk of loss, and most retail accounts lose money.

Getting tick data into your platform

MetaTrader 5

MT5 supports custom symbols. You can create a custom symbol, import ticks or bars from CSV in the format the import dialog expects, and then backtest an EA on it with real ticks. This lets you test on Dukascopy or other external data instead of, or as well as, your broker's history. Set the custom symbol's contract size, digits, swap and commission to match your broker, or the results will not translate.

MetaTrader 4

MT4's tester cannot use real ticks directly. Third-party tools either generate special tick files the tester reads or hook into the tester to feed it imported ticks with variable spread. Expect some setup effort, and keep the terminal's automatic history updates from overwriting imported data.

Python and other research tools

For research, loading CSV or compressed binary tick files into pandas or a columnar format such as Parquet is usually simplest. Resample ticks to bars where you do not need full resolution; it saves memory and time. If you work with a broker API instead, our guide to the OANDA REST API in Python shows how to pull high-resolution candles programmatically.

How much history do you need?

Enough to include different market conditions and to give your strategy several hundred trades. For a short-term EA on a major pair, five to ten years of tick data covers several volatility regimes, including low-volatility periods and periods of rapidly changing interest rates. Reserve the most recent portion as out-of-sample data, and consider walk forward testing across the full history. Older data is not always better: market structure, spreads and liquidity have changed, so a decade-old period may reflect conditions you will never trade in.

Frequently asked questions

Where can I get free forex tick data?

The most commonly used free sources are Dukascopy's historical data feed, TrueFX (free with registration) and HistData.com. MetaTrader 5 also downloads your broker's real tick history automatically when you backtest with real ticks. Each source reflects a different provider's prices, so check time zones and spreads, and read the terms of use before relying on it.

Is Dukascopy tick data good enough for backtesting?

For many retail strategies, yes. It offers long histories with bid and ask prices and is widely supported by conversion tools. It is still one bank's feed, so spreads may be tighter than a standard retail account and occasional gaps or spikes exist. Clean the data, add your broker's costs, and compare results with your broker's own history.

How big are forex tick data files?

Large. A single year of EUR/USD ticks can contain tens of millions of rows and run to gigabytes as uncompressed CSV, and busier periods contain more ticks. Store data compressed or in a columnar format such as Parquet, and download only the pairs and years you need. Multi-pair, multi-year collections can easily reach tens of gigabytes.

Why do backtest results differ between tick data sources?

Because each source records a different provider's quotes. Spreads, the exact timing of price changes, the handling of news spikes and gaps all vary. Short-term strategies are especially sensitive. If results change dramatically between two reasonable sources, the strategy may depend on data quirks rather than a genuine market effect.

Can I use tick data in MetaTrader 4?

Not natively. MT4's tester models ticks from bar data. To use real tick data, traders use third-party tools that generate tick files for the tester or feed it imported ticks with variable spread. MT5 supports real ticks and custom symbols natively, which is one reason many algorithmic traders have moved to it.

Does forex tick data include real volume?

Not in the sense of total market volume. Spot forex trades over the counter across many venues, so there is no consolidated volume figure. Tick volume in most datasets counts price updates or reflects one provider's quoted liquidity. If you need real traded volume, exchange-traded currency futures data is the usual alternative.

This article is general information, not personal financial advice. Figures such as spreads, fees, leverage and rules change; confirm them with the provider and check the provider is authorised for your country of residence.