run_optimize
Optimize strategy parameters using Optuna to maximize a selected metric such as Sharpe ratio. Supports custom trials and persistence for later application.
Instructions
Optimize strategy parameters with Optuna for symbol. metric defaults to sharpe_ratio.
save defaults to true so the result JSON is persisted (with `saved_path` in the
response) and can be fed to `apply_optimization`; pass save=false to skip saving.
Long-running: up to a 600-second timeout; reports progress to capable clients.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>",
"strategy_id": "<strategy_id>"
},
"name": "run_optimize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | ||
| metric | No | ||
| symbol | Yes | ||
| trials | No | ||
| strategy_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | Yes | ||
| error | Yes |