← 返回 Skills 市场
mikeclaw007

Strategy Backtest

作者 mikeclaw007 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
457
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install strategy-backtest
功能描述
Quantitative strategy backtesting—implement, run, and tune trading rules on historical data; performance metrics (CAGR, max drawdown, Sharpe, win rate) and s...
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install strategy-backtest
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /strategy-backtest 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug strategy-backtest
版本 1.0.0
许可证 MIT-0
累计安装 2
当前安装数 1
历史版本数 1
常见问题

Strategy Backtest 是什么?

Quantitative strategy backtesting—implement, run, and tune trading rules on historical data; performance metrics (CAGR, max drawdown, Sharpe, win rate) and s... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 457 次。

如何安装 Strategy Backtest?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install strategy-backtest」即可一键安装,无需额外配置。

Strategy Backtest 是免费的吗?

是的,Strategy Backtest 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Strategy Backtest 支持哪些平台?

Strategy Backtest 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Strategy Backtest?

由 mikeclaw007(@mikeclaw007)开发并维护,当前版本 v1.0.0。

💬 留言讨论