← 返回 Skills 市场
ndtchan

Strategy Backtester

作者 Nguyễn Đức Thành · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ pending
32
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install strategy-backtester
功能描述
Validates historical behavior of stock ranking, factor, and portfolio-selection strategies using reproducible backtests, benchmark comparison, turnover, draw...
使用说明 (SKILL.md)

Strategy Backtester

Purpose

Use this skill to test whether a ranking, factor mix, or portfolio-selection rule had useful historical behavior before treating it as an investment signal.

Scope

  • Equity ranking and selection strategies.
  • Periodic rebalance backtests from local CSV inputs.
  • Benchmark comparison when benchmark data is available.
  • Bias and robustness review.

Non-goals

  • Do not claim that historical performance predicts future returns.
  • Do not optimize parameters until a preferred result appears.
  • Do not issue absolute buy/sell instructions.
  • Do not fetch live market data.

Input contract

Required inputs:

  • SIGNAL_CSV: rows with date, ticker, and score.
  • PRICE_CSV: rows with date, ticker, and close.
  • REBALANCE_FREQUENCY: monthly, quarterly, or yearly.
  • TOP_N: number of selected names per rebalance.

Optional inputs:

  • BENCHMARK_CSV: rows with date and close or return.
  • FEE_BPS: round-trip fee assumption in basis points.
  • SLIPPAGE_BPS: slippage assumption in basis points.
  • UNIVERSE_HISTORY: point-in-time membership if available.

Execution workflow

  1. Validate input files and required columns.
  2. Estimate whether the test window and symbol coverage are sufficient.
  3. Run scripts/backtest_strategy.py with explicit rebalance, fee, slippage, and top-N assumptions.
  4. Review performance metrics and benchmark comparison.
  5. Identify bias risks and robustness gaps.
  6. Return the required output sections.

Required output format

  1. Backtest Setup
  • Strategy name, test window, rebalance frequency, top-N, fees, slippage, benchmark.
  1. Performance Summary
  • Total return, CAGR, volatility, max drawdown, Sharpe, Sortino, turnover, hit rate when available.
  1. Benchmark Comparison
  • Relative return, relative drawdown, and tracking observations when benchmark data exists.
  1. Robustness and Bias Warnings
  • Survivorship bias, lookahead bias, data-snooping risk, liquidity assumptions, fee/slippage sensitivity.
  1. Confidence and Data Gaps
  • Confidence level and missing inputs that could change the conclusion.
  1. Handoff Bundle
  • Include strategy_name, test_window, rebalance_frequency, fee_assumption, slippage_assumption, benchmark, metrics, bias_warnings, confidence, and data_gaps.

Shared confidence rubric

  • High: point-in-time signals, adequate price coverage, benchmark available, fees/slippage included, and test window covers multiple market regimes.
  • Medium: usable history and price coverage, but one major robustness input is missing.
  • Low: short history, missing benchmark, sparse price coverage, likely survivorship/lookahead risk, or no fee/slippage assumptions.

Guardrails

  • Separate observed backtest results from assumptions and inference.
  • Always state that backtests are historical simulations, not forecasts.
  • Downgrade confidence if the test appears overfit or data is not point-in-time.
  • Treat backtest output as one input to stock-picker-orchestrator, not as a trading command.

Trigger examples

  • "Backtest this VN30 value-quality ranking."
  • "Check whether this stock ranking strategy beat VNINDEX historically."
  • "Validate this screening rule before using it for shortlist selection."
能力标签
crypto
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install strategy-backtester
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /strategy-backtester 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the Strategy Backtester skill. - Enables reproducible backtesting of stock ranking, factor, and portfolio-selection strategies. - Provides benchmark comparison, turnover, drawdown, and bias warnings. - Requires only local CSVs for signals and price history; does not fetch live market data. - Outputs structured reports with setup, performance metrics, robustness warnings, and handoff bundle. - Includes a confidence rubric and clear guardrails on interpretation of results.
元数据
Slug strategy-backtester
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Strategy Backtester 是什么?

Validates historical behavior of stock ranking, factor, and portfolio-selection strategies using reproducible backtests, benchmark comparison, turnover, draw... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 32 次。

如何安装 Strategy Backtester?

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

Strategy Backtester 是免费的吗?

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

Strategy Backtester 支持哪些平台?

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

谁开发了 Strategy Backtester?

由 Nguyễn Đức Thành(@ndtchan)开发并维护,当前版本 v1.0.0。

💬 留言讨论