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').
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 | |||