How to Import Dukascopy Historical Data into MT4

MT4 and MQL4 technical notes eyecatch image with a degu mascot, code panel, and trading chart background
スポンサーリンク

Dukascopy historical data is often used by MT4 traders who want more control over the data used in EA backtesting. It can be useful when the default MT4 history is too short, inconsistent, or does not cover the period you want to test.

This guide focuses on the manual historical-data workflow: prepare the Dukascopy data, choose the symbol and time settings, import it into MT4, create other timeframes if needed, and confirm that Strategy Tester is actually using the imported history.

Quick answer:
To use Dukascopy historical data in MT4, prepare the data for the symbol and period you want to test, keep the time zone consistent, import the file through Tools > History Center, create any required higher timeframes, and then run a short Strategy Tester check inside the imported date range.
Want an easier tick-data workflow?
If you prefer a tool that can download Dukascopy tick data and export HST/FXT files directly for MT4, we also tested Tickstory Lite, the paid version, and Advanced Tester. In our test, Advanced Tester reached 99.90% modeling quality.

When Dukascopy Historical Data Is Useful for MT4 Backtesting

Dukascopy historical data is useful when the quality or length of the existing MT4 history is not enough for your test. For example, you may want to test an EA over a longer period, compare results across different data sources, or avoid relying only on the history downloaded automatically by a broker terminal.

SituationWhy Dukascopy Data May Help
Your MT4 history starts later than expectedYou can prepare a separate data range for the period you want to test.
Backtest results change after downloading historyUsing a controlled data source makes different tests easier to compare.
You want to test an EA with time-based rulesYou can check the data time zone before comparing it with broker server time.
You want to compare multiple data sourcesDukascopy gives you another historical-data environment instead of relying on only one broker history.
Important:
Better historical data does not make a strategy profitable by itself. Spread, commission, slippage assumptions, time zone differences, and EA logic can still change the result.

What to Check Before Preparing Dukascopy Data

Before importing external data into MT4, decide exactly what you want to test. Changing the historical-data setup after several backtests can make the results difficult to compare.

  • Symbol, such as EURUSD, USDJPY, GBPUSD, or XAUUSD.
  • Timeframe used by the EA and Strategy Tester.
  • Date range you want to test.
  • Whether the EA depends on trading hours, session filters, or daily reset logic.
  • Whether your workflow uses candle data or more detailed tick data.
  • How spread will be handled in Strategy Tester.
Before replacing history:
If you already have useful MT4 history in the terminal, consider backing up the data folder or using a separate MT4 installation for historical-data experiments. This keeps your normal trading or development environment separate from imported-history tests.

Choose the symbol, timeframe, date range and time zone carefully

The most important part is not the exact position of a download button. It is choosing settings that match the MT4 backtest you intend to run.

SettingWhat to Check
SymbolUse the same market you will test in MT4. Be careful with broker suffixes, metals, CFDs, and broker-specific symbol names.
TimeframeM1 data is commonly used as a base because higher MT4 timeframes can be generated from it.
Price / data typeUnderstand whether your source file contains candle, bid, ask, or tick-level information before using it in a backtest workflow.
Date rangeUse a range that fully covers the Strategy Tester period. Add extra history before the test start if the EA needs indicator warm-up data.
Weekend dataCheck how inactive-market periods are handled because unusual flat bars can affect some indicators or visual checks.
Time zoneUse a consistent time reference and compare it with the MT4 broker server time before trusting time-filter tests.

How to Prepare Dukascopy Historical Data for MT4

Download the historical period you need

Use the Dukascopy historical-data download area or the data tool you normally use to prepare the symbol and period required for your test.

The exact screen layout and available export options can change over time, so this guide focuses on the settings and MT4 workflow rather than a single version of the download screen.

Keep a record of:

  • Symbol
  • Date range
  • Time zone
  • Data type
  • Timeframe
  • File format
Keep the workflow reproducible:
Write down these settings for each test. If the same EA produces a different result later, you can check whether the historical-data conditions changed.

Save the data in a format your MT4 workflow can use

The exact file format depends on the Dukascopy download method and the conversion or import workflow you use. If the data is saved as CSV or another intermediate format, confirm that the columns, date format, time format, and price fields match the MT4 import or conversion process.

Do not assume that a file is correct only because the download completed successfully. Before importing it, check the symbol, first date, last date, and timeframe.

  • Use clear file names that include symbol, timeframe, date range, and time zone.
  • Keep the original downloaded file separate from converted files.
  • Do not mix data from different time zones without documenting the difference.
  • If you convert CSV data, verify several rows before using it for a long backtest.

How to Import Dukascopy Historical Data into MT4

Import the data through MT4 History Center

In MT4, first open Tools > Options > Charts and check Max bars in history and Max bars in chart. If these values are too small, long historical periods may not be handled as expected.

Then open Tools > History Center, select the target symbol and timeframe, and use the Import function to load the prepared historical-data file.

  1. Open MT4.
  2. Go to Tools > History Center.
  3. Select the target symbol.
  4. Select the timeframe, usually M1 when using M1 as the base history.
  5. Click Import.
  6. Select the prepared historical-data file.
  7. Check the preview, date range, and price columns.
  8. Apply the import and close History Center.
  9. Restart MT4 if the chart or Strategy Tester does not recognize the new history immediately.
