Your First Reproducible MT5 Backtest | Free Academy

TopTradingEAs Free Academy · Course 5

Your First Reproducible MT5 Backtest

Prepare, run, repeat and document one Expert Advisor test. Finish with a research record you can inspect again, rather than only a profitable screenshot.

Learning path: Test and evaluate · Prerequisite: Course 2: MT5 workspace · Format: free reading lessons and practical tasks.

Before you start

You need MT5 desktop, a permitted EA package and the instructions for that exact release. If you do not have an EA yet, complete the report-reading tasks with our supplied examples and leave the running-test tasks open. Reading is free; an EA or builder licence is separate. Do not claim a test has been reproduced unless you actually ran it with the necessary inputs.

This course reuses established articles. Their previous/next links follow the introductory course; return here for this specialist task sequence. Exercises use historical research and demo observation. Many examples use XAUUSD, so verify the actual contract and settings for any other market.

Broker and account context

The broker feed, symbol specification, account denomination and execution assumptions belong in your test record. Compare requirements with our broker review before selecting an environment. FxPro Nano availability and terms depend on region and account eligibility; check them directly. A cent denomination does not establish contract size or reduce the risk of a given position by itself. For example, 1,000 USC denotes USD 10; it does not define the lot exposure.

Tickmill is a separate broker option; do not assume it offers the same Nano account. These are affiliate links and we may receive compensation. Broker choice does not make an EA profitable.

Your practical test workflow

  1. Specify the test before running it
  2. Identify the data and modelling assumptions
  3. Run one fixed baseline
  4. Repeat before changing the setup
  5. Read risk and sample coverage before profit
  6. Make one controlled execution experiment
  7. Preserve a validation boundary and plan demo observation

1. Specify the test before running it

Outcome: a configuration record with no guessed inputs.

Read Gold EA Set Files on MT5: Preset Versioning and Change Control and XAUUSD Broker Specifications: A Gold EA Compatibility Checklist. Choose one legitimately obtained MT5 EA whose requirements you can document. Record its exact build and preset, including whether recovery, automatic sizing or a session filter is enabled. A product name alone is insufficient.

Write one research question: for example, “Can I repeat this documented configuration and identify how it closes losing exposure?” Choose the historical interval before looking at the result. Use the symbol, timeframe and account type required by the strategy; this course does not supply universal Gold settings.

Save: a versioned configuration sheet and a copy of the permitted input preset. Keep licence keys and account credentials out of any shared record.

Previous task · Test record · Next task

2. Identify the data and modelling assumptions

Outcome: an explicit record of what market history the test used.

Read Does 100% History Quality Make an MT5 Backtest Reliable?. Record the broker/server, full symbol name, terminal build, requested dates and modelling mode. Check the journal for missing history, initialization failures and other warnings. Note any difference between requested dates and the period actually covered by trades.

MetaQuotes documents broker real-tick data and generated tick modes. Real-tick testing can still generate ticks where minute bars lack tick data. Keep that limitation in your record; a mode label is not proof that every simulated execution matches live trading. See MetaTrader’s real and generated ticks reference.

Save: modelling mode, available coverage, quality fields and relevant journal messages. If data or dependencies are missing, diagnose the issue before interpreting profit.

Previous task · Test record · Next task

3. Run one fixed baseline

Outcome: a report linked to one known setup.

Follow How to Backtest an XAUUSD EA on MT5 in 2026. Open MT5 Strategy Tester and select the intended EA, symbol, timeframe and dates. Check deposit amount and currency, leverage, input values and execution assumptions. Begin with a single fixed configuration rather than searching for the most attractive settings.

Keep the test separate from live deployment. If the EA places no trades, inspect initialization and logs using Gold EA Not Trading on MT5? An XAUUSD Troubleshooting Guide. Zero trades can be a valid observation or a setup problem; changing multiple rules until trades appear would create a different experiment.

Save: the report, graph, input preset and relevant log. Give them one run ID such as EA-version-symbol-period-baseline-01. Retain the original output, including errors and losing trades.

Previous task · Test record · Next task

4. Repeat before changing the setup

Outcome: a repeatability check with differences explained.

Run the unchanged baseline again. Compare trade count, first and last trade times, net result and drawdown fields. Keep both records, including any failed run. Repetition is a configuration check, not new independent evidence about the strategy.

If outcomes differ, investigate changed history, build, inputs, execution delay settings, external dependencies or other uncontrolled inputs. Record what you can establish. Do not describe the setup as independently reproducible if you cannot identify the necessary inputs or explain a material discrepancy.

