Annotate a journal trade
journal_update_tradeUpdate a trade's journal annotations, including notes, tags, mistakes, playbook, rating, stop loss, profit target, and review status, without altering fills, prices, or P&L.
Instructions
Annotate a trade — the user-owned fields only: notes (free text about this trade), tags, mistakes, playbookId, rating 1–5, stopLoss and profitTarget (price levels; the stop is what realized R is measured against) and reviewed. tags/mistakes replace the whole list; use addTags/removeTags/addMistakes/removeMistakes to change a few entries without clobbering the rest (check journal_list_tags for the user's existing words). Pass null to clear a field. Does not touch fills, prices or P&L — those derive from the fills. Returns the updated trade in full. Requires signing in with a LuxAlgo account (OAuth).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The trade's `key` exactly as returned by journal_list_trades, journal_get_day, journal_search_notes or journal_add_trade. Never construct one. | |
| tags | No | ||
| notes | No | Replaces the trade's note text; null clears it. | |
| rating | No | Execution quality 1–5; null clears it. | |
| addTags | No | Tags to add (existing ones are kept; case-insensitive duplicates are ignored). | |
| mistakes | No | ||
| reviewed | No | Mark the trade reviewed (true) or not (false). | |
| stopLoss | No | Planned stop price; null clears it. | |
| playbookId | No | Playbook / setup name this trade followed; null clears it. | |
| removeTags | No | Tags to remove (case-insensitive). | |
| addMistakes | No | Mistakes to add. | |
| profitTarget | No | Planned target price; null clears it. | |
| removeMistakes | No | Mistakes to remove (case-insensitive). |