Your AI agent forgets every trade after each session. TradeMemory gives it persistent memory — store decisions, discover patterns, evolve strategy automatically via MCP.
Six capabilities that turn a stateless AI into a learning trading partner.
5 cognitive memory types: Episodic, Semantic, Procedural, Affective, Prospective. Each trade scored by outcome quality, context similarity, recency, and confidence.
Rule-based analysis finds patterns in your trade history — win rates by session, strategy, confidence level. Optional LLM layer for deeper insights.
L2 discovers which strategies, sessions, and conditions produce winners. L3 generates actionable adjustments: disable losers, size up winners.
Schedule daily_reflection.py to run at market close. Summarizes P&L, flags anomalies, and updates memory layers automatically.
Procedural memory tracks trading behaviors. Detects overtrading, revenge trading, and session-specific biases from your trade history.
Context-weighted Kelly Criterion using recalled win rates and payoff ratios. Quarter-Kelly default with risk appetite adjustment.
Legacy L1→L2→L3 pipeline plus OWM cognitive memory. Both work side by side.
Every trade recorded with full context: instrument, direction, lots, entry/exit prices, P&L, strategy name, session, reasoning, and confidence score.
Reflection engine analyzes L1 data to find statistically significant patterns. Groups by strategy, session, direction, and confidence level.
Auto-generates actionable adjustments from L2 patterns. Disable losing strategies, prefer winning sessions, adjust position sizes, restrict directions.
5 memory types scored by outcome quality, context similarity, recency, confidence, and affective state. Based on ACT-R cognitive architecture.
Works with Claude Desktop, Claude Code, Cursor, Windsurf, and any MCP client.
Add to your claude_desktop_config.json and restart Claude Desktop.
One command to add TradeMemory as an MCP server.
Install from PyPI for custom integrations or development.
Core tools for storage and analysis. OWM tools for cognitive recall, behavioral analysis, and position sizing. Your AI agent calls these tools via the Model Context Protocol.
Self-host free forever. Or let us handle the infrastructure — cloud API with guaranteed uptime, auto-scaling, and team dashboards.
For individual traders running 1–2 strategies on a single account.
For serious traders running multiple strategies across accounts.
For prop firms and funds managing multiple traders and strategies.
Need more? Buy additional credits anytime. No commitment, no expiry. Every API call — store, recall, reflect — costs 1 credit.
Join the waitlist. Early bird subscribers get 50% off the first 3 months.
No spam. We'll only email you when the hosted API launches.
✓ You're on the list! We'll notify you at launch.
Install TradeMemory Protocol and let your AI agent learn from every trade.