Check my own trades
compare_tradesChecks a trader's own trades against a run's rule, on the price history this server holds: for each trade, in their order, whether the rule would have taken it and, if not, why (already in a trade, no entry signal that day, no bar that day). Use it when the trader lists trades they made and asks which the rule took. Takes a run (run_id) and the trades, each {side, entry, exit?}; answers in words, never prices. It re-runs the run's code, so it counts as a run on the run's symbol.
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": {
"trades": "<trades>"
},
"name": "compare_trades"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | No | A run_id run_backtest or run_held_out_test returned: the run whose code is checked against the trades. | |
| trades | Yes | The trader's own trades, in their order, each stamp exactly as the trader wrote it. | |
| version | No | ||
| study_id | No | A study's id; with `version`, one of its runs. | |
| time_zone | No | The clock the trader says their times are on ("UTC+2", "New York", "Europe/Prague"). Left out: the clock the run's trade list is on (ET for stocks and ETFs, UTC otherwise). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| clock | No | On bars shorter than a day: the clock every time of the answer is on (your time_zone as you stated it, else ET for stocks and ETFs, UTC otherwise). | |
| counts | No | ||
| market | No | ||
| reason | No | ||
| run_id | No | ||
| status | Yes | ||
| trades | No | ||
| message | No | ||
| summary | No | ||
| version | No | ||
| study_id | No | ||
| runs_left_today | No |