Close Trade
close_trade[JOURNAL] Close a journal trade by trade_id (from log_trade or get_journal). Optionally exit_price (defaults to live price) and note (exit reasoning). n0brains resolves the outcome from real candles over the held window: return %, R multiple vs your initial stop, MAE/MFE (worst drawdown / best unrealized gain while open), and whether your stop or target level actually traded. HISTORICAL backfill: pass closed_at (epoch seconds of the real exit) + explicit exit_price. Pro.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| trade_id | Yes | ||
| closed_at | No | ||
| exit_price | No |