Historical Data For Backtesting
Customers often ask why a DAX/GER40 chart only shows one to three months of data, or where to get more data for BananaEA backtests. The short answer is:
Use the broker-server history for the exact MT4 symbol and server you intend to trade whenever possible. Generic DAX, Germany 40, or third-party data can be useful for research, but it will not be identical to your broker's CFD chart.
For Pepperstone MT4 users, the most relevant data source is the Pepperstone MT4 trade server history for the exact symbol shown in Market Watch, such as GER40, GER40.r, GER40.cash, or another account-specific name.
Why The Chart Only Shows A Short Period
MT4 does not always load the full available history immediately. A new terminal may only show recent bars until you request more chart history.
Common reasons:
- The terminal has not downloaded older bars yet.
Max bars in historyorMax bars in chartis set too low.- You are logged in to a different broker server, account type, or symbol variant.
- The broker server does not provide more history for that symbol/timeframe.
- Imported or downloaded history does not match the broker symbol being tested.
Best Source: Broker MT4 Server History
Use this process first, especially for DAX/GER40 backtests:
- Log in to the correct MT4 account and broker server.
- Open
Market Watchand confirm the exact symbol name. - Go to
Tools > Options > Charts. - Increase
Max bars in historyandMax bars in chart. - Restart MT4.
- Open the DAX/GER40 chart, starting with
M1. - Press
Homerepeatedly or scroll left until MT4 stops loading older bars. - Repeat for the timeframes you need, or rebuild higher timeframes from clean M1 data.
For BananaEA testing, M1 data is the most useful base because higher timeframes can be built from it. If you only test H1, still check that the lower-timeframe history is available and clean.
If the broker server stops loading after one to three months, MT4 cannot invent broker-specific history. Contact the broker and ask whether more MT4 bar data is available for the exact symbol and server.
Useful support request wording:
Please provide historical MT4 bar data for [exact symbol] on [exact server],
preferably M1 OHLCV from [start date] to [end date].
Record whether the data came from a live or demo server, the account type, the symbol name, and the broker server timezone.
Be Careful With History Center Download
MT4 has Tools > History Center, and it supports downloading, importing, and exporting historical data. However, MetaTrader's own documentation warns that data downloaded from the historical data server can differ from the data stored on the broker's trade server.
For BananaEA, treat History Center downloads as a backup option, not the main source for broker-specific validation.
| Source | Useful For | Limitation |
|---|---|---|
| Broker-server MT4 history | Closest match to the chart you trade | Limited to what the broker server provides |
| MT4 History Center download | Filling gaps or basic checks | May not match broker-specific CFD history |
| Dukascopy or Tickstory | Longer research and stress testing | Not Pepperstone or your broker's feed |
| Official DAX/index data | Reference price direction | Not broker CFD pricing, spread, or MT4 timestamps |
| Public charting sites | Rough visual comparison | Usually not suitable for EA validation |
Third-Party Data Sources
Third-party data can help when you need a longer research sample, but it must be labelled clearly.
Dukascopy Or Tickstory
Dukascopy lists a Germany 40 Index CFD instrument as DEU.IDX/EUR, and Tickstory is commonly used to export Dukascopy data into MT4-friendly formats.
This can be useful for broad stress tests, but it is not Pepperstone data and not guaranteed to match any MT4 broker. Before using it, check:
- symbol name
- digits and point size
- spread assumptions
- contract size
- trading hours
- broker server timezone
- session gaps and holidays
Official DAX Or Public Website Data
Official exchange/index data, Yahoo Finance, Investing.com, and TradingView can be useful for broad comparison. They are not a substitute for MT4 broker CFD history because they usually do not reproduce broker spread, bid/ask behavior, CFD session handling, tick volume, or server timestamps.
Sharing MT4 History With Another User
Technically, MT4 history can be shared. CSV is usually easier to audit than copying MT4 .hst files.
Check the broker's current data and platform terms before redistributing broker price data. Do not publicly package or sell broker historical data unless the broker or data owner permits it.
Recommended Method: CSV Export
On the source MT4 terminal:
- Open
Tools > History Centeror pressF2. - Select the exact symbol and timeframe.
- Click
Export. - Save the file as CSV.
- Label the file with broker, server, symbol, timeframe, date range, and timezone.
Example filename:
Pepperstone-Live01_GER40_M1_2024-09-01_to_2026-05-01_MT4-server-time.csv
A typical MT4 bar file contains:
YYYY.MM.DD,HH:MM,Open,High,Low,Close,Volume
In MT4, chart volume is normally tick volume, not official exchange volume.
On the receiving MT4 terminal:
- Back up existing history first.
- Open
Tools > History Center. - Select the matching symbol and timeframe.
- Click
Import. - Confirm separator, date/time format, and volume import.
- Restart MT4.
- Verify the first and last dates on the chart.
The receiving user should import into the same symbol name where possible. A file exported for GER40 may not behave correctly if imported against GER40.r, GER40.cash, or another broker-specific symbol without careful adjustment.
Advanced Method: .hst Files
MT4 stores separate .hst files by symbol and timeframe inside the terminal data folder.
Typical location:
File > Open Data Folder > history > [server name]
Example files:
GER401.hst
GER405.hst
GER4015.hst
GER4060.hst
GER40240.hst
GER401440.hst
The number is the timeframe in minutes:
| File suffix | Timeframe |
|---|---|
1 | M1 |
5 | M5 |
15 | M15 |
30 | M30 |
60 | H1 |
240 | H4 |
1440 | D1 |
Only copy .hst files while MT4 is fully closed, and always back up the recipient's existing history first. CSV is usually safer because it is easier to inspect, transform, and re-import.
BananaEA Backtesting Rules
When using imported or shared data with BananaEA:
- Do not claim a third-party dataset is broker-specific unless it came from that broker server.
- Keep broker, server, symbol, timeframe, date range, and timezone in your notes.
- Use realistic spread and commission assumptions in Strategy Tester.
- Check for missing bars, incorrect prices, session gaps, and sudden jumps.
- Separate chart-history validation from live execution validation.
- Forward test on demo before using settings live.
M1 OHLCV history can improve chart consistency, but it does not fully reproduce live trading. It normally does not include a true historical ask stream, variable spread, slippage, broker rejections, liquidity changes, or news execution behavior.
If a setup depends heavily on spread, scalping, precise intrabar movement, stop placement, session gaps, or news spikes, historical bar data alone is not enough to prove the setup.