Docs menu

Optimize parameters Pro

Vary the numbers of one candidate, find a stable area instead of a single peak, and save the result as a new version in your Vault.

This feature is part of Pro.

Optimize parameters tries other values for the numbers inside one candidate, such as indicator periods, stop loss and take profit. It runs on your device, on the same price bars as the search. It is part of Pro. Without Pro the screen says “Optimization is part of Pro.”

A single best point on a map of results is often luck. By default the Miner therefore recommends the middle of a stable area, where the neighbouring settings also did well, and shows the highest point next to it.

Start an optimization

  1. Open a candidate card in the results, or a strategy’s detail card in the Vault.
  2. Click Optimize parameters.
  3. Choose which numbers to vary (next section) and the options below.
  4. Click Run optimization. A progress line reads “Tried n of about m on this device…”. Click Stop to end the run early.

Choose the numbers to vary

The setup table has one row per number, with the columns Vary, Number, Now, From, To and Step. Rows include Stop loss (pips), Take profit (pips), and the numbers of each rule, labelled “Rule n · …”.

  • Tick Vary for the numbers to search. You can vary up to 8 numbers at once.
  • From, To and Step start at two steps either side of Now. A step is 20% of the current value (at least 1). Level numbers use a step of 5, and deviation numbers 0.25.
  • A line under the table reads “n numbers · m combinations · about k will be tried (method).” Use it to check the size before you run.
SettingWhat it doesValues
Judge byThe score each combination is ranked on.Balanced score, Profit factor, Return / drawdown, Net profit
SearchHow combinations are picked.automatic, all combinations, random sample, genetic search
Max triesThe most combinations to test.10 to 20,000, default 3,000
Keep aside the latestA recent stretch that is not used to choose, only to check the choice.12, 6 or 24 months, or None

automatic tests every combination when their number fits in Max tries, and a random sample otherwise. The line under the table names the method it will use.

The setup of Optimize parameters: a table with Vary, Number, Now, From, To and Step for six numbers, then the settings Judge by, Search, Max tries and Keep aside the latest, a size line and the Run optimization button.
The setup. Tick the numbers to vary and check the size line before you run.

Read the result

A table compares three versions of the strategy.

RowMeaning
Current settingsThe strategy as it was.
Middle of a stable area (recommended)The point whose neighbours also scored well.
Highest pointThe single highest score.

The columns show the result on the Search period, on the period Kept aside, and the Max DD %. A version needs enough trades to be considered: at least 20, or 60% of the original trade count if that is larger. A second table lists the value of each number in the three versions.

The result of an optimization: a table with the rows Current settings, Middle of a stable area (recommended) and Highest point and the columns Search period, Kept aside and Max DD %, and below it the value of each number in the three versions.
The three versions and the numbers each one uses.
  • Map of the search period shows scores for two numbers at a time. Pick them with Horizontal and Vertical. An open circle marks the current settings, a double circle the recommended point, and a diamond the highest point.
  • If the recommended point does well on the search period but badly on the part kept aside, treat the result as overfitted.
The Map of the search period with the Horizontal and Vertical lists and a grid of squares in shades of one colour. A double circle and a diamond mark two squares.
The map. A flat dark area is stable; a lone dark square is probably luck.

Check it with a walk-forward test

Click Show walk-forward. The Miner re-chooses the settings on the previous 24 months, tests them on the next 6, and repeats along the history. It shows Chained tests (chosen each window), Same windows, current settings and Profitable test windows. Use it to see whether choosing by optimization beat leaving the settings alone.

Use the result

  1. Choose one of the three versions with Use these settings.
  2. Click Save as a new version to add it to your Vault. It is not available for Current settings. If the new settings give the same trades as a row already there, the Miner says so instead of saving a copy.
  3. Or click Open in Builder to continue in the Strategy Builder.
The Walk-forward check with its three tiles and a table of test windows, then the three Use these settings buttons, Save as a new version and Open in Builder.
The walk-forward result and the buttons that use a version.

The other-symbol checks and the robustness re-check are not repeated for new numbers. Treat a new version as not checked on those points. You can run the Prop-firm check on it.

Optimizing on past data fits the numbers to that data. The result does not guarantee future results.

Related reference: Metrics defines the figures in the result.