analyze_trades
Calculate trade performance statistics including profit/loss analysis, drawdown calculations, and risk metrics from P&L data to evaluate trading strategy effectiveness.
Instructions
Compute performance statistics from a list of trade P&L results.
Args: pnls: List of profit/loss values per trade (e.g. [150, -80, 200, -50, 300]) starting_equity: Starting account equity for drawdown calc (default $100,000)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pnls | Yes | ||
| starting_equity | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |