Why backtests differ from live trading
Spread, slippage, commission, time zones, overfitting: seven reasons and a checklist.
By default MT4 guesses how price moved inside a bar. To use real ticks instead, you need two kinds of files: .hst and .fxt.
Updated 2026-12-02
.fxt file, and the tester follows those ticks.| Model | Where prices come from | Good for |
|---|---|---|
| Every tick | Worked out from all smaller timeframes available, the smallest first | Closest to real prices, if the history is complete |
| Control points | Worked out from the next smaller timeframe | A rough look |
| Open prices only | Only the open of each bar | EAs that trade only on finished bars |
MT4's stored history holds only bid prices. The ask comes from the spread: the spread at the moment the test starts, or the number you enter under Spread. One spread is used for the whole test. See MetaTrader 4's official documentation.
| File | What it holds | Who reads it |
|---|---|---|
| .hst | Bars of one symbol and one timeframe | Charts and the History Center |
| .fxt | Test ticks of one symbol and one timeframe | The Strategy Tester |
The two must match. If the bars on the chart differ from the test ticks, the report shows mismatched chart errors. So one import should write both kinds of files from the same data.
EURUSD.r, so that it appears in the tester..fxt file.Files that get replaced are backed up first, and you can undo the import. The illustrated steps are in the help center.
MT4 works out modelling quality only for test files it builds from bars itself. It does not do so for a test file you put there, so it shows n/a.
Some tools show a high number here because they start MT4 with their own program and change how it handles test files while it runs. That number does not make a test more accurate. What matters is that the tick count is right, and that the spread and commission are like those of a real account.
Why do backtests differ from live trading? Read this guide.
Guides
Spread, slippage, commission, time zones, overfitting: seven reasons and a checklist.
UTC versus GMT+2/+3, how daylight saving works, and how to find your broker's time.
Code to read a CSV, measure spread, build bars, convert time zones and handle large files.
Download the client and, the first time you open it, click “Try free for 7 days” in the setup guide: no sign-up and no payment. Choose one symbol and download its last 7 days of data; every export format and one-click import are available. Once you're sure it suits you, choose a single symbol or all markets.