journal_close_trade
Close an open trade by entry ID, provide exit price, and automatically compute PnL and update strategy performance metrics.
Instructions
Close an existing open trade by entry ID. Provide the exit price; exit date defaults to now. PnL is automatically computed (long: exit-entry, short: entry-exit). Strategy performance metrics are recomputed for all tags on this trade.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entry_id | Yes | ||
| exit_price | Yes | ||
| notes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||