a-stock-backtest

Runs MLR-based predictive analysis on GitHub data for repository insights.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/KeynesZZZ/Common --skill a-stock-backtest
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: a-stock-backtest
Source: https://github.com/KeynesZZZ/Common/tree/main/.trae/skills/a-stock-backtest
Command: npx skills add https://github.com/KeynesZZZ/Common --skill a-stock-backtest

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This tool provides an end-to-end backtesting workflow for A-share strategies by converting local 60-minute bar data into daily bars, storing results in SQLite, and enabling full-market testing, parameter configuration, visualization, and strategy comparison.

Core Features & Use Cases

  • Full-market backtesting across all A-shares with user-defined date ranges.
  • Automatic 60-minute data aggregation into daily bars with efficient storage in SQLite.
  • Configurable backtest parameters (holding periods, risk controls, costs) and flexible stock pools.
  • Visualizations and reports for performance, drawdown, and strategy comparison to support optimization and decision making.
  • Support for multiple strategies and side-by-side comparison to identify best-performing configurations.

Quick Start

Run a default backtest with your local 60-minute A-share data and review the output.

Frequently Asked Questions about a-stock-backtest

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I backtest A-share strategies using 60-minute bar data?

To backtest A-share strategies, this tool automatically converts locally stored 60-minute bar data into daily bars and runs full-market testing across user-defined historical periods.

Can I configure holding periods and risk controls for full-market A-share backtesting?

Yes, full-market A-share backtesting supports configurable parameters including holding periods, risk controls, costs, and flexible stock pools to evaluate strategy performance.

How does 60-minute data aggregation work for daily bar backtesting?

60-minute data aggregation works by converting local intraday bars into daily bars, then efficiently storing the transformed results in an SQLite database for backtesting.

What is the best way to compare multiple A-share strategy backtest results?

The best way to compare multiple A-share strategies is by running side-by-side tests that generate visualizations and reports for performance, drawdown, and parameter optimization.

Do I need local 60-minute data stored before running an A-share backtest?

Yes, you need locally stored 60-minute A-share bar data available beforehand, as the backtest workflow relies on converting this local data into daily bars for analysis.