remember_trade
Store a trade and automatically update episodic, semantic, procedural, and affective memory to enable outcome-weighted learning and strategy adjustment.
Instructions
Store a trade into OWM multi-layer memory with automatic updates.
Writes to episodic memory and automatically updates semantic (Bayesian), procedural (running averages + hold time + Kelly), and affective (EWMA confidence/streaks). Also writes to trade_records for backward compatibility.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pnl | Yes | Profit/loss in account currency | |
| pnl_r | No | P&L as R-multiple (risk units). Improves OWM scoring quality. | |
| symbol | Yes | Trading instrument (e.g. "XAUUSD") | |
| trade_id | No | Optional custom ID. Auto-generated if omitted. | |
| direction | Yes | "long" or "short" | |
| timestamp | No | ISO format timestamp. Defaults to now (UTC). | |
| confidence | No | Agent confidence level 0-1 (default 0.5) | |
| exit_price | Yes | Exit price of the trade | |
| reflection | No | Lessons learned from this trade | |
| entry_price | Yes | Entry price of the trade | |
| strategy_name | Yes | Strategy used (e.g. "VolBreakout") | |
| context_atr_d1 | No | ATR(14) on D1 in dollars | |
| context_regime | No | Market regime (trending_up/trending_down/ranging/volatile) | |
| exit_timestamp | No | ISO format exit time. Used to compute hold duration. | |
| market_context | Yes | Description of market conditions | |
| entry_timestamp | No | ISO format entry time. Used to compute hold duration. | |
| max_adverse_excursion | No | Maximum adverse excursion during the trade |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||