MT4 Historical Data Import Complete Tutorial|Improve EA Backtesting Accuracy

Want to make EA backtesting closer to live trading performance? This tutorial will guide you step-by-step on how to import high-quality historical data into MT4, including Tick data, CSV format settings, import steps, and common error troubleshooting, helping you improve backtest reliability and build trading confidence.
  • This website uses AI-assisted translation. If you have any feedback or suggestions, feel free to contact us. We look forward to receiving your valuable feedback! [email protected]
This website uses AI-assisted translation. If you have any feedback or suggestions, feel free to contact us. We look forward to receiving your valuable feedback! [email protected]

The Fundamental Impact of Historical Price Data on Backtesting Simulation 

In the practice of algorithmic trading, performing backtesting is an indispensable step.

Among all the elements of backtesting, the quality of historical price records plays a decisive role. This is because any Automated Trading System (EA) or trading strategy’s buy and sell decisions are entirely triggered based on historical price information.

If inaccurate price data is used during backtesting, regardless of whether the simulation results show profit or loss, the conclusions may lack real reference value, thus rendering the entire backtesting process meaningless.

Therefore, before starting backtesting, the primary task is to prepare high-quality historical price data. Only then can we truly rely on backtesting results to evaluate the effectiveness of a strategy.

How to Obtain Built-in Historical Data in the MT4 Platform 

MetaTrader 4’s backtesting function supports three different price data precision modes for running simulations, which are: 
  1. Open price only
  2. Using control points
  3. Based on every real-time price tick

In the early stages of strategy development, to quickly overview the strategy’s performance, you can choose the faster backtesting speed “control points” mode.

However, after finalizing the strategy parameters, you should use the most accurate “every real-time price tick ” mode for a detailed backtest to confirm all trading details.

As for the “open price” option, due to its overly coarse data and very low accuracy, it is almost worthless as a reference and is rarely used.

Regardless of which mode you choose for backtesting, you must first have the corresponding historical data records. In the MT4 backtesting process, to obtain the broker-provided internal historical price data, you need to download it first from the platform’s toolbar.

Operation path: Tools > History Center 

Detailed Download Steps 

After clicking into the “History Center,” you will see a list of all trading instruments provided by the broker.

In the History Center window, find the instrument you intend to backtest, double-click the instrument name, and the system will expand to show all available timeframes (such as M1, M5, H1, D1, etc.).

Next, you need to double-click each desired timeframe one by one, then click the “Download ” button at the bottom of the interface, and patiently wait for the download progress bar to complete.

Confirmation and Recommendations After Data Download 

When the data for a certain timeframe is successfully imported, its corresponding icon will turn green.

It is recommended to download data for every timeframe to ensure a more complete overall price history record.

After you have downloaded the required historical price data for all target backtest instruments, you can start the backtesting operation.

However, it should be noted that directly using broker-provided historical data may carry the risk of incompleteness. Some brokers’ data records may be relatively complete, but others may be quite sparse or of poor quality.

The reason is that brokers’ main responsibility is to provide trade execution services, not to specialize in storing and maintaining historical data.

Therefore, to significantly improve backtesting accuracy, many traders choose to use data provided by third-party companies specializing in historical data services.

Ways to Obtain High-Quality 99.1% Tick Precision Historical Data for MT4 

In the market, the commonly used professional software for obtaining high-precision forex historical price data mainly includes: 
  • Tickstory 
  • Tick Data Suite 
Compared to these, Tickstory has some inconveniences in use. For example, it usually requires downloading historical data as separate CSV files first, then manually importing them one by one into the corresponding MT4 instruments.

Additionally, the historical data file for a single instrument can be very large, and handling multiple instruments’ data will occupy a large amount of local hard drive space.

In view of this, if you are an active MT4 algorithmic trading user, the author tends to recommend using the software Tick Data Suite.

Introduction to Tick Data Suite (TDS) 

Tick Data Suite (abbreviated as TDS) is not a free tool, but if you plan to deeply develop MT4 EA algorithmic trading, the author strongly recommends you invest in purchasing and using it.

You can start by trying the trial version of Tick Data Suite, which usually has a 14-day trial period.

