trader-backtest
Installation
SKILL.md
Run a historical backtest using the neural-trader Rust/NAPI engine.
Steps:
- Ensure neural-trader is available:
npm ls neural-trader 2>/dev/null || npm install neural-trader - Check for saved strategy config:
mcp__claude-flow__memory_retrieve({ key: "strategy-STRATEGY_NAME", namespace: "trading-strategies" })If not found, list available:mcp__claude-flow__memory_search({ query: "strategy", namespace: "trading-strategies", limit: 10 }) - Run backtest via neural-trader CLI:
For multi-indicator strategies:npx neural-trader --backtest --strategy <name> --symbol <TICKER> --period <range> --walk-forwardnpx neural-trader --backtest --strategy multi-indicator --position-sizing kelly --symbol SPY --period 2020-2024 - Capture performance metrics from output: total return, annualized return, Sharpe ratio, Sortino ratio, max drawdown, win rate, profit factor, number of trades
- Store backtest results:
mcp__claude-flow__memory_store({ key: "backtest-STRATEGY-TIMESTAMP", value: "RESULTS_JSON", namespace: "trading-backtests" }) - If Sharpe > 1.5, store as successful pattern:
mcp__claude-flow__agentdb_pattern-store({ pattern: "profitable-STRATEGY_TYPE", data: "PARAMS_AND_RESULTS" }) - Train SONA on the outcome:
mcp__claude-flow__neural_train({ patternType: "trading-strategy", epochs: 10 })
Related skills
More from ruvnet/ruflo
agent-swarm
Agent skill for swarm - invoke with $agent-swarm
300agent-arch-system-design
Agent skill for arch-system-design - invoke with $agent-arch-system-design
275agent-workflow
Agent skill for workflow - invoke with $agent-workflow
274workflow-automation
>
264agent-architecture
Agent skill for architecture - invoke with $agent-architecture
263security-audit
>
262