TradeStation Walk-Forward Optimizer
Optimizing Strategies in TradeStation to Prepare for WFO
Before you can use the TradeStation Walk-Forward Optimizer,
you first need to optimize the inputs of the strategies applied to your
chart.
From a TradeStation chart
- Use the Format
> Strategies menu sequence to access the Format Analysis
Techniques & Strategies - Strategies tab.
- From the Strategies tab list, select
a strategy row containing inputs you want to optimize.
- Click the Format
button to access the Format Strategy <name> - Inputs tab.
- Select an input Name
containing values you want to optimize.
- Click the Optimize
button to access the Optimize dialog.
- Enter the Start,
Stop, and Increment
values you want to use. Click OK.
- For more information about optimizing
inputs, refer to optimization
ranges.
- Repeat steps 2-3 for each Strategy
containing inputs to be optimized.
- Under Optimization Details, select
an optimization Type.
- Select Walk-Forward
from the drop-down list.
- In the Walk-Forward
Test Name box, enter the name you want WFO
to use to identify the collection of Strategies you are optimizing.
You are not allowed to use an underscore '_' character as part of
the Generic strategy name because they already used by WFO to add additional parameters
to the base file name.
- Under Optimization Details, select
an optimization Method.
- Exhaustive
- Performs a fixed number of optimization tests based on the input
optimization values selected above.
- Genetic
(recommended) - Determines optimization test using a genetic algorithm
and specified parameters. Click Suggest
on the Advanced Settings
dialog to have the parameters automatically set.
To perform a reliable walk-forward
analysis, it is important to provide the Walk-Forward Optimizer with a
sufficient number of tests. We recommend a minimum test count of 1000
or greater when using either the exhaustive or genetic method.
- Click the Advanced
Settings button to access the Advanced Optimization Options
dialog.
- Under Optimization
Report Settings, review and modify any values you choose.
- Under Out-of-sample
window, select an Exclude
setting to specify the data that will be considered out-of-sample:
-
- Exclude
data before MM-DD-YY and after MM-DD-YY - specifies
dates for data that is considered out-of-sample and not subject
to optimization.
- Click
OK to exit the dialog and return to the Strategies tab.2
- Click the Optimize
button at the bottom right of the Strategies tab to perform the selected
optimization.
Hint: If the TradeStation optimizer indicates that the
current optimization is going to perform more than 10000 tests, you can
abort the optimization and increase the increment for the parameters being
optimized, before restarting the optimization process again.
- Launch the WFO by clicking the Walk-Forward Optimizer icon
in the shortcut bar of the TradeStation
platform.
When the optimization is finished you may exit from
TradeStation completely if you want, because the Walk-Forward Test Name
you created contains all the necessary information for WFO to be able to perform
a complete Walk-forward analysis at a later stage.