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