pair-trade-screener

Screen stock pairs for cointegration and generate entry/exit signals.

276|46|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/nicepkg/ai-workflow --skill pair-trade-screener-nicepkg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pair-trade-screener
Source: https://github.com/nicepkg/ai-workflow/tree/main/workflows/stock-trader-workflow/.claude/skills/pair-trade-screener
Command: npx skills add https://github.com/nicepkg/ai-workflow --skill pair-trade-screener-nicepkg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, numpy, scipy, statsmodels, requests, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the identification and analysis of pair trading opportunities, helping you find statistically sound, market-neutral trades without manual research.

Core Features & Use Cases

  • Automated Screening: Scans sectors or custom lists for cointegrated stock pairs.
  • Statistical Analysis: Performs correlation, cointegration tests (ADF), and calculates mean-reversion metrics (half-life, z-score).
  • Trade Signals: Generates clear entry/exit recommendations for market-neutral strategies.
  • Use Case: A user wants to implement a market-neutral strategy and asks, "Find pair trading opportunities in the tech sector." This Skill will identify pairs like AAPL/MSFT, analyze their relationship, and suggest trades if opportunities exist.

Quick Start

Use the pair-trade-screener skill to find pair trading opportunities in the technology sector.

Frequently Asked Questions about pair-trade-screener

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

FAQPage Schema
How do I find cointegrated stock pairs for statistical arbitrage?

To find cointegrated stock pairs for statistical arbitrage, you can screen specific sectors or custom stock lists using automated cointegration tests. This process identifies statistically sound, market-neutral trading opportunities without requiring manual research.

What is pair trading and how does mean reversion analysis work?

Pair trading is a market-neutral strategy that identifies correlated stocks, calculates their spread, and expects mean reversion. Analysis uses z-scores and half-life calculations to generate entry and exit signals when the spread deviates from its historical mean.

How do I generate entry and exit signals for a market-neutral strategy?

You generate entry and exit signals for a market-neutral strategy by calculating z-scores and hedge ratios from cointegrated stock pairs. These metrics indicate when the spread between pairs reaches extreme deviations, signaling optimal trade execution points.

Can I use Python and FMP API for pair trading backtesting?

Yes, you can use Python and FMP API for pair trading backtesting. The workflow utilizes Python libraries like pandas, numpy, scipy, and statsmodels to fetch data via FMP API, perform spread backtesting, and validate statistical arbitrage strategies.

Does pair trading screening work with custom stock lists or specific sectors?

Pair trading screening works effectively with both custom stock lists and specific sectors. You can input a custom ticker list or target a specific sector like technology, and the screener will automatically detect cointegrated pairs and analyze their relationships.

What statistical tests are needed to validate a pair trading strategy?

Validating a pair trading strategy requires the Augmented Dickey-Fuller (ADF) test for cointegration, correlation analysis, and half-life of mean reversion calculations. These statistical tests confirm the long-term relationship between stocks and the viability of the spread.