pick_grid_search_result#
API documentation for tradeexecutor.backtest.grid_search.pick_grid_search_result Python function.
- pick_grid_search_result(results, **kwargs)[source]#
Pick one combination in the results.
Example:
# Pick a result of a single grid search combination # and examine its trading metrics sample = pick_grid_search_result( results, stop_loss_pct=0.9, slow_ema_candle_count=7, fast_ema_candle_count=2) assert sample.summary.total_positions == 2
- Parameters:
result – Output from
perform_grid_search()
kwargs – Grid parameters to match
results (List[GridSearchResult]) –
- Returns:
The grid search result with the matching parameters or None if not found
- Return type: