{"id":22523,"date":"2026-11-19T15:42:31","date_gmt":"2026-11-19T12:42:31","guid":{"rendered":"https:\/\/roboforex.com\/blog\/?p=22523"},"modified":"2026-11-19T15:42:35","modified_gmt":"2026-11-19T12:42:35","slug":"walk-forward-optimization-mt5","status":"publish","type":"post","link":"https:\/\/roboforex.com\/blog\/education\/walk-forward-optimization-mt5\/","title":{"rendered":"Walk Forward Optimisation in MetaTrader 5: How to Find Robot Settings That Hold Up"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<html><body><div class=\"wfo-wrap\">\n<div class=\"wfo\">\n\n  <p>Walk forward optimisation finds a trading robot's best settings on one stretch of price history and then tests them on the next stretch, which the search never saw. If the settings keep working there, they are less likely to be fitted to past noise. This guide runs the whole check in the <a href=\"https:\/\/roboforex.com\/forex-trading\/platforms\/metatrader5-mt5\/\" data-internallinksmanager029f6b8e52c=\"8\" title=\"metatrader 5\">MetaTrader 5<\/a> Strategy Tester.<\/p>\n\n  <div class=\"wfo-tldr\">\n    <div class=\"wfo-tldr-label\">TL;DR<\/div>\n    <ol>\n      <li>Let the Strategy Tester search the robot's signal inputs on the first part of the history.<\/li>\n      <li>Set a Forward period, so MT5 reruns the best combinations on the later part without searching again.<\/li>\n      <li>Keep a combination that holds on both parts and whose neighbours score close to it. A stable result on history still gives no guarantee of profit in live trading.<\/li>\n    <\/ol>\n  <\/div>\n\n  <div class=\"wfo-promo\">\n    <div>\n      <div class=\"wfo-promo-title\">Run the Test on a Free Demo Account<\/div>\n      <div class=\"wfo-promo-sub\">Open a RoboForex demo account and use the MetaTrader 5 Strategy Tester with real price history.<\/div>\n    <\/div>\n    <div class=\"wfo-promo-actions\">\n      <a class=\"wfo-promo-btn\" href=\"https:\/\/my.roboforex.com\/en\/register\/\" target=\"_blank\" rel=\"nofollow\">Open a Demo Account<\/a>\n    <\/div>\n  <\/div>\n\n  <h2><span class=\"ez-toc-section\" id=\"What_Is_Walk_Forward_Optimisation\"><\/span>What Is Walk Forward Optimisation?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p>Walk forward optimisation is a test that splits the chosen history into two consecutive parts: the Strategy Tester picks the robot's settings on the first part and checks them on the second. The first part is called in-sample, the second out-of-sample. Run the same split on several windows that move forward in time, and the test is called walk forward analysis. The MetaTrader 5 Strategy Tester makes one split per run.<\/p>\n\n  <div class=\"wfo-split\" role=\"img\" aria-label=\"A test period split into an optimisation part covering the first three quarters and a forward part covering the last quarter\">\n    <div class=\"wfo-split-bar\">\n      <div class=\"wfo-split-is\">Optimisation<\/div>\n      <div class=\"wfo-split-oos\">Forward<\/div>\n    <\/div>\n    <div class=\"wfo-split-axis\"><span class=\"wfo-ax-a\">Start of the test<\/span><span class=\"wfo-ax-b\"><span class=\"wfo-ax-fd\">Forward date<\/span><span>End<\/span><\/span><\/div>\n    <div class=\"wfo-split-legend\">\n      <div class=\"wfo-split-item\"><span class=\"wfo-swatch wfo-swatch-is\"><\/span><span><strong>In-sample.<\/strong> The tester runs the robot with many combinations of inputs and ranks them by the criterion you chose, such as the highest profit or the lowest drawdown.<\/span><\/div>\n      <div class=\"wfo-split-item\"><span class=\"wfo-swatch wfo-swatch-oos\"><\/span><span><strong>Out-of-sample.<\/strong> The tester reruns the best combinations on later prices. Nothing is searched here, and these prices played no part in the choice.<\/span><\/div>\n    <\/div>\n  <\/div>\n\n  <p>A plain <a href=\"https:\/\/roboforex.com\/blog\/education\/how-to-test-a-trading-strategy\/\" data-internallinksmanager029f6b8e52c=\"296\" title=\"Test a strategy\">backtest<\/a> runs the robot once with fixed inputs. Search those inputs again and again on the same prices, and they start to match random details of that period. This is called curve fitting or overfitting: the settings describe the past and lose their edge on any other data. The out-of-sample part shows when the result drops after the search.<\/p>\n  <p>In MetaTrader 5 the split is set in the Forward field of the tester, and the two parts report in separate tabs, Optimization Results and Forward Results. Good scores in both tabs mean the settings are not tied to one stretch of history. They do not promise that the robot will make money next month.<\/p>\n\n  <h2><span class=\"ez-toc-section\" id=\"What_Does_Optimisation_Change_in_a_Trading_Robot\"><\/span>What Does Optimisation Change in a Trading Robot?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p>EA optimization changes the inputs that decide when the robot trades. For a trend robot these are usually the periods of a fast and a slow <a href=\"https:\/\/roboforex.com\/blog\/education\/what-is-a-moving-average\/\" data-internallinksmanager029f6b8e52c=\"68\" title=\"Moving Average\">moving average<\/a>. Other strategies tune oscillator levels or trading filters. The tester runs every combination you allow on the chosen history and compares them by one criterion.<\/p>\n  <p>In a crossover robot built on two moving averages, only the two periods are optimised. Lot size, <a href=\"https:\/\/roboforex.com\/blog\/education\/what-is-stop-loss-and-take-profit\/\" data-internallinksmanager029f6b8e52c=\"228\" title=\"Stop Loss\">Stop Loss<\/a> and <a href=\"https:\/\/roboforex.com\/blog\/education\/what-is-stop-loss-and-take-profit\/\" data-internallinksmanager029f6b8e52c=\"56\" title=\"Take Profit\">Take Profit<\/a> stay fixed, so the results show the effect of the indicator settings alone. The magic number stays fixed too: it only lets the robot tell its own trades apart and has no effect on entries or exits.<\/p>\n  <p>Change the signal and the risk settings in one run, and you cannot tell which change moved the result. Lot size, stops and the magic number are explained in <a href=\"https:\/\/roboforex.com\/blog\/education\/trading-robot-settings\/\">Trading Robot Settings Explained: Lot Size, Stops and Magic Number<\/a>.<\/p>\n\n  <h2><span class=\"ez-toc-section\" id=\"Step_1_Choose_the_Inputs_and_Their_Ranges\"><\/span>Step 1. Choose the Inputs and Their Ranges<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p>The example robot opens trades when a fast and a slow exponential moving average (EMA) cross. It is the robot from <a href=\"https:\/\/roboforex.com\/blog\/education\/first-mql5-expert-advisor\/\">Your First MQL5 Expert Advisor<\/a>, so you can repeat every step on your own terminal. The ranges for the MT5 optimization are set on the Inputs tab of the Strategy Tester.<\/p>\n  <p>The tick box to the left of an input includes it in the <a href=\"https:\/\/roboforex.com\/beginners\/info\/expert-advisors\/\" data-internallinksmanager029f6b8e52c=\"21\" title=\"expert advisors\">expert advisor<\/a> optimization. Each ticked input takes three values: Start, the first value tested; Step, the <a href=\"https:\/\/roboforex.com\/blog\/education\/what-is-a-gap-main-types-trading-gaps\/\" data-internallinksmanager029f6b8e52c=\"71\" title=\"Gap\">gap<\/a> between values; and Stop, the last value. A range from 5 to 13 with a step of 2 tests 5, 7, 9, 11 and 13.<\/p>\n\n  <div class=\"wfo-table-wrap wfo-table-wide\">\n    <table class=\"rf\">\n      <thead><tr><th>Input<\/th><th>What it controls<\/th><th>Default<\/th><th>Optimised range<\/th><\/tr><\/thead>\n      <tbody>\n        <tr><td data-label=\"Input\"><strong>Fast EMA period<\/strong><\/td><td data-label=\"What it controls\">Period of the fast EMA<\/td><td data-label=\"Default\">9<\/td><td data-label=\"Optimised range\">5 to 13, step 2 (5 values)<\/td><\/tr>\n        <tr><td data-label=\"Input\"><strong>Slow EMA period<\/strong><\/td><td data-label=\"What it controls\">Period of the slow EMA<\/td><td data-label=\"Default\">21<\/td><td data-label=\"Optimised range\">17 to 25, step 2 (5 values)<\/td><\/tr>\n        <tr><td data-label=\"Input\"><strong>Lot size<\/strong><\/td><td data-label=\"What it controls\">Trade volume<\/td><td data-label=\"Default\">0.10<\/td><td data-label=\"Optimised range\">Fixed<\/td><\/tr>\n        <tr><td data-label=\"Input\"><strong>Stop Loss in points<\/strong><\/td><td data-label=\"What it controls\">Distance to the Stop Loss<\/td><td data-label=\"Default\">200<\/td><td data-label=\"Optimised range\">Fixed<\/td><\/tr>\n        <tr><td data-label=\"Input\"><strong>Take Profit in points<\/strong><\/td><td data-label=\"What it controls\">Distance to the Take Profit<\/td><td data-label=\"Default\">400<\/td><td data-label=\"Optimised range\">Fixed<\/td><\/tr>\n        <tr><td data-label=\"Input\"><strong>Magic number<\/strong><\/td><td data-label=\"What it controls\">Tag on the robot's own trades<\/td><td data-label=\"Default\">123456<\/td><td data-label=\"Optimised range\">Fixed<\/td><\/tr>\n      <\/tbody>\n    <\/table>\n  <\/div>\n\n  <p>The tester will run 25 combinations: five fast periods times five slow ones. MT5 shows the count of values per input in the Steps column and the total under it. The defaults from the code, 9 and 21, sit inside both ranges, and the four fixed inputs stay unticked.<\/p>\n\n  <figure class=\"wp-block-image size-large\"><a href=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/11\/Walk_Forward_Optimisation_pic1-scaled.png\"><img height=\"1547\" loading=\"lazy\" width=\"2560\" decoding=\"async\" src=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/11\/Walk_Forward_Optimisation_pic1-scaled.png\" alt=\"Inputs tab of the MetaTrader 5 Strategy Tester with Fast EMA period ticked from 5 to 13 and Slow EMA period ticked from 17 to 25, both with step 2, and 25 combinations in total\"><\/a><figcaption class=\"wp-element-caption\">Only the two EMA periods are ticked. Each has five values, which gives 25 combinations. Source: MetaTrader 5.<\/figcaption><\/figure>\n\n  <h2><span class=\"ez-toc-section\" id=\"Step_2_Pick_the_Algorithm_and_the_Criterion\"><\/span>Step 2. Pick the Algorithm and the Criterion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p>The optimisation mode and the criterion are set on the Settings tab. For the 25 combinations above, Slow complete algorithm fits: it tests every one of them. Fast genetic based algorithm tests only part of the combinations and moves toward the better ones, which is how genetic algorithm trading tools save time on large searches. MT5 sets no fixed number of combinations at which to switch to it; the time also depends on how complex the robot is and how long one run takes.<\/p>\n\n  <h3>Optimisation Modes in the MetaTrader 5 Strategy Tester<\/h3>\n  <div class=\"wfo-table-wrap wfo-table-wide\">\n    <table class=\"rf\">\n      <thead><tr><th>Mode<\/th><th>What it does<\/th><th>When to use it<\/th><\/tr><\/thead>\n      <tbody>\n        <tr><td data-label=\"Mode\"><strong>Slow complete algorithm<\/strong><\/td><td data-label=\"What it does\">Tests every combination of the ticked inputs<\/td><td data-label=\"When to use it\">When the full search finishes in reasonable time, as with 25 combinations<\/td><\/tr>\n        <tr><td data-label=\"Mode\"><strong>Fast genetic based algorithm<\/strong><\/td><td data-label=\"What it does\">Searches for strong combinations without testing each one<\/td><td data-label=\"When to use it\">When the full search would take too long<\/td><\/tr>\n        <tr><td data-label=\"Mode\"><strong>All symbols selected in MarketWatch<\/strong><\/td><td data-label=\"What it does\">Runs one set of inputs on every symbol in the Market Watch window<\/td><td data-label=\"When to use it\">When you compare the robot across several instruments<\/td><\/tr>\n      <\/tbody>\n    <\/table>\n  <\/div>\n\n  <figure class=\"wp-block-image size-large\"><a href=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/11\/Walk_Forward_Optimisation_pic2-scaled.png\"><img height=\"1545\" loading=\"lazy\" width=\"2560\" decoding=\"async\" src=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/11\/Walk_Forward_Optimisation_pic2-scaled.png\" alt=\"Settings tab of the MetaTrader 5 Strategy Tester for the EMA-9-21 robot on USDCAD H1 with the Optimization dropdown open and Slow complete algorithm selected\"><\/a><figcaption class=\"wp-element-caption\">The Optimization dropdown on the Settings tab. The example runs on USD\/CAD H1 with Every tick modelling, a 10,000 USD deposit and 1:100 <a href=\"https:\/\/roboforex.com\/clients\/services\/2000-up-leverage\/\" data-internallinksmanager029f6b8e52c=\"44\" title=\"Leverage\">leverage<\/a>. Source: MetaTrader 5.<\/figcaption><\/figure>\n\n  <p>The second dropdown holds eight criteria. The criterion is the value MT5 uses to rank the runs and pick the most successful ones.<\/p>\n\n  <h3>Eight Optimisation Criteria in MetaTrader 5<\/h3>\n  <div class=\"wfo-table-wrap\">\n    <table class=\"rf\">\n      <thead><tr><th>Criterion<\/th><th>The highest-ranked run has<\/th><\/tr><\/thead>\n      <tbody>\n        <tr><td data-label=\"Criterion\"><strong>Balance max<\/strong><\/td><td data-label=\"The highest-ranked run has\">The largest balance at the end of the test<\/td><\/tr>\n        <tr><td data-label=\"Criterion\"><strong>Profit Factor max<\/strong><\/td><td data-label=\"The highest-ranked run has\">The highest ratio of gross profit to gross loss<\/td><\/tr>\n        <tr><td data-label=\"Criterion\"><strong>Expected Payoff max<\/strong><\/td><td data-label=\"The highest-ranked run has\">The highest average profit or loss per trade<\/td><\/tr>\n        <tr><td data-label=\"Criterion\"><strong>Drawdown min<\/strong><\/td><td data-label=\"The highest-ranked run has\">The smallest relative drawdown of the balance<\/td><\/tr>\n        <tr><td data-label=\"Criterion\"><strong>Recovery Factor max<\/strong><\/td><td data-label=\"The highest-ranked run has\">The highest ratio of profit to maximum drawdown<\/td><\/tr>\n        <tr><td data-label=\"Criterion\"><strong>Sharpe Ratio max<\/strong><\/td><td data-label=\"The highest-ranked run has\">The best return relative to how much the results swing<\/td><\/tr>\n        <tr><td data-label=\"Criterion\"><strong>Custom max<\/strong><\/td><td data-label=\"The highest-ranked run has\">The highest value returned by the robot's OnTester() function<\/td><\/tr>\n        <tr><td data-label=\"Criterion\"><strong>Complex Criterion max<\/strong><\/td><td data-label=\"The highest-ranked run has\">The best combined score from the number of trades, drawdown and several performance measures<\/td><\/tr>\n      <\/tbody>\n    <\/table>\n  <\/div>\n\n  <p>In the genetic mode the criterion steers the search: it decides which combinations the tester keeps working with. In the complete mode every combination runs whatever the criterion, and the criterion still sorts the results and decides which runs go to the forward period. For a first run that should not lean on a single number, Complex Criterion max is a reasonable choice.<\/p>\n\n  <figure class=\"wp-block-image size-large\"><a href=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/11\/Walk_Forward_Optimisation_pic3-scaled.png\"><img height=\"1562\" loading=\"lazy\" width=\"2560\" decoding=\"async\" src=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/11\/Walk_Forward_Optimisation_pic3-scaled.png\" alt=\"Criterion dropdown in the MetaTrader 5 Strategy Tester listing eight criteria from Balance max to Complex Criterion max, with Complex Criterion max selected\"><\/a><figcaption class=\"wp-element-caption\">The eight criteria. The example uses Complex Criterion max. Source: MetaTrader 5.<\/figcaption><\/figure>\n\n  <h2><span class=\"ez-toc-section\" id=\"Step_3_Set_the_Forward_Period\"><\/span>Step 3. Set the Forward Period<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p>The forward period is set in the Forward field on the Settings tab. MT5 cuts the date range into two consecutive parts: it searches for inputs on the first and reruns the chosen combinations on the later prices.<\/p>\n  <ul>\n    <li>No turns the forward check off, and the search covers the whole range.<\/li>\n    <li>1\/2 gives the second half of the range to the check and the first half to the search.<\/li>\n    <li>1\/3 gives the last third to the check and the first two thirds to the search.<\/li>\n    <li>1\/4 gives the last quarter to the check and the first three quarters to the search.<\/li>\n    <li>Custom lets you pick the date when the check starts. The forward part runs from that date to the end of the range.<\/li>\n  <\/ul>\n\n  <figure class=\"wp-block-image size-large\"><a href=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/11\/Walk_Forward_Optimisation_pic4-scaled.png\"><img height=\"1547\" loading=\"lazy\" width=\"2560\" decoding=\"async\" src=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/11\/Walk_Forward_Optimisation_pic4-scaled.png\" alt=\"Forward dropdown in the MetaTrader 5 Strategy Tester open with the options No, 1\/2, 1\/3, 1\/4 and Custom\"><\/a><figcaption class=\"wp-element-caption\">The Forward field with its five options. Custom unlocks the date box next to it. Source: MetaTrader 5.<\/figcaption><\/figure>\n\n  <p>No ratio fits every robot. Weigh the total length of the history against the number of trades each part will hold: a forward part with a handful of trades tells you little. MT5 then decides how many runs to check, as the <a href=\"https:\/\/www.metatrader5.com\/en\/terminal\/help\/algotrading\/strategy_optimization\" target=\"_blank\" rel=\"noopener nofollow\">MetaTrader 5 Help<\/a> describes. After a complete search it sends the best 10% of runs to the forward period, after a genetic search the best 25%. If that comes to fewer than 256 runs, the next best are added until there are 256, and if the whole search had fewer than 256 runs, all of them go forward. With 25 combinations, all 25 are checked.<\/p>\n\n  <h2><span class=\"ez-toc-section\" id=\"Step_4_Read_the_Results_and_the_Optimisation_Graph\"><\/span>Step 4. Read the Results and the Optimisation Graph<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p>When the run ends, three tabs hold the results. Optimization Results lists every combination with its score on the search period. Graph plots the same scores as points. Forward Results shows how the chosen combinations did on the later prices.<\/p>\n\n  <h3>Optimization Results: Scores on the Search Period<\/h3>\n  <p>Each row of Optimization Results is one combination of inputs. The Pass column numbers it, so you can find the same combination in the other tabs, and the InpFastEMA and InpSlowEMA columns show its two periods. Click a column header to sort by it. A high score here says how well the combination fitted the search period and nothing about the prices that come after it.<\/p>\n\n  <figure class=\"wp-block-image size-large\"><a href=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/11\/Walk_Forward_Optimisation_pic5-scaled.png\"><img height=\"1550\" loading=\"lazy\" width=\"2560\" decoding=\"async\" src=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/11\/Walk_Forward_Optimisation_pic5-scaled.png\" alt=\"Optimization Results tab in MetaTrader 5 with columns Pass, Result, Profit, Total trades, Expected payoff, Drawdown, InpFastEMA and InpSlowEMA, sorted by Result\"><\/a><figcaption class=\"wp-element-caption\">Optimization Results sorted by the criterion score. Results on history do not guarantee future performance. Source: MetaTrader 5.<\/figcaption><\/figure>\n\n  <h3>The Graph: Is One Point Far Above the Rest?<\/h3>\n  <p>On the Graph tab every combination is a point: the run number runs along the bottom and the criterion score up the side. It shows at a glance whether one result towers over the others or several combinations score about the same. It does not show how close their input values are, so check the periods of the top points in the results table.<\/p>\n\n  <figure class=\"wp-block-image size-large\"><a href=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/11\/Walk_Forward_Optimisation_pic6-scaled.png\"><img height=\"1550\" loading=\"lazy\" width=\"2560\" decoding=\"async\" src=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/11\/Walk_Forward_Optimisation_pic6-scaled.png\" alt=\"Forward test graph in the MetaTrader 5 Strategy Tester with one point per pass and the Complex Criterion max score on the vertical axis, three green points standing above a row of orange points\"><\/a><figcaption class=\"wp-element-caption\">The forward graph: each point is one pass, the height is its Complex Criterion score. Results on history do not guarantee future performance. Source: MetaTrader 5.<\/figcaption><\/figure>\n\n  <h3>Forward Results: Compare Backtest and Forward<\/h3>\n  <p>In Forward Results the Backtest column holds a combination's score on the search period and the Forward column its score on the later prices. The Profit, Total trades and Drawdown columns describe the forward period. Find the same Pass in Optimization Results to compare profit, drawdown and the number of trades on both parts.<\/p>\n\n  <figure class=\"wp-block-image size-large\"><a href=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/11\/Walk_Forward_Optimisation_pic7-scaled.png\"><img height=\"1539\" loading=\"lazy\" width=\"2560\" decoding=\"async\" src=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/11\/Walk_Forward_Optimisation_pic7-scaled.png\" alt=\"Forward Results tab in MetaTrader 5 with columns Pass, Forward, Backtest, Profit, Total trades, Expected payoff, Drawdown and the two EMA periods, Pass 19 at the top with a Forward score of 50.97\"><\/a><figcaption class=\"wp-element-caption\">Forward Results for the 25 combinations, sorted by the forward score. Results on history do not guarantee future performance. Source: MetaTrader 5.<\/figcaption><\/figure>\n\n  <p>Two rows of this table tell opposite stories. Pass 21, EMA 7 and 25, has the highest Backtest score in it, 48.64, and ends the forward period with a loss of 61.71 USD. Pass 19, EMA 13 and 23, scored 24.06 on the search period and finished the forward period 217.49 USD up on 42 trades. A result that weakens sharply on the second part points to curve fitting or to a robot that suited one stretch of the market.<\/p>\n\n  <h2><span class=\"ez-toc-section\" id=\"How_Do_You_Pick_Settings_That_Hold_Up\"><\/span>How Do You Pick Settings That Hold Up?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p>Pick a combination that sits on a plateau, where neighbouring values score close to it, and whose forward result keeps the direction of the backtest. A lone peak, where one value beats its neighbours by a wide margin, is the classic picture of overfitting in trading.<\/p>\n\n  <div class=\"wfo-pp\">\n    <div class=\"wfo-pp-card\">\n      <div class=\"wfo-pp-title\">Plateau<\/div>\n      <div class=\"wfo-pp-bars\" aria-hidden=\"true\">\n        <span class=\"wfo-pp-b wfo-h70\"><\/span><span class=\"wfo-pp-b wfo-h80\"><\/span><span class=\"wfo-pp-b wfo-pp-pick wfo-h85\"><\/span><span class=\"wfo-pp-b wfo-h80\"><\/span><span class=\"wfo-pp-b wfo-h75\"><\/span>\n      <\/div>\n      <div class=\"wfo-pp-axis\" aria-hidden=\"true\"><span>5<\/span><span>7<\/span><span>9<\/span><span>11<\/span><span>13<\/span><\/div>\n      <div class=\"wfo-pp-text\">Close results on neighbouring steps. A small change in the market moves the result a little.<\/div>\n    <\/div>\n    <div class=\"wfo-pp-card\">\n      <div class=\"wfo-pp-title\">Peak<\/div>\n      <div class=\"wfo-pp-bars\" aria-hidden=\"true\">\n        <span class=\"wfo-pp-b wfo-h25\"><\/span><span class=\"wfo-pp-b wfo-h30\"><\/span><span class=\"wfo-pp-b wfo-pp-pick wfo-h95\"><\/span><span class=\"wfo-pp-b wfo-h35\"><\/span><span class=\"wfo-pp-b wfo-h20\"><\/span>\n      <\/div>\n      <div class=\"wfo-pp-axis\" aria-hidden=\"true\"><span>5<\/span><span>7<\/span><span>9<\/span><span>11<\/span><span>13<\/span><\/div>\n      <div class=\"wfo-pp-text\">A high result on one value only. A one-step shift loses most of it.<\/div>\n    <\/div>\n    <div class=\"wfo-pp-note\">Schematic: criterion score by fast EMA period, one step apart. The darker bar is the best combination.<\/div>\n  <\/div>\n\n  <p>Run three checks on each candidate.<\/p>\n  <ul>\n    <li>Move each EMA period one step up and one step down and compare the scores. Boris Armenteros, in the MQL5 blog post <a href=\"https:\/\/www.mql5.com\/en\/blogs\/post\/772727\" target=\"_blank\" rel=\"noopener nofollow\">Over-Optimization in Strategy Tester<\/a>, calls a result fragile when one step costs more than 30% of the score.<\/li>\n    <li>Compare the Backtest and Forward columns for the same Pass. A combination that made money on the search period and loses on the forward period points to overfitting or to a dependence on one stretch of history.<\/li>\n    <li>Check the number of trades and the drawdown on both parts. A score built on a few trades says little. How many trades are enough depends on how often the strategy trades and how long the test runs, and no single drawdown limit fits every robot.<\/li>\n  <\/ul>\n  <p>Apply the checks to the Forward Results above. Pass 19, EMA 13 and 23, is surrounded by passes 18, 24, 14 and 23, the combinations one step away. All four also finished the forward period in profit, from 106.47 to 196.96 USD, on 40 to 44 trades each. That cluster around 11 to 13 and 21 to 25 is a plateau. Pass 21 sits alone at the top of the Backtest column and fails the second check.<\/p>\n  <p>One caution about this table. Pass 19 tops the Forward column, but choosing a combination by its forward score uses the forward prices to make the choice, and they stop being unseen. Pick the plateau from the search results first, then use the forward part as a pass or fail check on that choice.<\/p>\n\n  <div class=\"wfo-promo\">\n    <div>\n      <div class=\"wfo-promo-title\">Test Robots in RoboForex MetaTrader 5<\/div>\n      <div class=\"wfo-promo-sub\">The Strategy Tester with optimisation and forward checks is built into the desktop terminal.<\/div>\n    <\/div>\n    <div class=\"wfo-promo-actions\">\n      <a class=\"wfo-promo-btn\" href=\"https:\/\/roboforex.com\/forex-trading\/platforms\/metatrader5-mt5\/\" target=\"_blank\">Get MetaTrader 5<\/a>\n    <\/div>\n  <\/div>\n\n  <h2><span class=\"ez-toc-section\" id=\"How_Do_You_Run_a_Rolling_Walk_Forward_Analysis_in_MT5\"><\/span>How Do You Run a Rolling Walk Forward Analysis in MT5?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p>The MetaTrader 5 Strategy Tester splits a date range into a search part and a forward part once per run. A rolling walk forward analysis repeats that split on several date windows, and the terminal has no automatic mode for it. You move the dates by hand, with Custom chosen in the Forward field.<\/p>\n  <p>First fix the length of the search window, for example six months, and of the forward window, for example two months. Run the first cycle and note the combination you would keep. Then shift both windows two months forward and run the optimisation again. Each shift adds one cycle.<\/p>\n  <p>For cycle 1 in the table below, set the test dates from 1 Jan 2025 to 31 Aug 2025, choose Custom in the Forward field and enter 1 Jul 2025. For cycle 2, change the dates to 1 Mar to 31 Oct 2025 and the forward date to 1 Sep 2025.<\/p>\n  <p>Below are four cycles for the same EMA crossover robot. Every cycle used <a href=\"https:\/\/roboforex.com\/beginners\/info\/charts\/metals\/xauusd\/\" data-internallinksmanager029f6b8e52c=\"43\" title=\"XAU\/USD\">XAU\/USD<\/a> on the H1 chart and the Complex Criterion max. Three forward windows ended in a loss and one in a profit of 259.60 USD.<\/p>\n\n  <div class=\"wfo-roll\" role=\"img\" aria-label=\"Four test cycles on a timeline from January 2025 to February 2026. Each cycle has a six-month search window followed by a two-month forward window, shifted two months later each time. Forward results: loss, loss, loss, profit.\">\n    <div class=\"wfo-roll-axis\"><span><\/span><div class=\"wfo-roll-ticks\"><span class=\"wfo-roll-t1\">Jan 2025<\/span><span class=\"wfo-roll-t7\">Jul 2025<\/span><span class=\"wfo-roll-t13\">2026<\/span><\/div><span class=\"wfo-roll-head\">Forward result<\/span><\/div>\n    <div class=\"wfo-roll-row\"><div class=\"wfo-roll-n\">1<\/div><div class=\"wfo-roll-track\"><span class=\"wfo-roll-s wfo-c1s\">Search<\/span><span class=\"wfo-roll-f wfo-c1f\"><\/span><\/div><div class=\"wfo-roll-res\">Loss 56.18 USD<\/div><\/div>\n    <div class=\"wfo-roll-row\"><div class=\"wfo-roll-n\">2<\/div><div class=\"wfo-roll-track\"><span class=\"wfo-roll-s wfo-c2s\">Search<\/span><span class=\"wfo-roll-f wfo-c2f\"><\/span><\/div><div class=\"wfo-roll-res\">Loss 80.72 USD<\/div><\/div>\n    <div class=\"wfo-roll-row\"><div class=\"wfo-roll-n\">3<\/div><div class=\"wfo-roll-track\"><span class=\"wfo-roll-s wfo-c3s\">Search<\/span><span class=\"wfo-roll-f wfo-c3f\"><\/span><\/div><div class=\"wfo-roll-res\">Loss 121.70 USD<\/div><\/div>\n    <div class=\"wfo-roll-row\"><div class=\"wfo-roll-n\">4<\/div><div class=\"wfo-roll-track\"><span class=\"wfo-roll-s wfo-c4s\">Search<\/span><span class=\"wfo-roll-f wfo-c4f\"><\/span><\/div><div class=\"wfo-roll-res\">Profit 259.60 USD<\/div><\/div>\n    <div class=\"wfo-roll-legend\"><span><span class=\"wfo-swatch wfo-swatch-is\"><\/span>Search window, 6 months<\/span><span><span class=\"wfo-swatch wfo-swatch-oos\"><\/span>Forward window, 2 months<\/span><\/div>\n  <\/div>\n\n  <div class=\"wfo-table-wrap wfo-table-wide\">\n    <table class=\"rf\">\n      <thead><tr><th>Cycle<\/th><th>Search window<\/th><th>Forward window<\/th><th>EMA pair<\/th><th>Backtest score<\/th><th>Forward score<\/th><th>Forward result<\/th><\/tr><\/thead>\n      <tbody>\n        <tr><td data-label=\"Cycle\">1<\/td><td data-label=\"Search window\">1 Jan to 30 Jun 2025<\/td><td data-label=\"Forward window\">1 Jul to 31 Aug 2025<\/td><td data-label=\"EMA pair\">7 and 23<\/td><td data-label=\"Backtest score\">70.39<\/td><td data-label=\"Forward score\">17.69<\/td><td data-label=\"Forward result\">Loss 56.18 USD, 45 trades, drawdown 2.47%<\/td><\/tr>\n        <tr><td data-label=\"Cycle\">2<\/td><td data-label=\"Search window\">1 Mar to 31 Aug 2025<\/td><td data-label=\"Forward window\">1 Sep to 31 Oct 2025<\/td><td data-label=\"EMA pair\">13 and 25<\/td><td data-label=\"Backtest score\">78.26<\/td><td data-label=\"Forward score\">1.14<\/td><td data-label=\"Forward result\">Loss 80.72 USD, 25 trades, drawdown 1.95%<\/td><\/tr>\n        <tr><td data-label=\"Cycle\">3<\/td><td data-label=\"Search window\">1 May to 31 Oct 2025<\/td><td data-label=\"Forward window\">1 Nov to 31 Dec 2025<\/td><td data-label=\"EMA pair\">9 and 25<\/td><td data-label=\"Backtest score\">47.15<\/td><td data-label=\"Forward score\">7.46<\/td><td data-label=\"Forward result\">Loss 121.70 USD, 36 trades, drawdown 2.40%<\/td><\/tr>\n        <tr><td data-label=\"Cycle\">4<\/td><td data-label=\"Search window\">1 Jul to 31 Dec 2025<\/td><td data-label=\"Forward window\">1 Jan to 28 Feb 2026<\/td><td data-label=\"EMA pair\">9 and 17<\/td><td data-label=\"Backtest score\">45.33<\/td><td data-label=\"Forward score\">27.47<\/td><td data-label=\"Forward result\">Profit 259.60 USD, 38 trades, drawdown 1.55%<\/td><\/tr>\n      <\/tbody>\n    <\/table>\n  <\/div>\n\n  <p>Three of the four forward windows ended in a loss, though every search window scored high. The best pair also changed with each shift of the dates. In this test, first place by the criterion did not carry into profit on the next stretch of history, and the bare crossover of two moving averages, with no extra filters, did not stay in profit across the four forward windows. If your own forward windows lose money, widening the ranges and rerunning until one window looks good fits the settings to the same prices again. Change the idea itself: try another timeframe or symbol, add a rule such as a trend filter, and run the cycles again on a longer history.<\/p>\n\n  <h2><span class=\"ez-toc-section\" id=\"Four_Fixes_for_a_Clean_Optimisation_Run\"><\/span>Four Fixes for a Clean Optimisation Run<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n  <h3>Get Enough Combinations Into Forward Results<\/h3>\n  <p>A small search gives a short Forward Results table. Wider ranges or a smaller step add combinations, and the run takes longer.<\/p>\n\n  <h3>Get Repeatable Results From a Genetic Search<\/h3>\n  <p>Fast genetic based algorithm skips part of the combinations and stops once several generations in a row bring no better score by the criterion. Its first sets of inputs are random, so two runs can end with different leaders. When every combination has to be tested, use Slow complete algorithm, as long as the run time stays reasonable.<\/p>\n\n  <h3>Find the Cause of Empty Results or Zero Trades<\/h3>\n  <p>Start with the Journal tab, which lists the tester's messages, errors included. Then check that at least one input is ticked on the Inputs tab, that the terminal has price history for the chosen dates, and that a Custom forward date falls inside the test range. If the run completes with zero trades, look at the symbol, the timeframe and any filters in the robot that cut the number of signals.<\/p>\n\n  <h3>Double-Check a Result That Looks Too Good<\/h3>\n  <p>A large profit with a tiny drawdown on the search period calls for a look at the forward period first. Open the passes one step away from it: if their scores are more than 30% lower, the top result is a peak by the rule from the section on picking settings. A standout result needs that extra check, and on its own it does not prove the inputs were fitted to history.<\/p>\n\n  <h2><span class=\"ez-toc-section\" id=\"What_to_Do_After_Optimisation\"><\/span>What to Do After Optimisation<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p>Once the chosen inputs have held on the forward part of the history, the robot moves to live prices in three stages.<\/p>\n\n  <ol class=\"wfo-stages\">\n    <li><span class=\"wfo-stage-title\">Demo account<\/span><span class=\"wfo-stage-text\">Live quotes, virtual money, a check of every <a href=\"https:\/\/roboforex.com\/blog\/education\/main-order-types-in-trading\/\" data-internallinksmanager029f6b8e52c=\"311\" title=\"Order\">order<\/a> the robot sends<\/span><\/li>\n    <li><span class=\"wfo-stage-title\">ProCent account<\/span><span class=\"wfo-stage-text\">Real money and real execution at the smallest trade size<\/span><\/li>\n    <li><span class=\"wfo-stage-title\">Standard account and <a href=\"https:\/\/roboforex.com\/clients\/services\/forex-vps\/\" data-internallinksmanager029f6b8e52c=\"14\" title=\"vps for forex\">VPS<\/a><\/span><span class=\"wfo-stage-text\">A separate decision on risk, with the terminal running around the clock<\/span><\/li>\n  <\/ol>\n\n  <p>On the demo account, run the robot with the chosen inputs. Check that trades open and close, that Stop Loss and Take Profit work and that the results look like the tests. How long this takes depends on the strategy and the number of trades; a few trades over a short period give too little to judge. A demo account shows technical problems, though it cannot fully reproduce how real orders are filled.<\/p>\n  <p>The next stage can be a <a href=\"https:\/\/roboforex.com\/forex-trading\/trading\/cent-account\/\">ProCent account<\/a>. In RoboForex MetaTrader 5 the smallest trade size there is 0.01 lot, so the robot trades on real conditions with a small position, and the money at risk is real.<\/p>\n  <p>Moving to a standard account is a decision of its own, made on the robot's live results, the losses it can bring and the risk you accept. A <a href=\"https:\/\/roboforex.com\/clients\/services\/forex-vps\/\">RoboForex VPS<\/a> keeps the terminal and the robot running when your computer is off. Hosting a robot on a VPS has no effect on how profitable the strategy is.<\/p>\n\n  <h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p>Walk forward optimisation checks a robot's inputs on history that played no part in choosing them, and even steady results there do not promise the same in the future. Take the EMA robot, set the ranges from Step 1, choose 1\/3 or 1\/4 in the Forward field and compare the Backtest and Forward columns for the combinations on your own plateau. Run your robot in <a href=\"https:\/\/roboforex.com\/forex-trading\/platforms\/metatrader5-mt5\/\">MetaTrader 5<\/a> on a demo account before any real-money account.<\/p>\n\n  <div class=\"wfo-cta\">\n    <a href=\"https:\/\/my.roboforex.com\/en\/register\/\" target=\"_blank\" rel=\"nofollow\">Open a Demo Account and Run Your First Forward Test<\/a>\n  <\/div>\n\n  <h2><span class=\"ez-toc-section\" id=\"FAQ\"><\/span>FAQ<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <div class=\"wfo-faq\">\n    <details class=\"wfo-faq-item\">\n      <summary class=\"wfo-faq-q\">What is the difference between backtesting and walk forward optimisation?<\/summary>\n      <div class=\"wfo-faq-a\">A plain backtest checks one set of inputs on the chosen history. Walk forward optimisation splits the history in two: the tester searches for the best inputs on the first part and checks them on the second, which played no part in the search.<\/div>\n    <\/details>\n    <details class=\"wfo-faq-item\">\n      <summary class=\"wfo-faq-q\">Does walk forward optimisation remove overfitting?<\/summary>\n      <div class=\"wfo-faq-a\">It lowers the risk and helps you drop weak inputs early. A combination with a high profit in the search period and a loss in the forward period may be fitted to that history by chance, and the forward check shows it.<\/div>\n    <\/details>\n    <details class=\"wfo-faq-item\">\n      <summary class=\"wfo-faq-q\">Which optimisation criterion should I choose in MetaTrader 5?<\/summary>\n      <div class=\"wfo-faq-a\">For a first look at the inputs, Complex Criterion max is a reasonable choice. It combines the number of trades, drawdown and several performance measures into one score.<\/div>\n    <\/details>\n    <details class=\"wfo-faq-item\">\n      <summary class=\"wfo-faq-q\">What forward period should I set in the MT5 Strategy Tester?<\/summary>\n      <div class=\"wfo-faq-a\">No ratio fits every robot. 1\/3 or 1\/4 keeps most of the history for the search and leaves the last third or quarter for the check. Make sure the forward part still holds enough trades. To start the check on an exact date, choose Custom in the same list.<\/div>\n    <\/details>\n    <details class=\"wfo-faq-item\">\n      <summary class=\"wfo-faq-q\">Why does the forward test run fewer passes than the optimisation?<\/summary>\n      <div class=\"wfo-faq-a\">MetaTrader 5 sends only the best runs to the forward period: 10% after a complete search and 25% after a genetic one, topped up to 256 runs. If the search had fewer than 256 runs, all of them are checked.<\/div>\n    <\/details>\n    <details class=\"wfo-faq-item\">\n      <summary class=\"wfo-faq-q\">How many trades do you need for walk forward optimisation?<\/summary>\n      <div class=\"wfo-faq-a\">MetaTrader 5 sets no minimum, and no single figure fits every robot. The number depends on how often the strategy trades and how long the test runs. Make sure both the search part and the forward part hold enough trades that one or two of them cannot decide the result.<\/div>\n    <\/details>\n    <details class=\"wfo-faq-item\">\n      <summary class=\"wfo-faq-q\">Should I optimise lot size and Stop Loss?<\/summary>\n      <div class=\"wfo-faq-a\">The tester allows it, but traders usually keep both fixed. Lot size belongs to <a href=\"https:\/\/roboforex.com\/blog\/education\/money-management\/\" data-internallinksmanager029f6b8e52c=\"89\" title=\"Money management\">money management<\/a> and says nothing about the quality of the signal. A searched Stop Loss tends to drift wide, which hides losses on history and raises the risk on a live account.<\/div>\n    <\/details>\n  <\/div>\n  <script type=\"application\/ld+json\">\n  {\n    \"@context\": \"https:\/\/schema.org\",\n    \"@type\": \"FAQPage\",\n    \"mainEntity\": [\n      {\n        \"@type\": \"Question\",\n        \"name\": \"What is the difference between backtesting and walk forward optimisation?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"A plain backtest checks one set of inputs on the chosen history. Walk forward optimisation splits the history in two: the tester searches for the best inputs on the first part and checks them on the second, which played no part in the search.\"\n        }\n      },\n      {\n        \"@type\": \"Question\",\n        \"name\": \"Does walk forward optimisation remove overfitting?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"It lowers the risk and helps you drop weak inputs early. A combination with a high profit in the search period and a loss in the forward period may be fitted to that history by chance, and the forward check shows it.\"\n        }\n      },\n      {\n        \"@type\": \"Question\",\n        \"name\": \"Which optimisation criterion should I choose in MetaTrader 5?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"For a first look at the inputs, Complex Criterion max is a reasonable choice. It combines the number of trades, drawdown and several performance measures into one score.\"\n        }\n      },\n      {\n        \"@type\": \"Question\",\n        \"name\": \"What forward period should I set in the MT5 Strategy Tester?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"No ratio fits every robot. 1\/3 or 1\/4 keeps most of the history for the search and leaves the last third or quarter for the check. Make sure the forward part still holds enough trades. To start the check on an exact date, choose Custom in the same list.\"\n        }\n      },\n      {\n        \"@type\": \"Question\",\n        \"name\": \"Why does the forward test run fewer passes than the optimisation?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"MetaTrader 5 sends only the best runs to the forward period: 10% after a complete search and 25% after a genetic one, topped up to 256 runs. If the search had fewer than 256 runs, all of them are checked.\"\n        }\n      },\n      {\n        \"@type\": \"Question\",\n        \"name\": \"How many trades do you need for walk forward optimisation?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"MetaTrader 5 sets no minimum, and no single figure fits every robot. The number depends on how often the strategy trades and how long the test runs. Make sure both the search part and the forward part hold enough trades that one or two of them cannot decide the result.\"\n        }\n      },\n      {\n        \"@type\": \"Question\",\n        \"name\": \"Should I optimise lot size and Stop Loss?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"The tester allows it, but traders usually keep both fixed. Lot size belongs to money management and says nothing about the quality of the signal. A searched Stop Loss tends to drift wide, which hides losses on history and raises the risk on a live account.\"\n        }\n      }\n    ]\n  }\n  <\/script>\n\n  <div class=\"wfo-read-next\">\n    <div class=\"wfo-read-next-label\">Read next<\/div>\n    <ul>\n      <li><a href=\"https:\/\/roboforex.com\/blog\/education\/a-15-minute-backtest-how-to-test-a-trading-robot-in-metatrader-5\/\">A 15-Minute Backtest: How to Test a Trading Robot in MetaTrader 5<\/a>: the plain test to run before any optimisation.<\/li>\n      <li><a href=\"https:\/\/roboforex.com\/blog\/education\/trading-robot-settings\/\">Trading Robot Settings Explained: Lot Size, Stops and Magic Number<\/a>: the risk inputs this guide keeps fixed.<\/li>\n      <li><a href=\"https:\/\/roboforex.com\/blog\/education\/trading-robot-checklist\/\">Trading Robot Checklist: 15 Checks From Installed to First Trade<\/a>: the full path from installing a robot to its first live trade.<\/li>\n      <li><a href=\"https:\/\/roboforex.com\/blog\/education\/automated-trading-strategies\/\">Automated Trading Strategies: How to Turn Your Idea Into Rules a Robot Can Execute<\/a>: where the rules you optimise come from.<\/li>\n    <\/ul>\n  <\/div>\n\n  <div class=\"wfo-disclaimer\">\n    <em>Any information provided in articles on this website is based solely on the personal opinions of the authors. These articles should not be construed as trading recommendations or a call to action. The authors and RoboForex accept no responsibility for the results of any trades made on the basis of these recommendations and reviews. Past performance is not indicative of future results. Trading <a href=\"https:\/\/roboforex.com\/forex-trading\/assets\/stocks\/\" data-internallinksmanager029f6b8e52c=\"10\" title=\"invest in stocks\">stocks<\/a> and CFDs involves a high risk of capital loss.<\/em>\n  <\/div>\n\n<\/div>\n<\/div>\n<!-- ==================== \/BLOCK 1 ==================== -->\n\n<!-- ==================== BLOCK 2: STYLES ==================== -->\n<style>\n:root {\n  --green:        #5ab02b;\n  --green-hover:  #489022;\n  --link:         #0384c6;\n  --text:         #2E3A59;\n  --text-light:   #666666;\n  --heading:      #2E3A59;\n  --border:       #e0e0e0;\n  --table-head:   #f5f5f5;\n  --table-stripe: #fafafa;\n  --promo-bg:     #f8f8f8;\n  --promo-border: #e8e8e8;\n  --radius:       4px;\n  --font:         'Roboto', Arial, sans-serif;\n  --max-w:        1160px;\n}\n\n\/* Outer wrapper. No side padding, decision 0014. *\/\n.wfo-wrap {\n  box-sizing: border-box; max-width: var(--max-w); margin: 0 auto; padding: 0;\n}\n\n\/* Base prose *\/\n.wfo {\n  font-family: var(--font);\n  font-size: 20px;\n  line-height: 1.7;\n  color: var(--text);\n  max-width: var(--max-w);\n}\n.wfo.wfo, .wfo.wfo * {\n  font-family: 'Roboto', Arial, sans-serif !important;\n}\n.wfo p { margin: 0 0 20px; }\n.wfo p a,\n.wfo li a,\n.wfo figcaption a,\n.wfo td a,\n.wfo .wfo-faq-a a,\n.wfo .wfo-disclaimer a {\n  color: var(--link);\n  text-decoration: none;\n}\n.wfo p a:hover,\n.wfo li a:hover,\n.wfo figcaption a:hover,\n.wfo td a:hover,\n.wfo .wfo-faq-a a:hover,\n.wfo .wfo-disclaimer a:hover {\n  text-decoration: none;\n}\n.wfo strong { color: var(--heading); font-weight: 700; }\n.wfo em { font-style: italic; }\n.wfo ul {\n  padding-left: 22px; margin: 0 0 18px;\n  display: flex; flex-direction: column; gap: 6px;\n}\n.wfo ol { padding-left: 26px; margin: 0 0 20px; }\n.wfo li { font-size: 20px; line-height: 1.7; color: var(--text); }\n\n\/* Headings. No border-bottom, no padding-bottom. No H1 rule. *\/\n.wfo h2 {\n  font-size: 32px; font-weight: 700; color: var(--heading);\n  margin: 40px 0 16px; scroll-margin-top: 68px;\n}\n.wfo h3 {\n  font-size: 22px; font-weight: 700; color: var(--heading);\n  margin: 28px 0 12px; scroll-margin-top: 68px;\n}\n\n\/* TL;DR, decisions 0024, 0031 *\/\n.wfo .wfo-tldr {\n  background: var(--promo-bg); border: 1px solid var(--border);\n  border-radius: var(--radius); padding: 18px 24px; margin: 24px 0 28px;\n}\n.wfo .wfo-tldr-label {\n  font-size: 14px; font-weight: 700; letter-spacing: .08em;\n  text-transform: uppercase; color: var(--text-light); margin: 0 0 8px;\n}\n.wfo .wfo-tldr ol { margin: 0; padding-left: 22px; }\n.wfo .wfo-tldr li { font-size: 17px; line-height: 1.6; margin: 0 0 6px; }\n.wfo .wfo-tldr li:last-child { margin-bottom: 0; }\n\n\/* History split infographic. Text in HTML, no SVG text. *\/\n.wfo-split { margin: 24px 0 28px; max-width: 900px; }\n.wfo-split-bar {\n  display: flex; border: 1px solid var(--border); border-radius: var(--radius);\n  overflow: hidden; font-size: 15px; font-weight: 700; color: var(--heading);\n  line-height: 1.3;\n}\n.wfo-split-is, .wfo-split-oos {\n  padding: 14px 12px; min-width: 0; text-align: center;\n}\n.wfo-split-is { flex: 3; background: #e6f2de; }\n.wfo-split-oos { flex: 1; background: #dcecf6; border-left: 2px solid #fff; }\n.wfo-split-axis {\n  display: flex; font-size: 13px; color: var(--text-light);\n  margin: 6px 0 14px; line-height: 1.4;\n}\n.wfo-ax-a { flex: 3; min-width: 0; }\n.wfo-ax-b { flex: 1; min-width: 0; display: flex; justify-content: space-between; gap: 6px; }\n.wfo-split-legend { display: flex; flex-direction: column; gap: 10px; }\n.wfo-split-item {\n  display: flex; align-items: flex-start; gap: 10px;\n  font-size: 16px; line-height: 1.55; color: var(--text);\n}\n.wfo-swatch {\n  flex: 0 0 auto; width: 14px; height: 14px; margin-top: 5px;\n  border-radius: 2px; border: 1px solid var(--border);\n}\n.wfo-swatch-is { background: #e6f2de; }\n.wfo-swatch-oos { background: #dcecf6; }\n\n\/* Rolling windows timeline (V1). 14 month columns, Jan 2025 to Feb 2026.\n   Text in HTML, results as words, colour is never the only carrier. *\/\n.wfo-roll { margin: 24px 0 8px; max-width: 900px; }\n.wfo-roll-axis, .wfo-roll-row {\n  display: grid; grid-template-columns: 24px minmax(0, 1fr) 150px;\n  gap: 10px; align-items: center;\n}\n.wfo-roll-axis { margin: 0 0 6px; font-size: 13px; color: var(--text-light); line-height: 1.3; }\n.wfo-roll-head { font-weight: 700; }\n.wfo-roll-ticks, .wfo-roll-track { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); }\n.wfo-roll-t1 { grid-column: 1 \/ 5; }\n.wfo-roll-t7 { grid-column: 7 \/ 11; }\n.wfo-roll-t13 { grid-column: 13 \/ 15; }\n.wfo-roll-row { margin: 0 0 8px; }\n.wfo-roll-n { font-size: 15px; font-weight: 700; color: var(--heading); text-align: center; }\n.wfo-roll-track {\n  height: 34px; background: var(--table-stripe);\n  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;\n}\n.wfo-roll-s, .wfo-roll-f { grid-row: 1; display: flex; align-items: center; justify-content: center; }\n.wfo-roll-s { background: #e6f2de; font-size: 13px; font-weight: 700; color: var(--heading); }\n.wfo-roll-f { background: #dcecf6; border-left: 2px solid #fff; }\n.wfo-c1s { grid-column: 1 \/ 7; }  .wfo-c1f { grid-column: 7 \/ 9; }\n.wfo-c2s { grid-column: 3 \/ 9; }  .wfo-c2f { grid-column: 9 \/ 11; }\n.wfo-c3s { grid-column: 5 \/ 11; } .wfo-c3f { grid-column: 11 \/ 13; }\n.wfo-c4s { grid-column: 7 \/ 13; } .wfo-c4f { grid-column: 13 \/ 15; }\n.wfo-roll-res { font-size: 15px; line-height: 1.35; color: var(--text); }\n.wfo-roll-legend {\n  display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0 0 34px;\n  font-size: 14px; color: var(--text-light);\n}\n.wfo-roll-legend > span { display: inline-flex; align-items: center; gap: 8px; }\n.wfo-roll-legend .wfo-swatch { margin-top: 0; }\n\n\/* Plateau vs peak. Bars are CSS boxes, heights by class. *\/\n.wfo-pp {\n  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));\n  gap: 16px; margin: 24px 0 28px; max-width: 900px;\n}\n.wfo-pp-card {\n  border: 1px solid var(--border); border-radius: var(--radius);\n  padding: 16px 18px; background: #fff;\n}\n.wfo-pp-title {\n  font-size: 14px; font-weight: 700; letter-spacing: .08em;\n  text-transform: uppercase; color: var(--text-light); margin: 0 0 12px;\n}\n.wfo-pp-bars {\n  display: flex; align-items: flex-end; gap: 10px; height: 120px;\n  border-bottom: 1px solid var(--border);\n}\n.wfo-pp-b { flex: 1; background: #c9d4e2; border-radius: 2px 2px 0 0; display: block; }\n.wfo-pp-b.wfo-pp-pick { background: #6d7f99; }\n.wfo-h20 { height: 20%; } .wfo-h25 { height: 25%; } .wfo-h30 { height: 30%; }\n.wfo-h35 { height: 35%; } .wfo-h70 { height: 70%; } .wfo-h75 { height: 75%; }\n.wfo-h80 { height: 80%; } .wfo-h85 { height: 85%; } .wfo-h95 { height: 95%; }\n.wfo-pp-axis {\n  display: flex; gap: 10px; font-size: 13px; color: var(--text-light);\n  margin: 4px 0 10px;\n}\n.wfo-pp-axis span { flex: 1; text-align: center; }\n.wfo-pp-text { font-size: 15px; line-height: 1.5; color: var(--text); }\n.wfo-pp-note {\n  grid-column: 1 \/ -1; font-size: 14px; font-style: italic;\n  color: var(--text-light); line-height: 1.5;\n}\n\n\/* Stage sequence: ring nodes with grey connectors, decision 0033.\n   Numbers come from a CSS counter, ASCII only. *\/\n.wfo ol.wfo-stages {\n  list-style: none; margin: 28px 0 32px; padding: 0;\n  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));\n  gap: 16px; counter-reset: wfo-stage;\n}\n.wfo ol.wfo-stages > li {\n  position: relative; counter-increment: wfo-stage;\n  padding: 52px 0 0; margin: 0;\n  display: flex; flex-direction: column; gap: 4px;\n}\n.wfo ol.wfo-stages > li::before {\n  content: counter(wfo-stage);\n  position: absolute; top: 0; left: 0; z-index: 1;\n  width: 40px; height: 40px; box-sizing: border-box;\n  border: 2px solid var(--green); border-radius: 50%; background: #fff;\n  display: flex; align-items: center; justify-content: center;\n  font-size: 18px; font-weight: 700; color: var(--heading); line-height: 1;\n}\n.wfo ol.wfo-stages > li::after {\n  content: ''; position: absolute; top: 19px; left: 40px; right: -16px;\n  height: 2px; background: var(--border);\n}\n.wfo ol.wfo-stages > li:last-child::after { display: none; }\n.wfo .wfo-stage-title {\n  font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--heading);\n}\n.wfo .wfo-stage-text { font-size: 15px; line-height: 1.5; color: var(--text-light); }\n\n\/* Read next, decision 0028 *\/\n.wfo .wfo-read-next {\n  border-top: 1px solid var(--border);\n  padding: 20px 0 0; margin: 36px 0 28px;\n}\n.wfo .wfo-read-next-label {\n  font-size: 14px; font-weight: 700; letter-spacing: .08em;\n  text-transform: uppercase; color: var(--text-light); margin: 0 0 8px;\n}\n.wfo .wfo-read-next ul { margin: 0; padding-left: 22px; }\n.wfo .wfo-read-next li { font-size: 17px; line-height: 1.6; margin: 0 0 6px; }\n.wfo .wfo-read-next li:last-child { margin-bottom: 0; }\n\n\/* Tables. Two-column tables are capped at 720px, wider ones use the full width. *\/\n.wfo-table-wrap {\n  max-width: 720px; overflow-x: auto; margin: 24px 0;\n  border: 1px solid var(--border); border-radius: var(--radius);\n}\n.wfo-table-wrap.wfo-table-wide { max-width: none; }\n.wfo table.rf {\n  width: 100%; border-collapse: collapse; font-size: 16px; margin-bottom: 0;\n}\n.wfo table.rf thead tr { background: var(--table-head); }\n.wfo table.rf th {\n  padding: 10px 14px; text-align: left; font-size: 16px; font-weight: 700;\n  color: var(--heading); border-bottom: 2px solid var(--border);\n}\n.wfo table.rf td {\n  padding: 10px 14px; border-bottom: 1px solid var(--border);\n  vertical-align: top; line-height: 1.45; color: var(--text);\n}\n.wfo table.rf tr:last-child td { border-bottom: none; }\n.wfo table.rf tr:nth-child(even) td { background: var(--table-stripe); }\n\n\/* Images: native WordPress image block, overflow guard only, decision 0005 *\/\n.wfo .wp-block-image { margin: 24px 0; }\n.wfo .wp-block-image img { max-width: 100%; height: auto; display: block; }\n.wfo .wp-block-image figcaption { font-size: 14px; font-style: italic; color: var(--text-light); line-height: 1.5; margin-top: 8px; }\n\n\/* Promo *\/\n.wfo-promo {\n  background: var(--promo-bg); border: 1px solid var(--promo-border);\n  border-radius: var(--radius); margin: 36px 0; padding: 24px 28px;\n  display: grid; grid-template-columns: 1fr auto;\n  align-items: center; gap: 24px;\n}\n.wfo-promo-title {\n  font-size: 20px; font-weight: 700; color: var(--heading);\n  margin-bottom: 5px; line-height: 1.3;\n}\n.wfo-promo-sub { font-size: 15px; color: var(--text-light); line-height: 1.5; }\n.wfo-promo-actions { display: flex; gap: 8px; flex-wrap: wrap; }\n.wfo-promo-btn {\n  display: inline-block;\n  background: var(--green) !important;\n  color: #fff !important;\n  text-decoration: none !important;\n  font-size: 15px; font-weight: 700; padding: 10px 15px;\n  border-radius: 3px; white-space: nowrap; transition: background .15s;\n}\n.wfo-promo-btn:hover { background: var(--green-hover) !important; }\n\n\/* CTA, a bare centred link *\/\n.wfo-cta { text-align: center; margin: 36px 0; }\n.wfo-cta a {\n  display: inline-block;\n  background: var(--green) !important;\n  color: #fff !important;\n  text-decoration: none !important;\n  font-size: 20px; font-weight: 700; padding: 13px 32px;\n  border-radius: 3px; transition: background .15s;\n}\n.wfo-cta a:hover { background: var(--green-hover) !important; }\n\n\/* FAQ. Native <details>, ASCII + and - only. Decision 0003. *\/\n.wfo-faq { margin: 8px 0; max-width: 900px; }\n.wfo-faq details.wfo-faq-item { border-bottom: 1px solid var(--border); }\n.wfo-faq details.wfo-faq-item:last-child { border-bottom: none; }\n.wfo-faq details.wfo-faq-item summary.wfo-faq-q {\n  list-style: none; cursor: pointer; display: flex; align-items: center;\n  justify-content: space-between; gap: 12px; padding: 16px 0; margin: 0;\n  font-size: 18px; font-weight: 700; color: var(--heading); user-select: none;\n}\n.wfo-faq details.wfo-faq-item summary.wfo-faq-q::-webkit-details-marker { display: none; }\n.wfo-faq details.wfo-faq-item summary.wfo-faq-q::after {\n  content: '+'; flex-shrink: 0; font-size: 22px; font-weight: 300;\n  color: var(--green); line-height: 1;\n}\n.wfo-faq details.wfo-faq-item[open] summary.wfo-faq-q::after { content: '-'; }\n.wfo-faq .wfo-faq-a {\n  font-size: 18px; color: var(--text); line-height: 1.65; margin: 0 0 16px;\n  padding: 0; animation: wfo-faq-open .18s ease;\n}\n@keyframes wfo-faq-open {\n  from { opacity: 0; transform: translateY(-4px); }\n  to   { opacity: 1; transform: translateY(0); }\n}\n\n\/* Disclaimer. Always last. *\/\n.wfo-disclaimer {\n  font-size: 12px; color: var(--text-light); line-height: 1.65;\n  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border);\n}\n.wfo-disclaimer em { font-style: italic; }\n\n\/* Mobile *\/\n@media (max-width: 600px) {\n  .wfo h2 { font-size: 24px; margin: 32px 0 14px; }\n  .wfo h3 { font-size: 19px; }\n\n  .wfo-table-wrap { border: none; overflow-x: visible; }\n  .wfo table.rf thead { display: none; }\n  .wfo table.rf tr {\n    display: block; margin-bottom: 12px;\n    border: 1px solid var(--border); border-radius: var(--radius);\n  }\n  .wfo table.rf td { display: block; border-bottom: 1px solid var(--border); }\n  .wfo table.rf td::before {\n    content: attr(data-label);\n    display: block; font-size: 13px; font-weight: 700;\n    text-transform: uppercase; letter-spacing: .04em;\n    color: var(--text-light); margin: 0 0 2px;\n  }\n\n  .wfo-promo { grid-template-columns: 1fr; padding: 20px; }\n  .wfo-cta a { font-size: 18px; padding: 12px 20px; }\n\n  .wfo-split-bar { font-size: 13px; }\n  .wfo-split-is, .wfo-split-oos { padding: 12px 6px; }\n  .wfo-ax-fd { display: none; }\n  .wfo-ax-b { justify-content: flex-end; }\n  .wfo-split-item { font-size: 15px; }\n\n  .wfo-roll-axis, .wfo-roll-row { grid-template-columns: 20px minmax(0, 1fr); gap: 8px; }\n  .wfo-roll-head { display: none; }\n  .wfo-roll-res { grid-column: 2; font-size: 14px; margin-top: -4px; }\n  .wfo-roll-row { margin-bottom: 12px; }\n  .wfo-roll-legend { margin-left: 28px; }\n\n  .wfo-pp { grid-template-columns: 1fr; }\n  .wfo-pp-bars { height: 90px; }\n\n  .wfo ol.wfo-stages { grid-template-columns: 1fr; gap: 0; }\n  .wfo ol.wfo-stages > li { padding: 6px 0 22px 56px; min-height: 40px; }\n  .wfo ol.wfo-stages > li::after {\n    display: block; top: 40px; bottom: 0; left: 19px; right: auto;\n    width: 2px; height: auto;\n  }\n  .wfo ol.wfo-stages > li:last-child::after { display: none; }\n\n  .wfo-faq details.wfo-faq-item summary.wfo-faq-q { font-size: 17px; }\n  .wfo-faq .wfo-faq-a { font-size: 17px; }\n}\n<\/style>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>How to run walk forward optimisation in the MetaTrader 5 Strategy Tester, read the Forward Results tab and pick robot settings that hold up on unseen history.<\/p>\n","protected":false},"author":20,"featured_media":22524,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","jetpack_post_was_ever_published":false},"categories":[29],"tags":[3065,250,3112],"class_list":["post-22523","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-education","tag-expert-avdisor-mt5","tag-trading-robot","tag-walk-forward-analysis"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Walk Forward Optimisation in MT5: Step-by-Step Guide<\/title>\n<meta name=\"description\" content=\"Walk forward optimisation in MT5 step by step: set input ranges, pick a criterion, add a forward period and keep robot settings that hold on new data.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/roboforex.com\/blog\/education\/walk-forward-optimization-mt5\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Walk Forward Optimisation in MT5: Step-by-Step Guide\" \/>\n<meta property=\"og:description\" content=\"Walk forward optimisation in MT5 step by step: set input ranges, pick a criterion, add a forward period and keep robot settings that hold on new data.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/roboforex.com\/blog\/education\/walk-forward-optimization-mt5\/\" \/>\n<meta property=\"og:site_name\" content=\"RoboForex Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoboForexOfficial\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-19T12:42:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-19T12:42:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/11\/walk-forward-optimisation-mt5.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1672\" \/>\n\t<meta property=\"og:image:height\" content=\"941\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@RoboForexGlobal\" \/>\n<meta name=\"twitter:site\" content=\"@RoboForexGlobal\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andrey Goilov\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"19 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/walk-forward-optimization-mt5\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/walk-forward-optimization-mt5\\\/\"},\"headline\":\"Walk Forward Optimisation in MetaTrader 5: How to Find Robot Settings That Hold Up\",\"datePublished\":\"2026-11-19T12:42:31+00:00\",\"dateModified\":\"2026-11-19T12:42:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/walk-forward-optimization-mt5\\\/\"},\"wordCount\":3671,\"publisher\":{\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/walk-forward-optimization-mt5\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/walk-forward-optimisation-mt5.png\",\"keywords\":[\"expert avdisor mt5\",\"trading robot\",\"walk forward analysis\"],\"articleSection\":[\"Education\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/walk-forward-optimization-mt5\\\/\",\"url\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/walk-forward-optimization-mt5\\\/\",\"name\":\"Walk Forward Optimisation in MT5: Step-by-Step Guide\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/walk-forward-optimization-mt5\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/walk-forward-optimization-mt5\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/walk-forward-optimisation-mt5.png\",\"datePublished\":\"2026-11-19T12:42:31+00:00\",\"dateModified\":\"2026-11-19T12:42:35+00:00\",\"description\":\"Walk forward optimisation in MT5 step by step: set input ranges, pick a criterion, add a forward period and keep robot settings that hold on new data.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/walk-forward-optimization-mt5\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/walk-forward-optimization-mt5\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/walk-forward-optimization-mt5\\\/#primaryimage\",\"url\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/walk-forward-optimisation-mt5.png\",\"contentUrl\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/walk-forward-optimisation-mt5.png\",\"width\":1672,\"height\":941,\"caption\":\"Walk Forward Optimisation in MetaTrader 5: How to Find Robot Settings That Hold Up\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/walk-forward-optimization-mt5\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Main\",\"item\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Education\",\"item\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Walk Forward Optimisation in MetaTrader 5: How to Find Robot Settings That Hold Up\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/\",\"name\":\"RoboForex Blog\",\"description\":\"Blog RoboForex for Traders: Trading News, Analysis, Forecasts - forex and stocks | RoboForex Blog\",\"publisher\":{\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/#organization\"},\"alternateName\":\"RoboForex Ltd\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/#organization\",\"name\":\"RoboForex Ltd\",\"alternateName\":\"RoboForex\",\"url\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/android-chrome-512x512-1.png\",\"contentUrl\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/android-chrome-512x512-1.png\",\"width\":512,\"height\":512,\"caption\":\"RoboForex Ltd\"},\"image\":{\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoboForexOfficial\\\/\",\"https:\\\/\\\/x.com\\\/RoboForexGlobal\",\"https:\\\/\\\/www.youtube.com\\\/RoboForexOfficial\",\"https:\\\/\\\/www.instagram.com\\\/roboforex\\\/\"],\"address\":{\"@type\":\"PostalAddress\",\"streetAddress\":\"2118 Guava Street, Belama Phase 1\",\"addressLocality\":\"Belize City\",\"addressRegion\":\"BZ\",\"postalCode\":\"00000\",\"addressCountry\":\"BZ\"},\"contactPoint\":{\"@type\":\"ContactPoint\",\"telephone\":\"+593 964 256 286\",\"contactType\":\"customer service\",\"availableLanguage\":\"en\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Walk Forward Optimisation in MT5: Step-by-Step Guide","description":"Walk forward optimisation in MT5 step by step: set input ranges, pick a criterion, add a forward period and keep robot settings that hold on new data.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/roboforex.com\/blog\/education\/walk-forward-optimization-mt5\/","og_locale":"en_US","og_type":"article","og_title":"Walk Forward Optimisation in MT5: Step-by-Step Guide","og_description":"Walk forward optimisation in MT5 step by step: set input ranges, pick a criterion, add a forward period and keep robot settings that hold on new data.","og_url":"https:\/\/roboforex.com\/blog\/education\/walk-forward-optimization-mt5\/","og_site_name":"RoboForex Blog","article_publisher":"https:\/\/www.facebook.com\/RoboForexOfficial\/","article_published_time":"2026-11-19T12:42:31+00:00","article_modified_time":"2026-11-19T12:42:35+00:00","og_image":[{"width":1672,"height":941,"url":"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/11\/walk-forward-optimisation-mt5.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_creator":"@RoboForexGlobal","twitter_site":"@RoboForexGlobal","twitter_misc":{"Written by":"Andrey Goilov","Est. reading time":"19 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/roboforex.com\/blog\/education\/walk-forward-optimization-mt5\/#article","isPartOf":{"@id":"https:\/\/roboforex.com\/blog\/education\/walk-forward-optimization-mt5\/"},"headline":"Walk Forward Optimisation in MetaTrader 5: How to Find Robot Settings That Hold Up","datePublished":"2026-11-19T12:42:31+00:00","dateModified":"2026-11-19T12:42:35+00:00","mainEntityOfPage":{"@id":"https:\/\/roboforex.com\/blog\/education\/walk-forward-optimization-mt5\/"},"wordCount":3671,"publisher":{"@id":"https:\/\/roboforex.com\/blog\/#organization"},"image":{"@id":"https:\/\/roboforex.com\/blog\/education\/walk-forward-optimization-mt5\/#primaryimage"},"thumbnailUrl":"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/11\/walk-forward-optimisation-mt5.png","keywords":["expert avdisor mt5","trading robot","walk forward analysis"],"articleSection":["Education"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/roboforex.com\/blog\/education\/walk-forward-optimization-mt5\/","url":"https:\/\/roboforex.com\/blog\/education\/walk-forward-optimization-mt5\/","name":"Walk Forward Optimisation in MT5: Step-by-Step Guide","isPartOf":{"@id":"https:\/\/roboforex.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/roboforex.com\/blog\/education\/walk-forward-optimization-mt5\/#primaryimage"},"image":{"@id":"https:\/\/roboforex.com\/blog\/education\/walk-forward-optimization-mt5\/#primaryimage"},"thumbnailUrl":"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/11\/walk-forward-optimisation-mt5.png","datePublished":"2026-11-19T12:42:31+00:00","dateModified":"2026-11-19T12:42:35+00:00","description":"Walk forward optimisation in MT5 step by step: set input ranges, pick a criterion, add a forward period and keep robot settings that hold on new data.","breadcrumb":{"@id":"https:\/\/roboforex.com\/blog\/education\/walk-forward-optimization-mt5\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/roboforex.com\/blog\/education\/walk-forward-optimization-mt5\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/roboforex.com\/blog\/education\/walk-forward-optimization-mt5\/#primaryimage","url":"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/11\/walk-forward-optimisation-mt5.png","contentUrl":"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/11\/walk-forward-optimisation-mt5.png","width":1672,"height":941,"caption":"Walk Forward Optimisation in MetaTrader 5: How to Find Robot Settings That Hold Up"},{"@type":"BreadcrumbList","@id":"https:\/\/roboforex.com\/blog\/education\/walk-forward-optimization-mt5\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Main","item":"https:\/\/roboforex.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Education","item":"https:\/\/roboforex.com\/blog\/education\/"},{"@type":"ListItem","position":3,"name":"Walk Forward Optimisation in MetaTrader 5: How to Find Robot Settings That Hold Up"}]},{"@type":"WebSite","@id":"https:\/\/roboforex.com\/blog\/#website","url":"https:\/\/roboforex.com\/blog\/","name":"RoboForex Blog","description":"Blog RoboForex for Traders: Trading News, Analysis, Forecasts - forex and stocks | RoboForex Blog","publisher":{"@id":"https:\/\/roboforex.com\/blog\/#organization"},"alternateName":"RoboForex Ltd","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/roboforex.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/roboforex.com\/blog\/#organization","name":"RoboForex Ltd","alternateName":"RoboForex","url":"https:\/\/roboforex.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/roboforex.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/android-chrome-512x512-1.png","contentUrl":"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/android-chrome-512x512-1.png","width":512,"height":512,"caption":"RoboForex Ltd"},"image":{"@id":"https:\/\/roboforex.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoboForexOfficial\/","https:\/\/x.com\/RoboForexGlobal","https:\/\/www.youtube.com\/RoboForexOfficial","https:\/\/www.instagram.com\/roboforex\/"],"address":{"@type":"PostalAddress","streetAddress":"2118 Guava Street, Belama Phase 1","addressLocality":"Belize City","addressRegion":"BZ","postalCode":"00000","addressCountry":"BZ"},"contactPoint":{"@type":"ContactPoint","telephone":"+593 964 256 286","contactType":"customer service","availableLanguage":"en"}}]}},"views":"","jetpack_featured_media_url":"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/11\/walk-forward-optimisation-mt5.png","_links":{"self":[{"href":"https:\/\/roboforex.com\/blog\/wp-json\/wp\/v2\/posts\/22523","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/roboforex.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/roboforex.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/roboforex.com\/blog\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/roboforex.com\/blog\/wp-json\/wp\/v2\/comments?post=22523"}],"version-history":[{"count":1,"href":"https:\/\/roboforex.com\/blog\/wp-json\/wp\/v2\/posts\/22523\/revisions"}],"predecessor-version":[{"id":22525,"href":"https:\/\/roboforex.com\/blog\/wp-json\/wp\/v2\/posts\/22523\/revisions\/22525"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/roboforex.com\/blog\/wp-json\/wp\/v2\/media\/22524"}],"wp:attachment":[{"href":"https:\/\/roboforex.com\/blog\/wp-json\/wp\/v2\/media?parent=22523"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/roboforex.com\/blog\/wp-json\/wp\/v2\/categories?post=22523"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/roboforex.com\/blog\/wp-json\/wp\/v2\/tags?post=22523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}