ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

Crypto Simulator

Backtest crypto trading strategies (RSI, DCA, MACD, Grid, etc.) against real CoinGecko data.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/sa9saq/crypto-simulator
Or

Crypto Simulator

Backtest and simulate cryptocurrency trading strategies using real market data.

Quick Start

cd {skill_dir}
npm install && npm run build

# Backtest a strategy
node dist/cli.js backtest --coin bitcoin --strategy rsi_swing --days 90

# Compare all strategies
node dist/cli.js compare --coin ethereum --days 180

# Optimize parameters
node dist/cli.js optimize --coin bitcoin --strategy rsi_swing

# Start REST API
node dist/cli.js serve --port 3002

Strategies

StrategyBest ForLogic
RSI SwingVolatile marketsBuy RSI < 30, sell RSI > 70
DCALong-termFixed-interval buys
MA CrossTrendingBuy/sell on MA crossovers
GridRangingOrders at price grid levels
HODLBull marketsBuy-and-hold baseline
Bollinger BandsMean reversionTrade on band breakouts
MACDMomentumSignal line crossovers
Mean ReversionRangingBuy below mean, sell above

Supported coins: BTC, ETH, SOL, DOGE, ADA, DOT, AVAX, LINK, MATIC, XRP

API Endpoints

MethodPathDescription
GET/api/prices/:coinIdCurrent & historical prices
POST/api/backtestRun backtest
GET/api/compare/:coinIdCompare all strategies
POST/api/optimizeFind optimal parameters

Edge Cases

  • CoinGecko rate limits: Free tier = ~10-30 req/min. SQLite cache avoids redundant calls
  • Insufficient data: Short timeframes may lack enough data for indicators (e.g., 50-day MA needs 50+ days)
  • Slippage: Backtests assume perfect execution — real results will differ

⚠️ Disclaimer

For educational/informational purposes only. Not financial advice. Past performance ≠ future results.

Configuration

VariableDefaultDescription
PORT3002API server port
CACHE_DIR./dataSQLite cache directory

Requirements

  • Node.js 18+
  • Internet connection (CoinGecko API)
  • No API keys needed (free tier)

Metadata

Author@sa9saq
Stars1133
Views0
Updated2026-02-18
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-sa9saq-crypto-simulator": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.