Go to the official website of Tick Data Suite (https://eareview.net/tick-data-suite), click the “TRY FREE FOR 14 DAYS ” link, fill in your email address, and they will send you a trial license code.



Then, click the “Download ” page to download the latest version of the TDS software.

After downloading, follow the standard installation process by clicking “Next ” until installation is complete.

Tick Data Manager After Installation 

After installation, an application icon named “Tick Data Manager ” (with a bug-shaped logo) will appear on your desktop.

Launch this program, and you need to download the historical price data for your target instruments. The operation interface is roughly as shown in the picture.

When downloading for the first time, it is recommended to click the settings button behind (the three dots circled in red in the picture) to set the start and end date range for the data you want to download.

TDS Download Settings and Technical Advantages 

It is a good habit to preset the date range here; you can choose to start from 2008 or 2010.

If you do not make a selection and directly click the download button (the arrow icon behind), the system will default to downloading from 2003.

However, market data that is too old has relatively low reference value for current backtesting, so it is usually unnecessary to download data that far back.

TDS reportedly uses some kind of mirroring technology (the author has not deeply researched the specific technical details), which significantly benefits users by not excessively occupying your computer’s hard drive space when downloading and using data, eliminating the need to download and store huge raw data files.

Moreover, TDS updated its download technology in 2022, making the download speed extremely fast, greatly improving efficiency compared to versions from several years ago.

Integration of TDS with MT4 Backtesting Interface 

After the data is downloaded through Tick Data Manager, return to the MT4 Strategy Tester interface, where you will notice two new option boxes in the upper right corner: 
One is “Use tick data,” which must be checked for your backtest to call the high-quality historical data provided by TDS;
The other is “Tick data settings,” which opens an advanced settings window mainly used to confirm that TDS has successfully read your latest downloaded price data.

Advanced Backtesting Settings of TDS 

Inside the “Tick data settings” window, you can also perform more detailed configurations, such as setting the server’s GMT timezone, simulated floating spread, and slippage.

These rich features partially compensate for MT4’s native backtesting limitation of only using fixed spread.

The author personally usually does not specifically set floating spread and slippage when backtesting long-term strategies because long-term strategies are less sensitive to these two factors.

However, if you trade short-term strategies, the impact of floating spread and slippage will be very significant. Enabling these two features in TDS for backtesting will yield simulation results closer to real trading environments.

Achieving High-Quality Backtesting Using TDS 

After enabling TDS, MT4 can easily perform backtests with model quality up to 99.91% tick precision.

Only backtest reports generated based on such high-quality data have high reference value and can more realistically reflect the historical performance of strategies.

Tick Data Suite Payment Plans 

Tick Data Suite offers three payment plans to choose from: 
  • Annual subscription
  • Monthly subscription
  • Lifetime license
For beginners just starting with algorithmic trading, purchasing the annual plan is a cost-effective compromise.

When you later confirm long-term continuous use of EA trading, you can consider switching to the lifetime plan.

Notes on Using TDS License Codes 

After successful purchase, Tick Data Suite will also send the license code (key) to you via email.

One important point to note is: one license code can only be activated and used on one computer at the same time.

Although you can change the computer you use, after each change, the license code will be locked to the current computer for 14 days.

In other words, if you enter and activate the license code on one computer, and then want to switch to another computer, you need to wait at least 14 days.

Summary of MT4 Historical Price Data Preparation 

In summary, if you are a beginner just starting with EA and only want to preliminarily understand and experience backtesting, then directly downloading and using the free historical price data provided internally by brokers can meet basic needs.

However, if your goal is actual trading using EA, then obtaining historical price data that can produce backtesting results with reliable reference value becomes crucially important.

Although TDS requires a paid purchase, the author believes the benefits it brings far outweigh its cost: 
  • Saves computer space
  • Convenient and fast downloads
  • Direct compatibility with MT4 interface
  • No need for manual import, etc.

It can be said that for an algorithmic trader using the MT4 platform, TDS is an essential tool.
If you found this article helpful, feel free to share it with your friends.
Let more people learn about Forex trading knowledge together!