close_trade
Close an open trade by recording its exit price in TradeZylo journal; realized PnL, actual R:R, and account balance update automatically.
Instructions
[WRITE ACTION] Close an open trade in TradeZylo journal by recording the exit price. Backend automatically calculates realized PnL ($ and %), actual R:R multiple, and updates account balance. Returns full updated trade record and refreshed account balance.
Example questions:
"Close my open EUR/USD trade at 1.0890"
"Close trade at exit price 65200"
"I just exited my gold long at 2365, mark it closed with notes: hit target cleanly"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mistakes | No | Execution mistakes if any e.g. ["Exited Early", "Chasing"] | |
| trade_id | No | Unique trade UUID. If omitted, search by instrument symbol. | |
| exit_time | No | Exit ISO timestamp (defaults to current time) | |
| exit_price | Yes | Exact exit execution price | |
| instrument | No | Symbol (e.g. "EUR/USD", "BTCUSDT") to find open trade if trade_id is not known. | |
| emotion_exit | No | Emotion at exit e.g. "Satisfied", "Disciplined", "Frustrated", "Relieved" | |
| lesson_learned | No | Key lesson learned from this trade | |
| notes_posttrade | No | Post-trade review or exit commentary |