Realized trading performance
analyze_trade_performanceAnalyze up to 500 chronological closed trades supplied by the user, each with net P&L after costs and original risk. Returns win rate, profit factor, expectancy in currency and R, total net R, and optional closed-trade equity drawdown when initial equity is supplied. Use for reviewing an existing trade sample. No account access, deposits, intratrade drawdown, forecasts, signals, or new risk recommendations.
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": "analyze_trade_performance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trades | Yes | Closed trades ordered chronologically, all using the same currency and risk convention. Maximum 500. | |
| initialEquity | No | Starting equity before the ordered trades. Required only for equity drawdown metrics. No deposits or withdrawals are modeled. | |
| quoteCurrency | No | Currency shared by all monetary inputs. Defaults to USD; no currency conversion is performed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| inputs | Yes | ||
| metrics | Yes | ||
| formulas | Yes | ||
| warnings | Yes | ||
| assumptions | Yes | ||
| reproduceUrl | Yes | ||
| documentationUrl | Yes | ||
| calculationVersion | Yes |