MetaTrader ./wikiINDEPENDENT ENCYCLOPEDIA · N#1 SOURCE EST. 2010SECTOR INTELLIGENCE & ADVANCED MARKET ANATOMY

Technique · Instructions

Strategy Tester: MT4 & MT5 Step by Step

Set up a test reproducibly, test its assumptions and correctly limit historical results.

30.09.2026English · source-based encyclopediaIndependent of MetaQuotes
On this pageFirst formulate the test questionMT4: Preparing a single testMT5: Choosing data and environment consciouslyHow price modelling changes a testReading the reportOptimisation and separate control periodsTest protocol and practical limitSources
Status: 30 September 2026. Independently formulated instructions based on the linked manufacturer assistance. Desktop menu paths refer to Windows; language, build, and brokers may differ. Operating processes were not practically taken down here with a real brokerage account. Exercises are intended for a demo account.

First formulate the test question

Do you want to check whether the program correctly executes the described rules or whether the strategy would be economically viable under certain assumptions? These are different questions. Our start: a short test question, a manageable period of time and an unchanged initial configuration.

Before starting, write down program version, platform build, icon, data source, period, time frame, parameters, starting capital, account currency, account model, and cost assumptions. Subsequently selected profit results are harder to judge if the original test question is missing.

MT4: Preparing a single test

  1. Open Strategy Tester via View.
  2. Select the installed and compiled EA program.
  3. Set icon, time frame and test period.
  4. Choose model: Each tick, checkpoints or only opening prices, according to the offered settings.
  5. Open expert properties; control initial capital and input parameters. Turn off optimization for the first run.
  6. Record spread assumption and data base, then start.
  7. Check results, report and journal; use visualization when necessary.
[TEST4]

A model with few price points can produce different results for strategies trading within a candle than a more detailed history. „Every tick in MT4 is not equivalent to the assurance of a complete real tick history.

MT5: Choosing data and environment consciously

  1. Open Strategy Tester and first select a single test.
  2. Set EA, Symbol, Period and Parameters.
  3. Select the offered tick mode and document the data reference.
  4. Check start-up capital, account currency, leverage and required instrument data.
  5. Control existing extended cost, account and delay assumptions instead of adopting their default unchecked.
  6. Start the test; examine the result and journal after the data load.
[TEST5]

When testing several instruments, their data and trading conditions must also fit. A seemingly fast calculation can be based on a simplified model.

How price modelling changes a test

ModelSignificance for interpretation
Real Ticks in MT5Uses available historical tick data; further examine data gaps and model assumptions
Generated ticksThe intermediate progression is modeled from existing data
1-minute OHLCFew bases per minute; no complete observed tick sequence
Opening prices onlyHighly reduced progression; separately problematic for intrabar-dependent rules
[TICKS5]

The MT5 help describes differences in triggering and execution between simplified and detailed test modes. Therefore, a good result in the rough mode must not be considered unchecked as confirmation of real stop execution.

[FEATURES-TEST5]

Editorial counter-test: compare the same unchanged EA on the same period with two suitable models. First, examine individual deviant trades. Do not immediately choose new parameters to compensate the difference cosmetically.

Reading the report

Tester reports provide, among other things, results and decline indicators. Read their definitions and separate balance, equity, number of trades and costs. The journal helps to detect faulty or incomplete runs.

[TESTREPORT5]

Our evaluation questions: How many independent situations have been tested at all? Does a single big winner carry the result? How low was the account in the meantime? Are open positions taken into account at the end of the test? Are the costs consistent with the intended use?

A self-selected example strategy with only three trades allows for less robust statements than a broad observation over different conditions. A higher historical profit alone does not say which variant would be more robust in the future.

Optimisation and separate control periods

In an optimization, several parameter combinations are tried out. Our method: define reasonable areas in advance, use a development period and withhold a later control period. Each new selection based on this control period makes it a bit of a development data set.

Don’t just look at the best individual result: Are similar parameters in a comparable range of results or does the strategy break down if there is a small change? Subsequently observe an unchanged configuration in demo forward operation. This is an editorial test method, not a guarantee.

Test protocol and practical limit

To be archivedWhy?
Program and parametersSo that the same variant can be retrieved
Data model and periodSo that the result remains comparable
Costs and contract assumptionsSo that the economic basis is recognizable
Report, journal and selected individual operationsSo that the key figure and the actual process fit together
Separate forward observationSo that later experience is not optimized into the old history

A tester reproduces a model of the environment. Real network disruptions, actual brokerage decisions, changing liquidity and future quotes are not fully predicted. Subsequently for operational preparation, EA Guide and Contract specification use them.

Sources & scope

Check the evidence.

  1. MT4 · Tester settings

    Concrete MT4 tester aid. Advertising blocks for the new platform may not be read as MT4 functions.

    Open the source ↗
  2. MT5 · Strategy Tester

    Test modes and multi-symbol tests; data and assumptions determine the statement.

    Open the source ↗
  3. MT5 · Real and Generated Ticks

    Data Models and Limitations of Tick Reconstruction.

    Open the source ↗
  4. MT5 · Tester specifications

    Triggering and price processing are dependent on the test model and instrument.

    Open the source ↗
  5. MT5 · Tester report

    Test indicators are to be read within their model assumptions.

    Open the source ↗

Deepening Expert Advisors

Technique, Strategy Types, Grid Lab and Trust Test

What proves a good result?

Check backtests, track records and typical fallacies