EWFO Documentation
A step-by-step guide to Enhanced Walk Forward Optimizer: exactly what to click, and which settings to start with. The basic path comes first in each section; advanced options follow.
Prefer to watch? This page has a video lesson
Module 5: Add-on Tools · Training Hub · free with a GSB Pro account
Introduction & Concepts
- Standard GSB systems: no. Use GSB's own walk-forward, which is much faster.
- GSB systems you've added your own code to: yes. Those can't be walked forward inside GSB any more.
- Hand-written systems, or systems from other sources: yes.
EWFO is a separate Trademaid product. It reads optimisation files from TradeStation, MultiCharts or GSB. Afterwards you can optionally combine your chosen systems' trade reports in Portfolio Analyst Pro, another separate Trademaid product.
What is walk-forward optimisation?
Walk-forward tests whether your parameter choices hold up over time. Instead of optimising over all your data at once (which invites curve-fitting), the data is split into a series of in-sample (optimisation) and out-of-sample (test) periods:
- Optimise over an in-sample period to find the best inputs.
- Test those inputs on the out-of-sample period that follows.
- Roll forward and repeat across the data.
- Join up all the out-of-sample results to see forward-tested performance.
Why use EWFO?
Trademaid describes EWFO as a much more powerful and faster version of TradeStation's and MultiCharts' walk-forward optimiser. From Trademaid's help:
- Speed: about 4 times faster than TradeStation's WFO (Trademaid's figure)
- Large files: files greater than 3 GB, limited only by your RAM
- Many more fitness types, with weighting of several at once
- Out-of-sample and in-sample curves on one graph
- Change costs or fitness without re-optimising in TradeStation or MultiCharts
- Nth best, cluster analysis and Monte Carlo walk-forward stress tests
- Batch mode and command line for many files at once
The whole workflow
- Install EWFO (Installation & Setup).
- Create optimisation files in TradeStation, MultiCharts or GSB (Running Walk-Forward Tests).
- Open them in EWFO, set the controls and click Run (Screen Overview).
- Read the reports (Reading the Results).
- Choose fitness without curve-fitting it (Fitness).
- Stress test: stability, ranges, Nth best, clusters, Monte Carlo (Advanced Analysis Tools).
- Automate with batch mode and the command line (Batch Mode).
Trademaid also has an introduction video: Watch on YouTube
Installation & Setup
Watch the lesson: EWFO Lesson 1Installing EWFO and Finding Your Way Around · in the Training Hub (free GSB Pro account)What you need
- Windows
- TradeStation, MultiCharts or GSB to create the optimisation files
- Enough memory: EWFO loads the optimisation files into RAM, so it won't work if they're bigger than your RAM
- Microsoft .NET Framework (see step 6 below)
Install EWFO, step by step
- Open Trademaid's EWFO page and download the trial installer. It's a 21-day trial. (If you're not logged in to GSB Pro, you'll create your free account first.)
- Run the installer. If Windows Defender warns you, click More info, then run it anyway. Trademaid's help notes you may need to turn off your firewall or antivirus while installing.
- Leave the install folder on its default:
C:\EWFO(the default since April 2020). Older guides showC:\Program Files (x86)\EWFO\, but EWFO can't update itself there unless it runs as administrator. The installer from December 2025 is digitally signed. - Start EWFO by double-clicking
WalkForwardOptimizer.exein that folder. Make a desktop shortcut to it so it's easy to find next time. - TradeStation users: the first time, right-click EWFO and choose Run as administrator, so EWFO can create the link to TradeStation's files (see where TradeStation saves the files).
- If EWFO won't even open, install Microsoft's .NET Framework. Recent builds check for this and offer to install the version they need. The required version has changed over the years, so check Trademaid's current installation help for the one to install.
Licence
According to Trademaid's help, EWFO is licensed per physical computer and you can run as many copies as you like on that machine. The licence can be moved if you upgrade your PC, extra licences are available, and updates are free. For current prices, extra licences, or running EWFO on a virtual machine, see Trademaid's EWFO purchase and licensing page or contact Trademaid support.

