prepare_grid_combinations#

API documentation for tradeexecutor.backtest.grid_search.prepare_grid_combinations Python function.

prepare_grid_combinations(parameters, result_path, clear_cached_results=False, marker_file='README-GRID-SEARCH.md', create_indicators=None, strategy_universe=None, execution_context=<ExecutionContext backtesting, unspecified engine version>)[source]#

Get iterable search matrix of all parameter combinations.

  • Make sure we preverse the original order of the grid search parameters.

  • Set up the folder to store the results

Parameters:
Returns:

List of all combinations we need to search through

Return type:

List[GridCombination]