Install
openclaw skills install crypto-backtestCrypto futures backtesting engine with built-in EMA, RSI, MACD, and Bollinger Band strategies. Fetches OHLCV data from any ccxt-supported exchange (Bybit, Binance, OKX, etc.), runs multi-strategy sweeps, calculates win rate / PnL / drawdown, and exports results to JSON. Use when backtesting trading strategies, comparing parameter combinations, evaluating crypto trading signals, or building a quantitative trading pipeline.
openclaw skills install crypto-backtestFast, scriptable backtesting for crypto futures strategies. Fetches data via ccxt, runs strategies, reports metrics.
pip install ccxt numpy
python scripts/backtest_engine.py --symbol ETH/USDT:USDT --strategy ema --fast 12 --slow 26
python scripts/backtest_engine.py \
--symbol SOL/USDT:USDT \
--strategy rsi \
--period 14 --oversold 30 --overbought 70 \
--capital 1000 --leverage 5
python scripts/sweep.py \
--symbol ETH/USDT:USDT \
--strategies ema,rsi,macd,bbands \
--capital 1000 --leverage 5 \
--output results.json
See references/custom_strategy.md for the plug-in interface.
Each backtest reports:
scripts/backtest_engine.py — Core engine with EMA, RSI, MACD, Bollinger Bandsscripts/sweep.py — Multi-strategy parameter sweep runnerreferences/custom_strategy.md — Guide for adding custom strategiesreferences/strategy_notes.md — Notes on each built-in strategy's edge cases