trade-memory
Decision audit trail for AI trading agents. Records every trading decision with full context (conditions, filters, indicators,…
Domain knowledge for the Evolution Engine — LLM-powered autonomous strategy discovery from raw OHLCV data. Covers the generate-backtest-select-evolve loop, vectorized backtesting, out-of-sample validation, and strategy graduation. Use when discovering trading patterns, running
Claude Code
$ npx -y skills add mnemox-ai/tradememory-protocol --skill evolution-engine --agent claude-code
Codex
$ npx skills add mnemox-ai/tradememory-protocol --skill evolution-engine -a codex -y
Cursor
$ npx skills add mnemox-ai/tradememory-protocol --skill evolution-engine -a cursor -y
Gemini CLI
$ npx skills add mnemox-ai/tradememory-protocol --skill evolution-engine -a gemini-cli -y
GitHub Copilot
$ npx skills add mnemox-ai/tradememory-protocol --skill evolution-engine -a github-copilot -y
OpenCode
$ npx skills add mnemox-ai/tradememory-protocol --skill evolution-engine -a opencode -y
Windsurf
$ npx skills add mnemox-ai/tradememory-protocol --skill evolution-engine -a windsurf -y
name: evolution-engine description: Domain knowledge for the Evolution Engine — LLM-powered autonomous strategy discovery from raw OHLCV data. Covers the generate-backtest-select-evolve loop, vectorized backtesting, out-of-sample validation, and strategy graduation. Use when discovering trading patterns, running backtests, evolving strategies, or reviewing evolution logs. Triggers on "evolve", "discover patterns", "backtest", "evolution", "strategy generation", "candidate strategy".
The Evolution Engine autonomously discovers trading strategies from raw price data. It uses LLM-powered pattern generation combined with vectorized backtesting to evolve, test, and graduate viable trading rules — without manual rule writing.
This is not parameter optimization on a known strategy. It's open-ended strategy discovery: the LLM proposes novel entry/exit logic, the engine validates it against real data, and natural selection eliminates the losers.
OHLCV Data → LLM Generation → Vectorized Backtest → Selection → Mutation → Repeat
↓
Out-of-Sample Validation
↓
Graduated Strategies1. **Data Fetch**: Pull OHLCV candles from Binance public API (no key needed) 2. **Generate**: LLM analyzes price patterns and proposes N candidate strategies (entry/exit rules, position sizing, stop loss) 3. **Backtest**: Each candidate is backtested vectorized (numpy, no loop-per-candle) for speed 4. **Score**: Candidates scored by Sharpe ratio, win rate, max drawdown, total return 5. **Select**: Top K candidates survive. Bottom candidates are eliminated (graveyard). 6. **Mutate**: LLM takes survivors and generates variations (parameter tweaks, rule modifications) 7. **Repeat**: Steps 3-6 for N generations 8. **Validate**: Final survivors are tested on held-out out-of-sample data 9. **Graduate**: Strategies that pass OOS validation are marked as graduated
| Tool | Purpose | |------|---------| | `evolution_fetch_market_data` | Fetch OHLCV data from Binance for a symbol/timeframe/period | | `evolution_discover_patterns` | LLM-powered pattern discovery — generates N candidate strategies | | `evolution_run_backtest` | Backtest a single candidate — returns Sharpe, win rate, drawdown | | `evolution_evolve_strategy` | Full evolution loop: generate → backtest → select → mutate × N generations | | `evolution_get_log` | History of evolution runs: graduated strategies, graveyard, metrics |
Every backtest produces:
| Metric | Minimum for Graduation | |--------|----------------------| | Sharpe Ratio | > 1.0 (OOS) | | Win Rate | > 40% | | Max Drawdown | < 25% | | Number of Trades | > 30 (statistical significance) | | Profit Factor | > 1.2 |
These thresholds are guidelines. Context matters — a Sharpe of 0.9 with 500 trades may be more reliable than 2.5 with 15 trades.
| Mistake | Why It's Bad | Fix | |---------|-------------|-----| | Too few data points | Strategies overfit to noise | Use 90+ days for 1h, 180+ for 4h | | Skipping OOS validation | In-sample Sharpe of 3.0 means nothing | Always validate on held-out data | | Too many generations | Overfitting through excessive selection pressure | 3-5 generations is usually sufficient | | Deploying immediately | No buffer for regime changes | Paper trade 2-4 weeks first | | Ignoring the graveyard | Re-discovering dead strategies wastes compute | Review `evolution_get_log` before new runs | | Using correlated symbols | BTCUSDT and ETHUSDT
Decision audit trail + persistent memory for AI trading agents. Outcome-weighted recall, tamper-evident SHA-256 chain with RFC 3161 anchoring, 20 MCP tools.
Decision audit trail for AI trading agents. Records every trading decision with full context (conditions, filters, indicators,…
Bridge between Binance trading events and TradeMemory Protocol. Automatically journals trades, recalls similar past setups,…
Risk management domain knowledge for trading agents — affective state monitoring, position sizing, drawdown management, tilt…
Domain knowledge for AI trading memory — Outcome-Weighted Memory (OWM) architecture, 5 memory types, recall scoring, and…
Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as…
Estimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using validated atom maps,…