← 返回
未分类 中文

Strategy Backtester

Validates historical behavior of stock ranking, factor, and portfolio-selection strategies using reproducible backtests, benchmark comparison, turnover, draw...
使用可复现的回测、基准对比、换手率和回撤等方法,验证股票排名、因子及投资组合选择策略的历史表现。
ndtchan
未分类 clawhub v1.0.0 1 版本 99621.2 Key: 无需
★ 0
Stars
📥 263
下载
💾 1
安装
1
版本
#latest

概述

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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-23 16:39 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Portfolio Risk Manager

ndtchan
通过小型IPS、风险预算和无杠杆仓位规模,为越南股票投资者建立投资组合纪律,将投资建议转换为...
★ 0 📥 2,627
productivity

Us Macro News Monitor

ndtchan
追踪美国宏观信号(彭博、华尔街日报、路透社),映射对越南行业的潜在溢出;用于用户询问美国宏观新闻及可能...
★ 3 📥 1,339
developer-tools

Equity Valuation Framework

ndtchan
Provides a decision-grade equity valuation playbook and report standard (multiples, DCF, quality assessment, scenarios,
★ 1 📥 1,994