explain_trades
Inspect individual trades from a backtest run, applying filters like largest drawdown to pinpoint why a strategy underperformed and reveal the trades worth examining.
Instructions
Inspect individual trades from a run, filtered to the ones worth looking at. Use largest_drawdown to explain a bad result. Examples: explain_trades(run_id='a66d00139531003ef3abd6f9971de243'); explain_trades(run_id='a66d00139531003ef3abd6f9971de243', filter='largest_drawdown').
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": {
"run_id": "<run_id>"
},
"name": "explain_trades"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Which trades to return. | worst_5 |
| run_id | Yes | The run_id returned by run_backtest. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||