Do not skip the preview:
An incorrect date format or column order can still produce data that looks valid at first. Confirm the beginning and end of the imported period before running a long test.

Create the other timeframes you need

Many manual MT4 historical-data workflows use M1 data as the base. If you want to test M5, M15, H1, or another timeframe, create or verify that timeframe before running Strategy Tester.

A common MT4 method is to use a period converter script. The general process is to place the script in MQL4/Scripts, refresh the Navigator, open the M1 chart, and run the converter to generate higher-timeframe history.

Verify the generated timeframe:
Open the target timeframe chart and check both the beginning and end of the intended test period. If the chart history starts later than expected, Strategy Tester may also start later.

Confirm that Strategy Tester is using the imported history

Run a short validation test before trusting a full backtest. Choose a date range you know exists in the imported data and confirm that Strategy Tester runs normally.

  • Select the correct MT4 symbol.
  • Select the timeframe you imported or generated.
  • Keep the Strategy Tester date range inside the imported history.
  • Check the model and spread settings.
  • Open the Journal and Experts tabs if the test does not run.
  • Confirm that the report begins around the intended test date.

If Strategy Tester reports no history data, starts from a later date, or creates an empty report, the imported history may be incomplete or the selected symbol/timeframe may not match the data.

Time Zone Differences Can Change EA Backtests

Dukascopy data may use a different time reference from your MT4 broker server. For example, prepared data may not line up directly with a broker chart that uses GMT+2, GMT+3, or another server-time configuration.

This matters most when the EA uses trading-hour filters, session rules, daily resets, or higher-timeframe calculations.

EA BehaviorWhy Time Zone Matters
Trades only during London or New York hoursThe EA can trade a different session if the historical-data time does not match the expected server time.
Closes trades before rolloverThe effective close time may shift when the day boundary changes.
Uses daily highs, lows, or reset timesDaily candles and indicator values can change when the trading day begins at a different hour.
Uses multi-timeframe indicatorsHigher-timeframe candles can be built differently when the underlying time reference changes.
Be careful with time filters:
If an EA uses hour-based conditions, understand both the historical-data time zone and the MT4 server time before comparing performance.

Common Dukascopy and MT4 Import Mistakes

MistakeWhat Can HappenHow to Avoid It
Importing data into the wrong symbolStrategy Tester continues using old or missing data.Check broker symbol names and suffixes carefully.
Testing outside the imported date rangeThe test starts late or does not run.Compare the imported first/last dates with the Strategy Tester range.
Using a different timeframe from the available historyThe selected timeframe may not have usable data.Import or generate the timeframe you actually test.
Ignoring spread assumptionsResults can look better or worse than expected.Use a spread assumption appropriate for your test.
Forgetting the time zone differenceSession filters and daily rules behave differently.Compare data time, broker server time, and EA time logic.
Trusting one historical-data setup immediatelyThe result may reflect one data environment rather than robust EA behavior.Keep conditions consistent and compare results when needed.

Manual Dukascopy Import or Tickstory?

Both approaches can be useful, but they solve slightly different problems.

MethodBest Use
Manual Dukascopy workflowUseful when you want direct control over the historical-data file, import process, and MT4 History Center workflow.
TickstoryUseful when you want a more integrated tick-data workflow that can export HST/FXT files and work with Advanced Tester.

We tested Tickstory separately using the same general MT4 backtesting workflow. The free Lite version can be used to learn the process, while the paid version can use dedicated data servers for faster long-period exports.

In our test, Tickstory with Advanced Tester reached 99.90% modeling quality.

Want to use Tickstory instead?
Our hands-on guide covers Tickstory Lite installation, MT4 broker configuration, symbol mapping, time zone settings, paid plans, dedicated data servers, and Advanced Tester.

When to Analyze the Result with Quant Analyzer

Quant Analyzer is useful after the backtest itself is valid. Before loading a report into an analysis tool, confirm that Strategy Tester used the intended historical data, the test period is correct, and trades were generated as expected.

Once the report is reliable, Quant Analyzer can help you review hourly performance, monthly performance, large losses, drawdown concentration, and other patterns that are difficult to see in the standard MT4 report.

Recommended workflow:
Prepare the historical data → run a short validation test → run the full Strategy Tester backtest → export the report → analyze the result with Quant Analyzer.

Summary

  • Dukascopy historical data is useful when MT4’s existing history does not cover the period or testing environment you need.
  • Choose the symbol, timeframe, date range, data type, and time zone before preparing the file.
  • Import prepared history through MT4 History Center and verify the preview before accepting it.
  • If M1 is used as the base data, create or verify the higher timeframes required by the EA.
  • Always run a short Strategy Tester validation before trusting a long backtest.
  • Time zone differences can materially change EAs that use trading-hour or daily-session logic.
  • For a more integrated tick-data workflow, Tickstory can export MT4 data and work with Advanced Tester.
  • Use Quant Analyzer only after the historical-data setup and MT4 backtest have been validated.

Related MT4 Backtesting Guides

Back to MT4/MQL4 Technical Notes

タイトルとURLをコピーしました