A persistent 3-layer trading memory system for AI agents to record trades, analyze patterns, and automate strategy adjustments.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install tradememory
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install tradememory using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
TradeMemory Protocol provides a dedicated memory layer for AI trading agents, enabling them to track every decision and market context across multiple sessions. It bridges the gap between raw execution and strategic learning by organizing data into a hierarchical structure that allows for deep reflection and behavioral analysis. By utilizing Openclaw Skills, traders can integrate persistent memory into their automated workflows, ensuring that their AI agents learn from both wins and losses.
The system is platform-agnostic, supporting MT5, Binance, and Alpaca, making it a versatile tool for modern algorithmic trading environments. It ensures that your agent does not just execute trades but actually evolves its strategy based on historical performance data and discovered market edges.
To begin, install the package using pip:
pip install tradememory-protocol
Next, start the TradeMemory server which runs on localhost:8000 by default:
python -m src.tradememory.server
For MetaTrader 5 users, configure your .env file with your broker credentials (MT5_LOGIN, MT5_PASSWORD, MT5_SERVER) and run the sync script to poll for closed trades every 60 seconds:
python scripts/mt5_sync.py
TradeMemory utilizes a local SQLite database (tradememory.db) to organize information into three distinct layers for better data taxonomy:
| Layer | Name | Description |
|---|---|---|
| L1 | Raw Trades | Includes entry/exit prices, P&L, lot size, timestamps, and confidence scores. |
| L2 | Patterns | Identifies session-based performance, strategy edges, and confidence correlations. |
| L3 | Adjustments | Provides rule-based tuning such as lot size scaling and strategy filters. |
Loading
A multi-source news aggregator that fetches, filters, and analyzes real-time global trends across tech, finance, and social platforms.

An advanced error-learning and long-term memory system designed to prevent repeated mistakes and store user preferences for AI agents.

A diagnostic and recovery tool for OpenClaw that automates model switching and restores assistant communication when replies fail.

A specialized tool for interacting with the arXiv Crawler API to fetch academic papers, read community reviews, and submit comments.

A built-in task scheduler for OpenClaw Gateway that manages one-time reminders, periodic tasks, and background automation for AI agents.

An intelligent skill for Openclaw that automates the cloning, configuration, and execution of GitHub repositories by following project documentation.








































