pair-trade-screener

Identify cointegrated stock pairs and generate entry and exit signals.

Updated Apr 17, 2026
One-click install
npx skills add https://github.com/pasie15/claude-trading-skills-marketplace --skill pair-trade-screener-pasie15
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pair-trade-screener
Source: https://github.com/pasie15/claude-trading-skills-marketplace/tree/main/plugins/trading-stock-screeners/skills/pair-trade-screener
Command: npx skills add https://github.com/pasie15/claude-trading-skills-marketplace --skill pair-trade-screener-pasie15

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

The Pair Trade Screener removes the manual effort and statistical complexity of finding robust pair trading opportunities by automating screening, cointegration testing, spread analysis, and signal generation so traders can focus on execution and risk control.

Core Features & Use Cases

  • Sector and custom-universe screening: scan a sector or user-provided ticker list for high-correlation candidates.
  • Statistical validation: compute hedge ratios, run ADF cointegration tests, estimate half-life, and calculate rolling z-scores.
  • Actionable signals & sizing: produce entry/exit recommendations, stop rules, and market-neutral position sizing for implementation or backtesting.
  • Use case: screen Technology stocks for cointegrated pairs, validate candidates with half-life and z-score thresholds, and produce a ranked report for trading or backtesting.

Quick Start

Use the pair-trade-screener to find cointegrated pairs in the Technology sector with a two-year lookback and generate entry and exit recommendations.

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?

Cointegration testing for pair trading uses the ADF test to confirm a long-run equilibrium between two stocks, ensuring the spread is stationary and mean-reverting. This statistical validation prevents trading spurious correlations by verifying the hedge ratio stability over the lookback period.

How do I calculate rolling z-score and hedge ratio for mean-reversion trading signals?

Pair trading screening requires daily adjusted price history data sourced via the FMP API, along with Python libraries including pandas, numpy, scipy, and statsmodels for statistical computations. This environment supports the cointegration testing, hedge ratio estimation, and z-score calculations needed to generate signals.

What is the half-life of mean reversion and why does it matter for pair trading?

The half-life of mean reversion estimates the time required for a cointegrated spread to revert to its mean, indicating how long a pair trade takes to become profitable. It filters out pairs with slow reversion speeds, ensuring generated entry and exit signals have practical holding period expectations.

How do I generate market-neutral position sizing and stop rules from cointegration analysis?

You generate market-neutral position sizing and stop rules from cointegration analysis by applying the computed hedge ratio to balance the long-short exposure of the validated pair. The rolling z-score thresholds define specific entry, exit, and stop levels for backtesting and execution.