tian-ye1214/redlotus/crypto-backtest

Claude Code and agent skill by tian-ye1214/redlotus

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Crypto 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.

Install

npx vskill@latest install tian-ye1214/redlotus/crypto-backtest

SKILL.md

The same SKILL.md was published earlier as 5dlabsinc/cto/crypto-backtest.

Crypto Backtest Engine

Fast, scriptable backtesting for crypto futures strategies. Fetches data via ccxt, runs strategies, reports metrics.

Quick Start

bash
pip install ccxt numpy
python scripts/backtest_engine.py --symbol ETH/USDT:USDT --strategy ema --fast 12 --slow 26

Features

  • Multi-exchange: Any ccxt-supported exchange (Bybit, Binance, OKX, Bitget...)
  • Built-in strategies: EMA crossover, RSI, MACD, Bollinger Bands
  • Parameter sweep: Test all combinations automatically
  • Risk simulation: Configurable leverage, position size, SL/TP, fees
  • JSON export: Machine-readable results for pipeline integration
  • Custom strategies: Simple plug-in interface

Usage

Single Strategy
bash
python scripts/backtest_engine.py \
--symbol SOL/USDT:USDT \
--strategy rsi \
--period 14 --oversold 30 --overbought 70 \
--capital 1000 --leverage 5
Parameter Sweep
bash
python scripts/sweep.py \
--symbol ETH/USDT:USDT \
--strategies ema,rsi,macd,bbands \
--capital 1000 --leverage 5 \
--output results.json
Custom Strategy

See references/custom_strategy.md for the plug-in interface.

Output Metrics

Each backtest reports:

  • Total trades, win rate, profit factor
  • Total PnL (absolute + percentage)
  • Max drawdown
  • Best/worst trade
  • Final balance

Files

  • scripts/backtest_engine.py — Core engine with EMA, RSI, MACD, Bollinger Bands
  • scripts/sweep.py — Multi-strategy parameter sweep runner
  • references/custom_strategy.md — Guide for adding custom strategies
  • references/strategy_notes.md — Notes on each built-in strategy's edge cases

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/tian-ye1214/redlotus/crypto-backtest/badge)](https://verified-skill.com/skills/tian-ye1214/redlotus/crypto-backtest)

Something wrong with this skill or its page? Tell us.