apply_optimization
Apply a previously saved optimization result file to a strategy, creating an optimized strategy for further analysis.
Instructions
Apply an optimization result file to a strategy, saving <strategy_id>_optimized.
Prerequisite: run_optimize(save=true) — result_file is its `saved_path`. Runs
non-interactively (--yes). Returns {result_file, strategy_id, output}. Follow up by
generating Pine Script for `<strategy_id>_optimized`. Reports progress to capable
clients; has an execution timeout.
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": {
"result_file": "<result_file>",
"strategy_id": "<strategy_id>"
},
"name": "apply_optimization"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result_file | Yes | ||
| strategy_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | Yes | ||
| error | Yes |