backtest

Converts natural language trading strategies into structured backtests with performance metrics.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/meimeitou/xshare --skill backtest-meimeitou
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: backtest
Source: https://github.com/meimeitou/xshare/tree/main/workspace/skills/backtest
Command: npx skills add https://github.com/meimeitou/xshare --skill backtest-meimeitou

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Investors often have trading strategy ideas but lack the tools to validate them against historical data. This Skill turns plain-language strategy descriptions into structured backtest definitions and runs them against historical stock data, returning objective performance metrics. ## Core Features & Use Cases - Natural Language Strategy Parsing: Translates descriptions like "RSI oversold buy" into structured strategy definitions. - Built-in Strategy Templates: Includes moving average crossover, RSI overbought/oversold, and buy-and-hold benchmark strategies. - Performance Reporting: Outputs annualized return, maximum drawdown, Sharpe ratio, and trade summaries via the backtest_run tool. - Use Case: Ask "How would a moving average crossover strategy have performed on Kweichow Moutai last year?" and receive a full backtest report with risk metrics and a mandatory disclaimer that past performance does not guarantee future results. ## Quick Start Ask the assistant to backtest an RSI oversold buying strategy on a specific stock over the past year and show the annualized return and maximum drawdown.

Frequently Asked Questions about backtest

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

FAQPage Schema
How do I backtest a trading strategy on a stock?▼

Describe your strategy in natural language, such as a moving average crossover or RSI oversold rule, along with the target stock and time range. The Skill converts it into a structured definition and runs the backtest_run tool to return performance metrics.

What strategy templates are available for backtesting?▼

Three built-in templates are provided: moving average crossover (short MA crossing long MA), RSI overbought/oversold (buy below 30, sell above 70), and buy-and-hold as a baseline benchmark.

What metrics does a stock backtest report include?▼

Each backtest report includes annualized return, maximum drawdown, Sharpe ratio, a summary of trade records, and a description of the equity curve. Every result carries a disclaimer that historical performance does not predict future returns.

Can I backtest a buy and hold strategy for comparison?▼

Yes, buy-and-hold is one of the built-in strategy templates and serves as a benchmark. You can compare an active strategy's metrics against simply holding the stock over the same period.

What are the limitations of historical strategy backtesting?▼

Backtest results reflect only historical data and do not guarantee future performance. The Skill explicitly attaches a disclaimer to every result stating that backtests are for reference only and do not constitute investment advice.