Skip to main content

Module optimizer

Module optimizer 

Source
Expand description

Parameter optimisation for backtesting strategies.

Two optimisers are available, both returning the same OptimizationReport so they are drop-in interchangeable and both work with WalkForwardConfig:

OptimiserEvaluationsWhen to use
GridSearchO(nᵏ) — all combinations≤ 3 parameters, small step counts
BayesianSearchconfigurable (default 100)4+ parameters or continuous float ranges

Structs§

BayesianSearch
Sequential model-based (Bayesian) parameter optimiser.
GridSearch
Exhaustive grid-search optimiser for backtesting strategy parameters.
OptimizationReport
Optimisation report returned by both GridSearch and BayesianSearch.
OptimizationResult
Result of a single parameter set evaluation.

Enums§

OptimizeMetric
Which performance metric to optimise for.
ParamRange
Defines the search space for a single strategy parameter.
ParamValue
A single parameter value — either an integer period or a float multiplier.