optimize_strategy
Run Optuna-based parameter optimization on a trading strategy to find the best parameter combination over a specified number of trials, maximizing a chosen metric.
Instructions
Run Optuna-based parameter optimization on a StrategySpec. Finds best params across n_trials.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | ||
| metric | No | sharpe | |
| n_trials | No |