EWFO's control inputs, where you set the data folder, dates, runs, costs and fitness. Your build may look a little different.
Running Walk-Forward Tests
Watch the lesson: EWFO Lesson 2Feeding EWFO: TradeStation, MultiCharts and GSB · in the Training Hub (free GSB Pro account)EWFO doesn't optimise your system itself. It reads the optimisation files that TradeStation, MultiCharts or GSB produce, then does the walk-forward on those. So the first job is to make good files: realistic costs, sensible ranges and enough iterations.
Before you optimise: include costs
Always include realistic slippage and commission in TradeStation or MultiCharts. A genetic optimisation spends most of its effort near the highest fitness. Without costs, that can be a high-profit area of thousands of tiny trades. Trademaid's example: $100,000 profit from 10,000 trades averaging $10 isn't tradable. With $12.50 per side of slippage and commission, the search moves to fewer trades with a bigger average trade.
TradeStation, step by step
Your EasyLanguage code doesn't need to change. You use TradeStation's own Walk-Forward Optimization.
- Prepare your workspace, chart and strategy, with realistic slippage and commission.
- Format the strategy. On the Inputs tab, set the optimisation range (start, stop, step) for each input you want to optimise. Click OK.
- Open Optimization Details and set Type to Walk-Forward.
- Look at Test Count (how many tests an exhaustive search would run). Choose the Method: if Test Count is under 5,000, choose Exhaustive; otherwise choose Genetic.
- If you chose Genetic, open Advanced Settings. Set Generations to 100 and adjust Population so you run at least 10,000 iterations, or 10% of the Test Count, whichever is larger. (This is Peter's preference from Trademaid's help.)
- Type a Walk-Forward Test Name. Make it unique: each test is saved in its own folder, named after the test, and that's the folder you'll open in EWFO.
- Click Optimize and let it finish.
Test Count too big? The optimisation may take too long, or the files may outgrow your memory. Increase the step between input values to bring the count down.
Where TradeStation saves the files: in WFO\Data inside the TradeStation installation folder, with a folder for each test. For TradeStation 9.5 that's C:\Program Files (x86)\TradeStation 9.5\WFO\Data. Builds since February 2024 detect whether you use TradeStation 9.5 or 10 and create a link to switch between them (which is why you run EWFO as administrator the first time).
MultiCharts, step by step
In MultiCharts, your code has to be extended for EWFO (and adjusted whenever you optimise more or fewer inputs). Then you use the MultiCharts optimiser.
- In the PowerLanguage Editor, import the example system
iwm.plathat comes with EWFO. It contains the EWFO function. (For MultiCharts .NET, Trademaid's help says to start fromewfo_test.plninstead.) - Add the EWFO details to your own code, as in the example: set MaxInputs to the number of inputs you're optimising, size the GA Input array to match, and pass each input into the array.
- Make the last line call
ewfowith a system name, the array and MaxInputs. Use a unique system name each time you optimise. - In Strategy Properties, set Maximum number of bars study will reference to the larger of 100 and the largest value you'll optimise. (If a look-back can reach 200, set at least 200.)
- Start the optimisation, tick MultiCharts' own Walk Forward box, and choose the method: Exhaustive or Genetic. Older guides (including Trademaid's example) leave the box unticked; Peter Zwag (GSB's developer) now says you must tick it (December 2025). Use your typical slippage and commission.
- On the Optimizable Inputs tab, set each input's start value, end value and step.
- For Genetic, open Algorithm-specific Properties. Trademaid's example uses Custom Criteria, a population of 1,000 and 100 generations. Aim for plenty of iterations: at least 10% of the exhaustive count.
- Let the optimisation finish. The files are written to
C:\EWFO\Data, with a folder for each system name.
iwm.pla comes with the EWFO install in C:\EWFO (older builds put it elsewhere, so search for it if it isn't there). Not confirmed yet: what to put in Custom Criteria, and whether the MultiCharts .NET steps are otherwise the same. Check Trademaid's MultiCharts walk-forward help .From GSB
- In GSB, right-click a system.
- Choose Run Walk-Forward, then Genetic Algorithm WF to EWFO. There are multi-threaded and single-threaded versions, and Random Space versions too.
- GSB saves the files to
C:\GSB\GSB (Managers)\Data\ewfoFiles(orC:\GSB\Data\ewfoFileson a single-folder install). Open that folder in EWFO. - EWFO can't change GSB's GA Generations and GA Population, so set at least 100 x 100 in GSB's Walk-Forward section first.
- When to use it: Peter's own workflow is GSB's walk-forward, then Portfolio Analyst Pro. EWFO is optional for a plain GSB system, but you need it (or a TradeStation or MultiCharts walk-forward) once you've added code GSB can't walk forward.
Modified GSB system? Start from GSB's ranges
If you've added your own code to a GSB system, optimise it in TradeStation or MultiCharts as above. GSB's walk-forward has already shown where each input settled, so set your ranges a little wider than that, not much wider. In Trademaid's example the first input settled between 28 and 50. Peter used 25 to 75, but in hindsight would have used about 23 to 55, step 5. (Trademaid's help also notes that GSB can write files for EWFO.)
Open the files in EWFO
- Start EWFO and click Open.
- Browse to the optimisation: TradeStation's
WFO\Datafolder, orC:\EWFO\Datafor MultiCharts. - Select the folder named after your test (or system name) and click Select Folder.
Large files need enough memory to load. Now go on to set the controls and run the walk-forward.
Screen Overview
Watch the lesson: EWFO Lesson 3Running a Walk-Forward and Reading Every Report · in the Training Hub (free GSB Pro account)
EWFO's main screen after a run. Your build may look a little different. Lesson 1 tours each part.
The three areas
- Control inputs (top): where the files come from, how the walk-forward is split, costs and fitness.
- Reporting area (below): the report tabs, graph and tables.
- Run button (top right): runs the walk-forward. The small arrow on its right opens the Run menu (used for batch mode).
What each control does
- Data Folder and Open: the optimisation you've loaded, and the button to load one.
- Filter (From, To): limits the dates used. Tick the box to turn it on.
- Walk-Forward Runs: how many equal parts the data is split into.
- OOS %: the out-of-sample share of each part.
- ANCH: tick for an anchored walk-forward; leave unticked for rolling.
- Trade: ALL, Long Only or Short Only.
- Commission & Slippage: two fields, Optim and Report (explained below).
- Advanced link: opens Advanced Settings.
- Fitness row: five fitness boxes, each with a weight (see Fitness).
- Fitness Selection, Test Criteria and Cluster Analysis tick boxes: leave them unticked for now. They're covered in Fitness and Advanced Analysis Tools.
Your first walk-forward, step by step
Keep it simple the first time. These are the values used in Trademaid's examples and the course.
- Click Open and select your test's folder (see Open the files in EWFO).
- Leave Filter unticked to use all the data.
- Set Walk-Forward Runs to 10. The data is split into 10 equal parts.
- Set OOS % to 20. A fifth of each part is out-of-sample.
- Decide on ANCH: tick it for anchored, or leave it unticked for rolling. (Module 3, lesson 2 explains the difference.)
- Leave Trade on ALL.
- Under Commission & Slippage, enter your realistic cost in both Optim and Report.
- In the first Fitness box choose a single fitness, such as Net profit, with a weight of 1.
- Leave Fitness Selection, Test Criteria and Cluster Analysis unticked.
- Leave everything in Advanced Settings on its defaults, including Walk-Forward Type, which defaults to RunsOos (it uses the Runs and OOS % you've just set).
- Click Run. When it finishes, go to Reading the Results.
The two commission fields
- Optim is used only inside the walk-forward calculation. It's deducted from every trade while choosing the best inputs, but doesn't change the reported figures.
- Report is used in the calculation too, and is also deducted from the reported figures, such as the average trade.
This lets you see the effect of different costs without re-optimising in TradeStation or MultiCharts.
Advanced: once the basics work
Advanced Settings: what's in there
Click the Advanced link. Settings are grouped into five sections: GUI, Walk-Forward, Cluster Analysis, CPU and Sounds. Leave them on their defaults until a section of this guide tells you otherwise. Ones worth knowing:
- Header Text (GUI): adds your own label to the window title. Handy when you have several copies of EWFO open.
- Walk-Forward section: walk-forward type, fitness weight mode, drawdown mode and Nth best run (covered later).
- Min Required Trades (Cluster Analysis): favours walk-forward runs with 30 or more trades.
- Input Files Mode (CPU): in Trademaid's screenshot, lets EWFO read TradeStation files compressed with 7-Zip, to save disk space. Check Trademaid's current help that this option is still in your build.
- Sounds: set to True to play a sound when a walk-forward or a cluster analysis finishes.
The View button (next to Help) lets you hide the Trade Graph, the Periodical and Inputs Grid, or the Performance Grid, and has Font Scale for text that's too big or small (common on 4K monitors).
Reading the Results
Watch the lesson: EWFO Lesson 3Running a Walk-Forward and Reading Every Report · in the Training Hub (free GSB Pro account)Check a result in this order
- Glance at the status bar along the bottom: number of runs and trades, the inputs, the commission and slippage used, in-sample and out-of-sample net profit, and walk-forward efficiency.
- Click the Optimization Summary (IS) tab. There's one row per in-sample run, showing the best inputs found, the period, net profit, drawdown, trades, % profitable, average trade and more. The last row combines all the in-sample periods (Trademaid's help calls it Final; newer builds label it Current).
- Click the Walk-Forward Summary (OOS) tab. Same columns, for each out-of-sample run, using the inputs chosen in the in-sample run before it. Below the table are Annualized P&L and Walk-Forward Efficiency.
- Click the Graphs tab and compare the two equity curves (below). You want them to look alike.
- Look at the performance matrix on the same tab: do the in-sample and out-of-sample figures match year by year?
- Check the statistics on the right for In-Sample and Out-of-Sample side by side.
- To keep the figures, click Copy to Clipboard above a grid (or right-click inside it) in newer builds, and paste into a spreadsheet.
The Graphs tab

Equity curves
Blue is Final, the in-sample result over the whole period. Red is the walk-forward, made by adding up all the out-of-sample runs. X axis switches between Trade Date and Trade Number. Tick Show close prices to add the instrument's prices.

Performance matrix
The walk-forward year by year (or choose Monthly): net profit, trades, % winners, average trade and profit factor, in-sample on the left and out-of-sample on the right. Then Min, Max and Avg rows, and Bad Min, Bad Max and Bad Avg for the bad periods (50% or worse than average). Tick Exclude Partial Periods to hide periods that weren't fully traded.

Statistics: change the two dates to see a range, and use the box beside them to switch between All, Long and Short trades.
What good looks like
In Trademaid's example, the same system was run with two fitness types. With plain net profit, the in-sample and out-of-sample figures never matched year after year: "not ideal". With net profit over drawdown times (Pearson − 0.5), the figures and the parameters were the same every year from 2013: "excellent". The system had found parameters that kept suiting the market. See Fitness for how to compare fitness types properly.
- Walk-forward efficiency: out-of-sample annualised return as a percentage of the in-sample one. Trademaid's rough guide is above 60.
- Parameter stability: inputs that settle quickly are better (see Advanced Analysis Tools).
- Matching curves and matrix: in-sample and out-of-sample should look alike.
All results shown are hypothetical. Past performance doesn't guarantee future results.
Why GSB's walk-forward and EWFO's differ
- They only agree when the fitness and the dates are the same. GSB's default walk-forward fitness is NP × AT (net profit × average trade).
- A walk-forward of the exported TradeStation or MultiCharts code differs more, because the parameter ranges are different.
- In EWFO and in TradeStation's walk-forward optimiser, the first out-of-sample segment is really in-sample. That's why the two curves start together.
Advanced: once the basics work
Long only and short only
A long-only walk-forward optimises and walks forward the long trades on their own. That isn't the same as a combined walk-forward, which optimises long and short together and just reports their figures separately.
- Set Trade to Long Only and click Run. Note the out-of-sample net profit.
- Set Trade to Short Only and click Run. Note the result.
- Add the two and compare with the ALL result.
In Trademaid's example (a symmetrical system), the combined walk-forward made about $107,000 out-of-sample; long only about $52,000 plus short only about $76,000 made about $128,000. Hypothetical results.
Because each side gets its own parameters, you can then combine the long-only and short-only reports. Peter found a mild improvement this way and is undecided whether it's worth it.
Fitness & Methodologies
Watch the lesson: EWFO Lesson 4Choosing Fitness Without Curve-Fitting It · in the Training Hub (free GSB Pro account)Fitness decides which inputs count as best in each in-sample window, so it shapes every walk-forward result. Click any fitness box to see the list.
Where to start
Peter, EWFO's developer, lists these as his preferred fitness types in Trademaid's help. Pick one of them, at weight 1, for your first runs:
- Net profit
- Net profit × average trade
- NP / DD × average trade
- Net profit ÷ 5 largest drawdowns × average trade
- NP / −DD × (R − 0.5) × PF × SR
More recently (2024), Peter likes vbase(m) at weight 1 combined with drawdown at weight 1. VBase adjusts for the daily range, so very volatile periods count a little less. He usually puts about $15 in the fitness commission field. If the Fitness Selection tab comes back empty with the data filters off, no fitness gave good results on that system.
Terms that aren't standard
- NP / −DD × W: TradeStation's fitness (net profit × winning trades ÷ drawdown)
- Pearson (R): how close the equity curve is to a straight line, by trade number (1 is perfect). Pearson Date uses dates.
- VBase+− (S, M, L): volatility-based, adjusted for a short, medium or large range
- NP / −Sum(Area(DD)): net profit ÷ the area of the drawdown graph
- SQN family: based on Van Tharp's System Quality Number, measured on all trades, the latest two-thirds and the latest third. Min NP/DD and Min SQN take the worst of the three; Rank multiplies them. SQN is off by default because it makes runs about 3 times slower.
Compare fitness types honestly: Fitness Selection
Important: you can curve-fit fitness almost as easily as parameters. So hold back the last 3 years of data while comparing fitness types, then use all the data for the final walk-forward.
- Tick Filter and set the To date three years before the end of your data. (EWFO warns you if you don't.)
- Tick Fitness Selection.
- Click Run. EWFO tries about 35 fitness combinations, so this takes a while.
- Open the Fitness Selection tab. There's one row per fitness.
- Look for a high anchored stability score, an IS/OOS ratio close to 1 (Trademaid's help says 0.7 to 1.3 is OK), an equity match degree close to 1, and good out-of-sample figures.
- No results showing? Click Data Filters: untick it to turn the filters off, or change the limits.
- When you've chosen, untick Filter so the last 3 years are back in, and untick Fitness Selection.
- Set your chosen fitness in the fitness row and click Run again. (The main screen shows the last fitness tried, not the best one.)
Advanced: once the basics work
Weighting several fitness types
You can combine up to five fitness types, each with its own weight. A higher weight gives that fitness more influence; use a weight under 1 for less. Trademaid's example: Net Profit at 1 with Average Trade at 0.5 gives more trades (with a lower average trade) than both at 1.
With more than one fitness, EWFO normalises the values before combining them. So Net Profit 1 + Average Trade 1 isn't always the same as the single fitness NP × AT. Treat them as different fitness types.
Two Advanced Settings affect fitness:
- Fitness Weight Mode: Enhanced is recommended. Choose TradeStation only if you need to match TradeStation's weighted fitness.
- Drawdown Mode: which drawdown is used. TradeStation's fitness uses intraday drawdown; TradeStation's walk-forward optimiser uses closed-trade drawdown. EWFO can use either; Trademaid's screenshot shows closed-trade drawdown.
Advanced: once the basics work
Add your own fitness
- Click Template to load a template into the code box.
- Select the placeholder names at the start of the code and delete them.
- Open the drop-down list, pick the fitness you want and click Insert.
- Click Add to add your new fitness type to the list.
- Click Save to keep the template; Load uses it again later.
Trademaid's help shows this on the Stability Scores tab (the older name for Fitness Selection), so the location may differ in your build.
Walk-forward efficiency
Efficiency = (OOS annualised return) / (IS annualised return) × 100
Trademaid's rough guide is above 60. Module 3, lesson 4 explains the calculation.
Advanced Analysis Tools
Watch the lesson: EWFO Lesson 5Parameter Stability, Ranges & Nth Best · in the Training Hub (free GSB Pro account)These checks catch systems that only look good because of one lucky set of inputs, or one lucky choice of runs and OOS %.
Check parameter stability
- Click the Optimization Summary (IS) tab and read down the Inputs column. Inputs that settle on the same values (in Trademaid's example, from run 8 to the end) are a good sign.
- Look under the runs for the stability scores. Anchored stability compares each set of inputs with the last set; rolling compares each set with the one before it. For an anchored walk-forward, anchored stability matters most; for a rolling one, look at rolling.
- If one input stays erratic, read the code behind it. Peter's example:
value1 = average(range, x)was much more stable asvalue1 = x.
Newer builds also show coarse scores (Stability Anchored Coarse and Stability Rolling Coarse), which use a tolerance so they forgive small changes. Leave the tolerances in Advanced Settings as they are.
Check the ranges weren't too narrow
- Look at the final input values for red or orange.
- Red: the final value sits at the end of the range (e.g. optimised 26 to 86, final value 86). The range was too narrow and the walk-forward isn't valid.
- Orange: the final value is inside the range, but the edge value turned up in the optimisation. A wider range is recommended, but perhaps not essential.
- Re-optimise in TradeStation or MultiCharts with a wider range (for that example, try 56 to 106), then open the new files in EWFO and check again.
Exception: inputs that pick a type, not a size. If entrytype 0, 1 or 2 chooses the entry type, picking 0 isn't hitting an edge. A length, as in rsi(close, x), does need a wider range.
Second, tighter pass: once you know where an input settles, re-optimise with a narrower range and a smaller step. Trademaid's example: first run ilength 15 to 100, step 5; the walk-forward only chose 28 to 50; second run 23 to 50, step 5 or smaller.
When it hits the edge matters. An input at the edge of its range early in the walk-forward is a minor issue. At the end of the walk-forward it's critical.
Walking forward a GSB system in TradeStation or MultiCharts by hand? Peter's approach:
- Set each range wide: he would probably use about 200% around each value, with 10 to 20 steps per input
- Optimise the lengths, the weights, the EntryParams and the secondary filter entry level
- Weights for Compare and Cross entry types: 0.25 to 2, step 0.25, always including 0. AIC and NCC weights stay at 0
- Do a coarse walk-forward first, then a fine one
- If the walk-forward picks a weight of 0, that indicator is redundant
Stress test with Nth best
Normally EWFO uses the very best inputs from each in-sample run (Nth best = 1).
- Click Advanced. Under Walk-Forward, set Nth Best Run to 2 to use the second-best inputs, 3 for the third best, and so on. (Older builds also have an Nth-Best box on the top row, next to Run.)
- Click Run.
- On the Graphs tab, compare the new curves with the original. Curves spread above and below the original are a pass; curves sitting strongly below it are a fail.
- Set Nth Best Run back to 1 when you've finished.
Set the test criteria
Test Criteria sets the pass and fail rules that cluster analysis grades against.
- On the second row, tick Test Criteria.
- Click the words Test Criteria (they work like a link) to open the dialog.
- Set Initial Capital to suit the contract and position size you trade. The drawdown test uses it.
- Tick the criteria you want. They are: (1) total profit below a figure, (2) walk-forward efficiency, (3) % of runs profitable, (4) one run contributing too much of the profit, (5) maximum drawdown in any run, (6) average parameter stability, (7) IS/OOS ratio, (8) equity match degree, (9) fitness below a value.
- Enter your values and click OK.
Trademaid calls its suggested values only a rough guide:
- Walk-forward efficiency above 60
- At least 8 out of 10 runs profitable
- No single run more than 50% of total profit
- No run's drawdown more than 25% of initial capital
Run a cluster analysis
One walk-forward can be lucky. A cluster analysis runs a whole matrix of walk-forwards with different OOS % and numbers of runs, and grades each against the test criteria.
- Tick Cluster Analysis, then click the words Cluster Analysis to open its options.
- Set the OOS % start, stop and increment. Trademaid's example: 15 to 23, step 2.
- Set the number of walk-forward runs start, stop and increment. Trademaid's example: 7 to 15, step 2.
- Choose the type, and tick ANCH if you want anchored.
- Click OK, then Run. Be patient: every cell is a full walk-forward.
- Open the Cluster Analysis tab. Each cell is one walk-forward (OOS % down the side, runs across the top), marked pass or fail.
- Click a cell and read Total Test Results on the right: each criterion, its result and the rule used. The box below sums up why the cluster failed, if it did.

Test criteria: tick a box and click the word to adjust it

Cluster results, with the reasons for any cell failing
What a good cluster looks like
- A block of passing cells around the centre of the matrix, spreading outwards.
- At least 7 or 8 passing cells; the more, the more robust. You can grade strategies by count (8, 15, 20, 25 cells) and favour the higher ones.
- Before rejecting a system for a failed criterion, look at the graph: some periods simply weren't tradable (the curves go flat).
- Cells with a small OOS % and few runs (top left of the matrix) are prone to fail, because each out-of-sample area is too small.
Trademaid warns these goals may be unrealistically high. Results are hypothetical.
Monte Carlo walk-forward

Monte Carlo walk-forward: every walk-forward combination compared to the final (thick blue) equity curve
The November 2024 build added a Monte Carlo tab. It plots every walk-forward combination that was run against the final equity curve (the thick blue line). Most curves above the blue line is good; more curves below it is poor.
Advanced: once the basics work
Other walk-forward types
RunsOos is the default and the one to use while learning. Trademaid's help describes the others as experimental:
- Types ending in Bkwd run the walk-forward in reverse, so the in-sample period comes at the end.
- RunsIsFullPeriod makes the in-sample period a percentage of the whole period (e.g. 30% in-sample, 70% out-of-sample); the top row then shows IS % instead of OOS %. It was made to get around the small out-of-sample problem above.
RunsIs and the Days and Bars types aren't documented yet; check Trademaid's current help before relying on them.
Batch Mode & Automation
Watch the lesson: EWFO Lesson 7Batch Mode & the Command Line · in the Training Hub (free GSB Pro account)Once you've settled on your settings, save them once and reuse them for many data folders.
Save your settings as a parameters file
- Set EWFO up exactly as you want every test to run: walk-forward type, runs, OOS %, ANCH, commission fields, fitness and weights, and whether Test Criteria and Cluster Analysis are ticked.
- Click the small arrow on the right of the Run button. The menu has Run Tests, Save Parameters, Load Parameters, Run in Batch Mode and Run with Multiple PF.
- Choose Save Parameters, type a name (e.g.
My Batch Parms) and click Save. It's saved as a.jsonfile; in Trademaid's example it goes in the WalkForwardOptimizer folder under AppData\Roaming.
Load Parameters on the same menu brings a saved setup back whenever you want to repeat it.
Run a batch, step by step
- Create an empty output folder first, e.g.
C:\MyWfOut. (Trademaid's help notes the beta version doesn't create one for you.) - Click the arrow on the Run button and choose Run in Batch Mode.
- Next to Parameters, click the … button, select your saved
.jsonfile and click Open. Every walk-forward in the batch uses these settings, so check them first. - Next to Output, click … and select the folder you created.
- Under Data Folders, click Add. Select one or more optimisation folders (you can pick several at once) and click Select Folder. Use Remove to take one out.
- Check the Parameters and Output paths, then click Run.
- When it finishes, open the output folder. There's one result folder per data folder. Check that every folder is there: in Trademaid's example six went in and only five came out.
A 2021 build added IsSummary.csv and OosSummary.csv to batch mode (per Trademaid's change log).
Advanced: once the basics work
One system, several parameter files
- Click the arrow on the Run button and choose Run with Multiple PF. This opens Batch MPF mode.
- Set the Data folder (one TradeStation system) and the Output folder.
- Add the parameter files. Name them so they describe themselves, e.g. "10 runs 20%" and "12 runs 14%".
- Click Run.
Advanced: once the basics work
The command line
Everything in batch mode can also run from the command line. Trademaid's help shows two forms, starting with the EWFO program (written as {program}):
{program} -p <parameter file> -d <data folder> -o <output folder> [-d <data folder> ...]
{program} -p <parameter file> -f <data folder file> -o <output folder>
-p, --parameter : parameter file
-d, --data : data folder (repeat for more)
-f, --datafile : a file listing the data folders
-o, --output : output folder
-e, --autoexit : exit automatically in batch mode when done
-s, --silent : don't open the output folder when done
-h, --help : show the help messageTo run unattended: save one parameter file per test plan, keep long folder lists in a data folder file (-f), and add -e and -s so nothing waits for a click. You can then start it from a script or a Windows scheduled task and check the output folder afterwards.
-w / --window for the form size, but its syntax isn't documented, and no full example command line is published yet. Check Trademaid's command line help before using it.Troubleshooting
- Install Microsoft's .NET Framework. Recent builds offer to install the version they need.
- For the exact version, check Trademaid's current installation help , then download it from Microsoft.
- Start
WalkForwardOptimizer.exeagain.
C:\EWFO or the older C:\Program Files (x86)\EWFO, and choose the "program doesn't display correctly" compatibility option.)EWFO won't work if your optimisation files are bigger than your RAM. To shrink them:
- Reduce the number of iterations
- Increase the step between input values
- Do a second walk-forward with a narrower range once you know which input values the system uses
- To save disk space, Trademaid's help shows EWFO reading TradeStation files compressed with 7-Zip (Input Files Mode in Advanced Settings). Check the current help that your build still has it.
Out of memory?
- Enlarge the Windows page file
- Run
C:\GSB\ResourceMonitor\ReduceMemory.exeif you have GSB installed - Add RAM
- TradeStation's own
wfo.exeis 32-bit, so it caps out at about 3 GB of files
Usually EWFO is installed under Program Files, where it can't update itself. Either:
- Right-click EWFO and choose Run as administrator, or
- Copy the files to
C:\EWFOand point your shortcut atC:\EWFO\WalkForwardOptimizer.exe
To keep two builds side by side, rename one exe (for example ewfo.20220701.1.exe).
Ready to Try EWFO?
Trademaid offers a 21-day trial, so you can run EWFO on your own TradeStation or MultiCharts optimisation files. Trademaid's help lists one EWFO licence at US$500, licensed per physical computer, with updates free; check the current price and terms on Trademaid's EWFO purchase page.
GSB's main tools are its genetic algorithm search, its walk-forward and robustness tests and its export to TradeStation, MultiCharts and NinjaTrader. New to it? See what Genetic System Builder does and how GSB compares with StrategyQuant and Build Alpha.