backtesting-trading-strategies
Backtest crypto and traditional trading strategies against historical data.
Skill by aAAaqwq
Chalk Labs
Need help deploying backtesting-trading-strategies?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/aaaaqwq-backtesting-trading-strategies
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing, data, finance
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/backtesting-trading-strategies
Tools it pre-approves 6
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
Read,Write,Edit,Grep,Glob,Bash(python:*)
What's inside
- Skill name
backtesting-trading-strategies- Description
- Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".
- License
- MIT
- Allowed tools
- Read,, Write,, Edit,, Grep,, Glob,, Bash(python:*)
- Instructions
- 187 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Pre-approves some shell commands
Files (12)
- SKILL.md
- settings.yaml · config/
- BTC_USD_1d.csv · data/
- ETH_USD_1d.csv · data/
- errors.md · references/
- examples.md · references/
- implementation.md · references/
- backtest.py · scripts/
- fetch_data.py · scripts/
- metrics.py · scripts/
- optimize.py · scripts/
- strategies.py · scripts/
SKILL.md (first lines)
# Backtesting Trading Strategies
## Overview
Validate trading strategies against historical data before risking real capital. This skill provides a complete backtesting framework with 8 built-in strategies, comprehensive performance metrics, and parameter optimization.
**Key Features:**
- 8 pre-built trading strategies (SMA, EMA, RSI, MACD, Bollinger, Breakout, Mean Reversion, Momentum)
- Full performance metrics (Sharpe, Sortino, Calmar, VaR, max drawdown)
- Parameter grid search optimization
- Equity curve visualization
- Trade-by-trade analysis
## Prerequisites
Install required dependencies:
```bash
pip install pandas numpy yfinance matplotlib
```
Optional for advanced features:
```bash
pip install ta-lib scipy scikit-learn
```
## Instructions
### Step 1: Fetch Historical Data
```bash
python {baseDir}/scripts/fetch_data.py --symbol BTC-USD --period 2y --interval 1d
```
Data is cached to `{baseDir}/data/{symbol}_{interval}.csv` for reuse.
### Step 2: Run Backtest
Basic backtest with default parameters:
```bash
python {baseDir}/scripts/backtest.py --strategy sma_crossover --symbol BTC-USD --period 1y
```
Advanced backtest with custom parameters:
```bash
# Example: backtest with specific date range
python {baseDir}/scripts/backtest.py \
--strategy rsi_reversal \
--symbol ETH-USD \
--period 1y \
--capital 10000 \
--params '{"period": 14, "overbought": 70, "oversold": 30}'
```
### Step 3: Analyze Results
Results are saved to `{baseDir}/reports/` including:
- `*_summary.txt` - Performance metrics
- `*_trades.csv` - Trade log
- `*_equity.csv` - Equity curve data
- `*_chart.png` - Visual equity curve
### Step 4: Optimize Parameters
Find optimal parameters via grid search:
```bash
python {baseDir}/scripts/optimize.py \
--strategy sma_crossover \
--symbol BTC-USD \
--period 1y \
--param-grid '{"fast_period": [10, 20, 30], "slow_period": [50, 100, 200]}'
```
## Output
### Performance Metrics
| Metric | Description |
|--------|-------------|
| Total Return | Overall percentage gain/loss |
| CAGR | Compound annual growth rate |
| Sharpe Ratio | Risk-adjusted return (target: >1.5) |
| Sortino Ratio | Downside risk-adjusted return |
| Calmar Ratio | Return divided by max drawdown |
### Risk Metrics
| Metric | Description |
|--------|-------------|
| Max Drawdown | Largest peak-to-trough decline |
| VaR (95%) | Value at Risk at 95% confidence |
| CVaR (95%) | Expected loss beyond VaR |
| Volatility | Annualized standard deviation |
### Trade Statistics
| Metric | Description |
|--------|-------------|
| Total Trades | Number of round-trip trades |
| Win Rate | Percentage of profitable trades |
| Profit Factor | Gross profit divided by gross loss |
| Expectancy | Expected value per trade |
### Example Output
```
================================================================================
BACKTEST RESULTS: SMA CROSSOVER
BTC-USD | [start_date] to [end_date]
================================================================================
PERFORMANCE | RISK
Total Return: +47.32% | Max Drawdown: -18.45%
CAGR: +47.32% | VaR (95%): -2.34%
Sharpe Ratio: 1.87 | Volatility: 42.1%
Sortino Ratio: 2.41 | Ulcer Index: 8.2
--------------------------------------------------------------------------------From aAAaqwq/AGI-Super-Team, MIT.
More from aAAaqwq/AGI-Super-Team
- 0.734score
aigc-director
Lychee
AI 视频生成全流程:通过 6 个阶段(剧本→角色/场景设计→分镜→参考图→视频生成→后期剪辑)将用户想法转化为完整视频。支持临时工作台(单独调用 LLM、VLM、文生图、图生图、视频生成)。触发词:视频生成、AI视频、AIGC、创作视频、制作视频、AI画图。
SkillBFreshness: B★ 111Claude Code +9 - 0.734score
code-material-gen
CCO Ives
代码生成配图素材。用 HTML/CSS + Playwright 渲染高质量中文配图。 不依赖任何AI图片API,100%代码生成,字体可控、像素精确、零成本。 Trigger: "代码生成素材", "配图生成", "素材生成", "code material", "render material".
SkillBFreshness: B★ 111Claude Code +9 - 0.729score
bazi-fortune
eamanc
八字四柱命理分析工具,属于 fortune-telling-skills 运势测算套件。基于子平真诠体系, 通过出生年月日时推算四柱八字、十神关系、五行旺衰、大运流年,揭示命局格局和人生走向。 排盘为确定性计算 + LLM 综合解读,无外部 API 依赖。…
SkillBFreshness: B★ 111Claude Code +9 - 0.728score
architecture-decision
jwynia
Evaluate architecture options, document trade-offs, and write decision records.
SkillBFreshness: B★ 111Claude Code +9 - 0.721score
daily-gzh-content
CCO Ives
公众号每日内容生产:选题→创作→素材生成→质量检查→保存→发布草稿
SkillBFreshness: B★ 111Claude Code +9 - 0.720score
douyin-publisher
Daniel Li
抖音图文/视频发布(OpenClaw Browser 自动化):登录检测→内容校验→上传页导航→填标题/正文→上传封面+素材→暂存离开。
SkillBFreshness: B★ 111Claude Code +9 - 0.694score
content-creator
Alireza Rezvani
Create SEO-optimized marketing content with consistent brand voice.
SkillBFreshness: B★ 111Claude Code +9 - 0.583score
daniel-auto-publish
aAAaqwq
通过用户自有的真实浏览器和 Computer Use,安全辅助抖音、小红书、快手、微信视频号、哔哩哔哩、YouTube、TikTok 与百家号的视频、图文或公众号文章发布。用于选择图文排版模板、生成并预览图片卡片或微信…
SkillAFreshness: A★ 111Claude Code +9 - 0.583score
binance-square
aAAaqwq
币安广场合约投机雷达 v5:以最近24小时专业交易帖为主要证据,回源核验帖子, 联合币安公共合约行情、4周期K线、布林带、ATR、量能和RR,生成可审计的本地影子报告。 触发词:币安广场、扫描币安、binance square、合约机会、交易信号雷达、4小时雷达
SkillAFreshness: A★ 111Claude Code +9 - 0.583score
5minbtc
aAAaqwq
BTC 5分钟K线实时方向预测 + 币安预测市场错价套利(paper)。v6.0 真OFI驱动: 方向由当前K线原生 in-candle OFI 净流一票决定(ofi_n=2*(tb/v)-1, REST klines[9] 聚合, 零WS依赖; WS ofi.json 做新鲜度反转保护与交叉校准)…
SkillAFreshness: A★ 111Claude Code +9 - 0.580score
daniel-writer
aAAaqwq
Daniel 的统一创作入口:按品牌、证据、声音和人机分工合同,完成选题、母故事、项目内容工作包、微信公众号、X、小红书、B站、知乎、抖音的起草改写与平台适配,并生成获批短视频脚本的本地制作交接和技术候选。适用于 AI、Agent、工具实测、教程、失败复盘、创作反思、图文卡片、口播分镜与跨平台内容生产。正式…
SkillAFreshness: A★ 111Claude Code +9 - 0.579score
daniel-self-media-top-mindset
aAAaqwq
将 Daniel 的利他、真实藏露、情绪纪律、需求聚焦与商业闭环心法应用到自媒体决策。凡涉及 Daniel 个人 IP 的定位、选题、写稿、脚本、封面、跨平台改编、发布规划、增长、变现或复盘时必须先使用;不用于保证爆款、虚构经历、泄露隐私或自动发布。
SkillAFreshness: A★ 111Claude Code +9
Signals
- Stars
- 111
- Forks
- 25
- Open issues
- 1
- Last commit (this folder)
- May 13, 2026 (5 months ago)
- Last release
- Sep 20, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/aAAaqwq/AGI-Super-Team
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from aAAaqwq
- 0.583score
binance-square
aAAaqwq
币安广场合约投机雷达 v5:以最近24小时专业交易帖为主要证据,回源核验帖子, 联合币安公共合约行情、4周期K线、布林带、ATR、量能和RR,生成可审计的本地影子报告。 触发词:币安广场、扫描币安、binance square、合约机会、交易信号雷达、4小时雷达
SkillAFreshness: A★ 111Claude Code +9 - 0.583score
daniel-auto-publish
aAAaqwq
通过用户自有的真实浏览器和 Computer Use,安全辅助抖音、小红书、快手、微信视频号、哔哩哔哩、YouTube、TikTok 与百家号的视频、图文或公众号文章发布。用于选择图文排版模板、生成并预览图片卡片或微信…
SkillAFreshness: A★ 111Claude Code +9 - 0.583score
5minbtc
aAAaqwq
BTC 5分钟K线实时方向预测 + 币安预测市场错价套利(paper)。v6.0 真OFI驱动: 方向由当前K线原生 in-candle OFI 净流一票决定(ofi_n=2*(tb/v)-1, REST klines[9] 聚合, 零WS依赖; WS ofi.json 做新鲜度反转保护与交叉校准)…
SkillAFreshness: A★ 111Claude Code +9 - 0.580score
daniel-writer
aAAaqwq
Daniel 的统一创作入口:按品牌、证据、声音和人机分工合同,完成选题、母故事、项目内容工作包、微信公众号、X、小红书、B站、知乎、抖音的起草改写与平台适配,并生成获批短视频脚本的本地制作交接和技术候选。适用于 AI、Agent、工具实测、教程、失败复盘、创作反思、图文卡片、口播分镜与跨平台内容生产。正式…
SkillAFreshness: A★ 111Claude Code +9 - 0.579score
coupling-analysis
aAAaqwq
改动前的耦合分析(Coupling Analysis / 防蝴蝶效应)——任何改动「共享参数、共享状态、 公共接口、全局常量、被多处引用的逻辑」之前,先画约束图,找出互斥约束与影响面, 再决定动手。触发场景:改参数/阈值/常量;改被多个模块调用的函数;改数据库 schema; 改 API…
SkillAFreshness: A★ 111Claude Code +9 - 0.579score
daniel-self-media-top-mindset
aAAaqwq
将 Daniel 的利他、真实藏露、情绪纪律、需求聚焦与商业闭环心法应用到自媒体决策。凡涉及 Daniel 个人 IP 的定位、选题、写稿、脚本、封面、跨平台改编、发布规划、增长、变现或复盘时必须先使用;不用于保证爆款、虚构经历、泄露隐私或自动发布。
SkillAFreshness: A★ 111Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get backtesting-trading-strategies running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
backtesting-trading-strategies skill. Agent Mart. https://agentmart.dev/skills/aaaaqwq-backtesting-trading-strategies (last updated 2026-10-24)