Leaderboard/Research/x2strategy
Last commit on June 12, 2026·Created on March 26, 2026

ALAGENT-HKU/x2strategy

Turns finance papers into strategies you can backtest.
Combined rank
#646
across all skills
In Research
#32
category rank
Stars
275
+1.5% in last 7d
Forks
46
0.0% in last 7d
Watchers
4
0.0% in last 7d
Traction scoreGitHub stars can be faked, so popularity alone can be misleading. Traction Score looks for broader signs of recent attention, adoption, and active maintenance.
TL;DR

This skill reads quantitative finance research papers, extracts structured trading strategy specifications, and generates executable Backtrader code with full backtest diagnostics. It helps quantitative researchers and algorithmic trading developers move from academic papers to testable implementations without manual translation of strategies, indicators, and logic. The pipeline includes validation against the original paper's reported metrics.

WHO IT'S FOR
Quantitative Researchers
extract structured strategies from finance papers
Algorithmic Trading Developers
generate Backtrader code from strategy specs
Quantitative Developers
validate strategy code against paper metrics
Finance Research Academics
reproduce strategy results from their own papers
Repository contents

1 skill file

Compatible AgentsThe repository documents support for these agents. The skills may also work with other agents that can load SKILL.md files, but they may need some setup or small changes.

Use this skill

Follow the documented setup, then try a first task.

Setup

Install directly with OpenClaw

Installs: ClawHub skill patrick-lew/x2strategy · OpenClaw

Before you start
  • OpenClaw
  • Python 3.11+
  • uv
  • An LLM API key for strategy extraction and code generation
  1. Run this command in a terminal to install the skill from ClawHub.

    openclaw skills install patrick-lew/x2strategy
  2. After installation, open the installed x2strategy directory in the terminal. Keep the directory name x2strategy.

  3. From that skill directory, install the documented dependencies.

    uv sync --all-extras
  4. From that skill directory, create the environment file and add your LLM API key as directed by the author.

    cp .env.example .env          # add your API key (DEEPSEEK_API_KEY recommended)
  5. In the agent chat, enter /x2strategy, or let the agent activate it when relevant.

README.md · Checked Sep 18, 2026SKILL.md · Checked Sep 18, 2026

Give it something to do.

Suggested first task

Identify strategies in a finance paper

Uses x2strategy

  • A finance research document in PDF, Markdown, DOCX, or plain-text format
  • An LLM API key configured in the skill environment
  • Optional custom instructions, implementation constraints, known pitfalls, or reference files

Check the repository for this skill’s setup.

Use the x2strategy skill to analyze the attached finance paper and identify its independent trading strategies. For this first result, summarize each strategy’s indicators, signal logic, execution plan, and risk controls, and stop before code generation. Ask whether I want to provide custom instructions, implementation constraints, known pitfalls, or reference files before extraction.
README.md · Checked Sep 18, 2026SKILL.md · Checked Sep 18, 2026
Suggested first task

Implement and backtest the main strategy

Uses x2strategy

  • A finance paper in PDF, Markdown, DOCX, or plain-text format
  • Applicable backtest data files
  • An LLM API key configured in the skill environment
  • Optional clarification or customization instructions

Check the repository for this skill’s setup.

Use the x2strategy skill to analyze the attached paper and implement only its main strategy. Use the attached data files where applicable, validate the generated Backtrader code, run the backtest, and report the diagnosis and meaningful metrics. Ask me to resolve ambiguous assumptions or human-review items before implementation.
README.md · Checked Sep 18, 2026SKILL.md · Checked Sep 18, 2026
Suggested first task

Generate and test code from a strategy specification

Uses x2strategy

  • A structured strategy specification
  • Backtest data compatible with the strategy
  • An LLM API key configured in the skill environment

Check the repository for this skill’s setup.

Use the x2strategy skill to turn the attached strategy specification into Backtrader code, validate it, run a backtest with the attached data, and give me a concise diagnosis. Confirm the implementation target and any inferred defaults with me before generating code.
README.md · Checked Sep 18, 2026SKILL.md · Checked Sep 18, 2026