Save: a baseline/repeat comparison and an “unresolved differences” note, even when the note says none observed.

Previous task · Test record · Next task

5. Read risk and sample coverage before profit

Outcome: a short evidence assessment attached to the report.

Read equity versus balance drawdown, sample size and losing trades and profit factor versus recovery factor. Copy labels and units exactly. Keep relative percentages and monetary amounts distinct. Examine both equity and balance paths, trade count, loss size and any open-exposure limitations.

Use the existing article figures as reading exercises. They are supplied historical examples, not the expected output of your configuration. Different dates, versions, account units and sizing rules can invalidate direct return comparisons. Do not fill missing fields with estimates disguised as measured values.

Save: three sentences: what the test shows, its largest limitation, and the next observation needed. A favourable profit figure alone does not complete this task.

Previous task · Test record · Next task

6. Make one controlled execution experiment

Outcome: a clearly labelled sensitivity comparison.

Read Gold EA Spread and Slippage: Measuring XAUUSD Trading Costs. List the spread, commission, swap and delay assumptions you can actually identify. Select one supported execution assumption to vary while keeping the baseline inputs and dates fixed. Where a setting is unavailable, record that limitation rather than inventing a test.

MT5 supports execution-delay simulation; its behaviour depends on the type of trade request. See the official Strategy Testing reference. An adverse scenario is a research comparison, not a forecast of the worst possible live loss.

Save: the changed field, the baseline value, the scenario value and the observed differences. If you changed several fields, label it a combined scenario and do not attribute the result to just one cause.

Previous task · Test record · Next task

7. Preserve a validation boundary and plan demo observation

Outcome: a next-step plan that separates historical and forward evidence.

Read Backtest vs Forward Test: Gold EA Evidence and Practical Checks and Reading Forward Trading Results: Gold EA Evidence and Practical Checks. Reserve a later historical interval before selecting or tuning the configuration. Record its boundary and every subsequent change. If you already used that interval to make decisions, call it development data and identify a fresh validation period where feasible.

MT5’s tester forward split is another historical interval. It is distinct from observing the EA on a running demo or live account. For demo observation, keep the build, preset and account context fixed or log each change. Separate deposits and withdrawals from trading outcomes.

Save: a validation record and a demo log plan. No minimum calendar duration or favourable screenshot by itself establishes reliability. A deployment decision requires evidence beyond completing this reading exercise.

Previous task · Test record · Next task

Copy this test record

Use one row per run in your own notebook or spreadsheet. Preserve the original report beside it. “Unknown” is a useful finding; an invented setting is not.

Record areaFields to preserve
IdentityRun ID; EA build; terminal build; preset filename; date recorded
EnvironmentBroker/server; exact symbol; timeframe; account mode; contract/volume context
Test designResearch question; requested dates; actual coverage; development/validation boundary
Account basisInitial deposit; currency/denomination; leverage; sizing rule
Modelling and executionMode; history quality; missing-data notes; spread/charges/delay assumptions
OutputReport/graph/log paths; trades; net result; drawdown labels and units; observed errors
Repeat and experimentRepeat run ID; differences; changed field and scenario value
ConclusionMain limitation; unanswered question; next demo observation

Completion check

  • I can identify the exact version, inputs, symbol and account basis.
  • I saved the baseline output and relevant logs, including unfavourable results.
  • I repeated the setup and documented any differences.
  • I can explain sample coverage, equity exposure and execution limitations.
  • I kept the controlled scenario separate from the baseline.
  • I stated whether my validation period was genuinely unused during selection.
  • I have a demo observation plan with cash flows and configuration changes recorded separately.

Mark these checks in your own notes. This reading course does not save completion progress or issue a qualification.

Continue your learning

Previous course: MT5 workspace · Browse the test-and-evaluate learning path · Next practical option: the BYO-Bot build walkthrough

Continue to Course 9: BYO-Bot Foundations for the build-to-validation workflow. The dedicated report-reading course remains planned; its existing articles are available now.

View more forward trading results · Trading Tools · Explore Expert Advisors

Platform references

MetaTrader 5 Strategy Testing · Real and Generated Ticks · Testing Report. Platform details checked 1 November 2026; wording and controls can differ by build.

Historical and demo performance do not guarantee future results. Forex, Gold and CFD trading can produce substantial losses. Completing a test record is a research milestone, not a recommendation to trade.