Overall Date Range Setup
The first step is to define the overall date range in the Strategy Tester. You select a start and end date in the Date field, or choose a predefined period such as the last year or last six months. The tester automatically downloads additional history before the specified start to form at least one hundred bars, which improves indicator accuracy. If the chosen start date is too close to the beginning of available history, the platform shifts the start date forward and logs a message in the Journal. The end date cannot exceed the current date; if it does, testing runs only up to the current date, excluding it.
Each date selection determines the full span that will later be split into backtest and forward segments. The tester begins and ends at midnight server time, meaning the start date is included while the end date is not. This boundary behavior is consistent across all symbols and timeframes, ensuring reproducible results. Before finalizing the range, verify that sufficient history exists for the selected timeframe, especially for weekly or monthly charts where the required lookback is longer.
Sources: MetaTrader 5 documentation: testing
Available Forward Settings
The Forward control offers four documented options: No, 1/2, 1/3, 1/4, and Custom. Selecting No disables forward testing entirely, running a single backtest over the full period. Choosing 1/2 divides the range so that the latter half serves as the forward period, while 1/3 and 1/4 allocate the last one-third or one-quarter respectively. The Custom option lets you type a specific forward start date manually, and the platform marks that date with a vertical line on the chart.
Always the latest portion of the total period is reserved for forward testing; the earlier portion becomes the backtest or adaptation segment. When forward testing is active, results appear on a separate Forward tab, and the start date is visually indicated on the chart. These settings are purely mechanical divisions and do not imply any recommended split ratio, market regime, or performance expectation.
Sources: MetaTrader 5 documentation: testing
Custom Date Entry
When Custom is selected, you enter the forward start day directly in the provided field. The tester interprets this as the boundary between the backtest and forward segments. Any date earlier than the overall start is ignored, and any date after the overall end is invalid. The platform validates the entry and adjusts if necessary, ensuring the forward period remains within the defined range.
Using a custom date allows precise alignment with specific events or data availability constraints. However, the documentation does not prescribe an optimal custom date; it merely provides the mechanism. After entry, the tester recalculates the split and updates the chart line accordingly. Always confirm the resulting forward duration in the Journal before launching the test.
Sources: MetaTrader 5 documentation: testing
Chronological Split Behavior
The chronological split is strictly sequential: the first part of the selected period is used for backtesting, and the second part is used for forward testing. No shuffling, randomization, or out-of-sample interleaving occurs. The split point is determined solely by the forward setting chosen, and the tester enforces that the forward segment always follows the backtest segment in time.
This design mirrors the real-world deployment where a strategy is first fitted on older data and then evaluated on newer, unseen data. The tester does not allow overlapping segments or reversed order. During optimization, the same split applies to every parameter set, ensuring that forward results are comparable across runs.
Sources: MetaTrader 5 documentation: testing
Optimization and Forward-Result Comparison
When optimization is enabled alongside forward testing, the platform runs multiple parameter combinations over the backtest segment only. The forward segment remains untouched during optimization, serving as a strict validation set. After optimization completes, the tester displays the best parameter set based on the chosen criterion, and you can then view its performance on the Forward tab.
The Forward tab presents separate statistics such as profit, number of trades, and drawdown for the forward period only. You can compare these figures against the backtest results to assess stability. The documentation does not specify a minimum trade count or interpretation threshold; it simply provides the data. To avoid parameter overfitting, rely on the forward segment as the final arbiter before deploying the Expert Advisor to a live account.
Sources: MetaTrader 5 documentation: testing MetaTrader 5 documentation: features
AI-assisted educational article. Automated checks reviewed source support and quality; they do not guarantee accuracy. This is not investment advice. Leveraged and automated trading involves substantial risk of loss.
Sources & further reading
MetaTrader 5 documentation: testingMetaTrader 5 documentation: featuresEducational content only. This article is not investment advice. Automated and leveraged trading involves substantial risk of loss.