← Back to Skills Marketplace
Strategy Backtest
by
mikeclaw007
· GitHub ↗
· v1.0.0
· MIT-0
457
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install strategy-backtest
Description
Quantitative strategy backtesting—implement, run, and tune trading rules on historical data; performance metrics (CAGR, max drawdown, Sharpe, win rate) and s...
Usage Guidance
This skill is inconsistent: the description and SKILL.md promise a functioning backtest/optimization engine, but the shipped Python file is only a stub that logs commands to a local JSON file and returns canned success messages. Before installing or running: 1) Do not assume it performs real backtests — inspect or grep the code for actual strategy logic (indicators, trade generation, P&L calculations). 2) Note the SKILL.md example paths do not match the real script path; verify invocation paths. 3) If you expect full backtesting, either obtain a real implementation or replace the stub with trusted code. 4) Run any untrusted Python in a sandbox or VM and review what files it writes (the script writes data/strategy_backtest_data.json). 5) Don’t rely on this tool for investment decisions — it does not implement the analytics it advertises. Providing the maintainer/source or an updated implementation would change the assessment to benign if the code truly performed the claimed tasks and paths matched the documentation.
Capability Analysis
Type: OpenClaw Skill
Name: strategy-backtest
Version: 1.0.0
The strategy-backtest skill bundle is a legitimate tool for logging and managing quantitative trading strategy workflows. The primary script, strategy_backtest_tool.py, functions as a CLI wrapper that records command execution (backtest, optimize, report) into a local JSON file (strategy_backtest_data.json). No evidence of data exfiltration, malicious execution, or prompt injection was found; the code and instructions are consistent with the stated purpose of financial backtesting.
Capability Assessment
Purpose & Capability
The README promises a backtest engine, performance analytics, and optimization (CAGR, Sharpe, drawdown, etc.). The provided script (scripts/strategy_backtest_tool.py) contains only a minimal CLI stub that records command invocations to data/strategy_backtest_data.json and returns generic success messages; it does not import or use backtrader, pandas, or any backtesting logic. Example command paths in SKILL.md (scripts/skills/strategy-backtest/...) do not match the actual script path, further indicating mismatch between claimed capabilities and delivered code.
Instruction Scope
SKILL.md instructs installing backtesting libraries and running commands that should execute real backtests. In practice the instructions point to a non-existent nested scripts path and the actual tool just appends records to a local JSON file. The instructions do not direct reading of unrelated system files or secrets, but they are vague/overbroad relative to what the code actually does (promises reports and metrics that the tool does not generate).
Install Mechanism
No install spec is provided (instruction-only). SKILL.md suggests pip-installing dependencies (pandas, numpy, backtrader, matplotlib) — this is normal for backtesting tooling but is a manual, local action. There are no downloaded archives or remote installers declared by the skill itself.
Credentials
The skill requests no environment variables, credentials, or external config paths. The included code only reads/writes a local data JSON file inside the repository's data directory and references some public documentation URLs. There are no requests for secrets or unrelated services.
Persistence & Privilege
always is false and the tool does not request elevated or persistent system privileges. It writes to a local data file relative to the script location (data/strategy_backtest_data.json). That is confined to the repository and is not an unusual privilege, but users should be aware the script will create/modify that file.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install strategy-backtest - After installation, invoke the skill by name or use
/strategy-backtest - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release: backtest and optimize systematic trading strategies using historical data.
- Supports metrics like CAGR, max drawdown, Sharpe ratio, and win rate (based on actual output).
- Command-line interface for backtesting, parameter optimization, and reporting.
- Integrates with Backtrader for core backtest logic.
- Includes guidance on reproducibility, transparency, and risk caveats.
Metadata
Frequently Asked Questions
What is Strategy Backtest?
Quantitative strategy backtesting—implement, run, and tune trading rules on historical data; performance metrics (CAGR, max drawdown, Sharpe, win rate) and s... It is an AI Agent Skill for Claude Code / OpenClaw, with 457 downloads so far.
How do I install Strategy Backtest?
Run "/install strategy-backtest" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Strategy Backtest free?
Yes, Strategy Backtest is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Strategy Backtest support?
Strategy Backtest is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Strategy Backtest?
It is built and maintained by mikeclaw007 (@mikeclaw007); the current version is v1.0.0.
More Skills