grid_search#
API documentation for tradeexecutor.backtest.grid_search Python module in Trading Strategy.
Module description#
Perform a grid search ove strategy parameters to find optimal parameters.
Classes#
| One combination line in grid search. | |
| One value in grid search matrix. | |
| What grid search data we generate and load. | |
| Result for one grid combination. | |
| Define how to create different strategy bodies. | 
Functions#
| Create a result for a crashed backtest. | |
| 
 | Get a path where to stget_grid_search_result_pathore the grid seach results. | 
| Pop the strategy universe data from the parent process. | |
| Pop the strategy universe data from the parent process. | |
| 
 | |
| 
 | Pick the best combination in the results based on one metric. | 
| 
 | Pick one combination in the results. | 
| 
 | Get iterable search matrix of all parameter combinations. | 
| 
 | Mutltiproecss runner. | 
| 
 | Threared runner. | 
| 
 | Run a single backtest grid search/optimiser. | 
| Prepare handing over the strategy universe for the child processes. | |
| Prepare handing over the strategy universe for the child processes. | |
| 
 | Prepare indicators used in the grid search. |