get_performance
Calculate trading performance metrics including win rate, P&L, profit factor, expectancy, drawdown, and streaks, with optional breakdowns by instrument, session, setup, emotion, or other dimensions.
Instructions
Win rate, P&L, profit factor, expectancy, R, drawdown, streaks — optionally broken down by dimension.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Rolling window ending today. Ignored when date_from/date_to are given. | month |
| symbol | No | Instrument, e.g. EURUSD or XAUUSD (broker suffixes are ignored) | |
| date_to | No | End date (YYYY-MM-DD), inclusive | |
| group_by | No | Any of: instrument, direction, session, weekday, hour, setup, emotion, mistake, close_reason, hold, month, source | |
| date_from | No | Start date (YYYY-MM-DD), inclusive |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||