backtest-expert
Expert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating…
Statistical arbitrage tool for identifying and analyzing pair trading opportunities. Detects cointegrated stock pairs within sectors, analyzes spread behavior, calculates z-scores, and provides entry/exit recommendations for market-neutral strategies. Use when user requests pair
Claude Code
$ npx -y skills add tradermonty/claude-trading-skills --skill pair-trade-screener --agent claude-code
Codex
$ npx skills add tradermonty/claude-trading-skills --skill pair-trade-screener -a codex -y
Cursor
$ npx skills add tradermonty/claude-trading-skills --skill pair-trade-screener -a cursor -y
Gemini CLI
$ npx skills add tradermonty/claude-trading-skills --skill pair-trade-screener -a gemini-cli -y
GitHub Copilot
$ npx skills add tradermonty/claude-trading-skills --skill pair-trade-screener -a github-copilot -y
OpenCode
$ npx skills add tradermonty/claude-trading-skills --skill pair-trade-screener -a opencode -y
Windsurf
$ npx skills add tradermonty/claude-trading-skills --skill pair-trade-screener -a windsurf -y
name: pair-trade-screener description: Statistical arbitrage tool for identifying and analyzing pair trading opportunities. Detects cointegrated stock pairs within sectors, analyzes spread behavior, calculates z-scores, and provides entry/exit recommendations for market-neutral strategies. Use when user requests pair trading opportunities, statistical arbitrage screening, mean-reversion strategies, or market-neutral portfolio construction. Supports correlation analysis, cointegration testing, and spread backtesting.
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:**
**Key Advantages:**
Use this skill when:
Example user requests:
Set the API key without placing it on the command line or in a committed file:
export FMP_API_KEY="<fmp-api-key>"
Run the scripts from the repository root with the statistical dependency isolated to the command:
uv run --with 'statsmodels>=0.14,<0.15' python \ skills/pair-trade-screener/scripts/find_pairs.py \ --symbols AAPL,MSFT \ --output /tmp/pair-trade/pairs.json
**Objective:** Establish the pool of stocks to analyze for pair relationships.
**Option A: Sector-Based Screening (Recommended)**
Select a specific sector to screen:
**Option B: Custom Stock List**
User provides specific tickers to analyze:
Example: ["AAPL", "MSFT", "GOOGL", "META", "NVDA"]
**Option C: Industry-Specific**
Narrow focus to specific industry within sector:
**Filtering Criteria:**
**Objective:** Fetch price history for correlation and cointegration analysis.
**Data Requirements:**
**FMP API Endpoint:**
GET /stable/historical-price-eod/dividend-adjusted?symbol={symbol} # preferred, adjClose
GET /stable/historical-price-eod/full?symbol={symbol} # fallback, unadjusted close
Header: apikey: <FMP_API_KEY>**Data Validation:**
**Script Execution:**
uv run --with 'statsmodels>=0.14,<0.15' python \ skills/pair-trade-screener/scripts/find_pairs.py \ --sector Technology \ --lookback-days 730 \ --output /tmp/pair-trade/technology.json
**Objective:** Identify candidate pairs with strong linear relationships.
**Correlation Analysis:**
For each pair of stocks (i, j) in the universe: 1. Calculate Pearson correlation coefficient (ρ) 2. Calculate rolling correlation (90-day window) for stability check 3. Filter pairs with ρ >= 0.70 (strong positive correlation)
**Correlation Interpretation:**
**Beta Calculation:**
For each candidate pair (Stock A, Stock B):
Beta = Covariance(A, B) / Variance(B)
Beta indicates the hedge ratio:
**Correlation Stability Check:**
Data handling: Privacy policy · Security policy Claude Trading Skills started as a personal project to use AI to improve my own trading process. Claude Trading Skills is a Claude Skills-based trading workflow toolkit for time-constrained individual investors.
Expert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating…
This skill should be used when analyzing market breadth charts, specifically the S&P 500 Breadth Index (200-Day MA based) and the…
Generate Minervini-style breakout trade plans from VCP screener output with worst-case risk calculation, portfolio heat…
Screen US stocks using William O'Neil's CANSLIM growth stock methodology. Use when user requests CANSLIM stock screening, growth…
Synthesize the three Jason Shapiro contrarian-pipeline verdicts (COT crowding, news-reaction failure, weekly price-action…
Detect crowded speculative positioning in CFTC futures markets (COT report analysis) to find contrarian setups using Jason…
Complete, populate and fill out 3-statement financial model templates (Income Statement, Balance Sheet, Cash Flow Statement) .…
Complete, populate and fill out 3-statement financial model templates (Income Statement, Balance Sheet, Cash Flow Statement) .…