/everything-claude-trading:pairs-scanfrom everything-claude-trading
Scans a universe of securities for cointegrated pairs using Engle-Granger and Johansen tests, computes hedge ratios and mean-reversion metrics, and identifies current entry signals with z-score thresholds.
Ships in everything-claude-trading. Installing the plugin adds it to Claude Code.
Scans a universe of securities for cointegrated pairs suitable for statistical arbitrage trading. Tests for cointegration, measures mean-reversion speed, calculates hedge ratios, and identifies current entry opportunities. The stat-arb-specialist agent leads the analysis.
Input:
/pairs-scan US energy sector large-caps, find top 5
cointegrated pairs with current entry signals
Output:
## Pairs Scan — US Energy Sector
### Universe
Large-cap energy stocks (S&P 500 Energy constituents), 16 names.
120 candidate pairs tested over 3-year lookback.
### Top 5 Cointegrated Pairs
| # | Pair | EG p-val | Johansen | Half-Life | Hurst |
|---|--------------|----------|----------|-----------|-------|
| 1 | XOM / CVX | 0.008 | Rank 1 | 14 days | 0.32 |
| 2 | COP / EOG | 0.012 | Rank 1 | 18 days | 0.35 |
| 3 | PXD / FANG | 0.021 | Rank 1 | 11 days | 0.28 |
| 4 | SLB / HAL | 0.034 | Rank 1 | 22 days | 0.38 |
| 5 | MPC / VLO | 0.018 | Rank 1 | 9 days | 0.26 |
### Current Entry Signals
| Pair | Z-Score | Signal | Hedge Ratio | Entry Side |
|------------|---------|-----------|-------------|---------------------|
| XOM / CVX | +2.14 | SELL pair | 0.82 | Short XOM, Long CVX |
| MPC / VLO | -1.92 | BUY pair | 1.15 | Long MPC, Short VLO |
| PXD / FANG | +0.34 | No signal | 0.71 | — |
| COP / EOG | -0.62 | No signal | 0.93 | — |
| SLB / HAL | +1.21 | Monitor | 1.08 | Approaching entry |
### Trade Detail — XOM / CVX (Strongest Signal)
- Current spread z-score: +2.14 (entry threshold: 2.0)
- Hedge ratio (Kalman filter): Short 100 XOM / Long 122 CVX
- Expected holding period: 14 days (half-life)
- Stop-loss: z-score > 3.5 or 21 calendar days
- Target: z-score returns to 0.5
- Historical win rate: 68% (n=42 trades since 2022)
- Average profit per trade: 1.8% on capital deployed
### Risk Warnings
- Energy sector pairs can decouple during oil price shocks
- M&A risk for PXD/FANG pair (monitor news flow)
- Correlation regime shifts during macro events (OPEC decisions)
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
Generated from the plugin's indexed repository (brainbytes-dev/everything-claude-trading) — no native marketplace selected
npx claudepluginhub p/brainbytes-dev-everything-claude-trading20 commands in this plugin
/alpha-decay/alpha-decayAnalyze signal half-life, alpha decay curves, and strategy capacity/backtest/backtestBacktest a trading strategy with rigorous validation and overfitting checks/correlation-check/correlation-checkAnalyze portfolio correlations, detect regime breaks, and identify hidden exposures/crypto-analysis/crypto-analysisAnalyze crypto assets, DeFi protocols, on-chain metrics, and yield opportunities/data-pipeline/data-pipelineDesign and validate financial data ingestion, cleaning, and transformation pipelines/execution-plan/execution-planPlan trade execution with optimal scheduling, venue selection, and TCA targetsOther plugins' commands for the same job