This is a statistical arbitrage screener that finds cointegrated stock pairs for market-neutral trading. It runs correlation analysis and Augmented Dickey-Fuller tests to identify pairs with mean-reverting spreads, then calculates z-scores to signal entry and exit points. The workflow is thorough: pulls two years of price data, filters by correlation thresholds (0.70+), validates cointegration (p < 0.05), and calculates half-life for mean-reversion speed. You'd use this if you're building pairs trades in specific sectors or want hedged positions that profit from relative moves rather than directional bets. The methodology is solid and well-documented, though you'll need clean data and patience since it's designed for systematic strategies, not quick scalps.

skills.sh installs
3.6K
GitHub stars
3.7K
last updated
Aug 21, 2026

Install

$ npx -y skills add tradermonty/claude-trading-skills --skill pair-trade-screener --agent claude-code

Installs into .claude/skills of the current project.

Files

Pair Trade Screener

Overview

This skill identifies and analyzes statistical arbitrage opportunities through pair trading. Pair trading is a market-neutral strategy that profits from the relative price movements of two correlated securities, regardless of overall market direction. The skill uses rigorous statistical methods including correlation analysis and cointegration testing to find robust trading pairs.

Core Methodology:

  • Identify pairs of stocks with high correlation and similar sector/industry exposure
  • Test for cointegration (long-term statistical relationship)
  • Calculate spread z-scores to identify mean-reversion opportunities
  • Generate entry/exit signals based on statistical thresholds
  • Provide position sizing for market-neutral exposure

Key Advantages:

  • Market-neutral: Profits in up, down, or sideways markets
  • Risk management: Limited exposure to broad market movements
  • Statistical foundation: Data-driven, not discretionary
  • Diversification: Uncorrelated to traditional long-only strategies

When to Use This Skill

Sponsors

Details

Repository
github.com/tradermonty/claude-trading-skills
Categories
Testing & QA, Finance & Trading
First seen
Jun 3, 2026

More from tradermonty/claude-trading-skills

All 54
1anthropics avatarearnings-analysisanthropics/financial-servicesCreate professional equity research earnings update reports (8-12 pages, 3,000-5,000 words) analyzing quarterly results for companies already under coverage. Fa3.6Kskills.sh installs
2dotnet avatarmigrate-xunit-to-mstestdotnet/skillsConvert .NET test projects from xUnit.net v2 or v3 to MSTest v4. Use for replacing xunit packages, [Fact]/[Theory], xUnit assertions, fixtures, ITestOutputHelpe3.6Kskills.sh installs
3majidmanzarpour avatarthreejs-game-directormajidmanzarpour/threejs-game-skillsPrimary entrypoint for complete Three.js browser game creation and premium iteration. Use by default for build-a-game, upgrade, polish, premium, AAA, high-fidel3.5Kskills.sh installs
4openai avatarhatch-petopenai/skillsCreate, repair, validate, visually QA, and package Codex-compatible animated pets and pet spritesheets from character art, generated images, company or prospect3.5Kskills.sh installs
5trailofbits avatardebug-buttercuptrailofbits/skillsDebugs the Buttercup CRS (Cyber Reasoning System) running on Kubernetes. Use when diagnosing pod crashes, restart loops, Redis failures, resource pressure, disk3.5Kskills.sh installs
6netlify avatarnetlify-edge-functionsnetlify/context-and-toolsGuide for writing Netlify Edge Functions. Use when building middleware, geolocation-based logic, request/response manipulation, authentication checks, A/B testi3.3Kskills.sh installs