mean-reversion-scan

Scan US large-cap stocks for Connors RSI(2) oversold signals in uptrends.

4|Updated May 5, 2026
One-click install
npx skills add https://github.com/mthli/skills --skill mean-reversion-scan
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: mean-reversion-scan
Source: https://github.com/mthli/skills/tree/main/mean-reversion-scan
Command: npx skills add https://github.com/mthli/skills --skill mean-reversion-scan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires yfinance, pandas, numpy, and includes scripts (resource) components.

What problem does it solve?

It helps you identify mean-reversion equity opportunities by scanning for Connors-style RSI(2) oversold conditions that occur inside confirmed long-term uptrends, so you can focus on potential “buy-the-dip” setups rather than manually checking charts.

Core Features & Use Cases

  • Connors RSI(2) mean-reversion screening: Detects short-term oversold reversals (with a deep tier option) specifically where the long-term trend gate is intact.
  • Regime and trend safety filters: Applies a risk-on/risk-off regime gate using SPY vs 200DMA (with slope) plus per-ticker trend health checks (price vs 200DMA and 50DMA vs 200DMA).
  • Outcome persistence and reliability: Tracks prior signals in a history file and resolves wins/losses against a 5DMA target within a fixed time window to show running win rate.
  • Practical execution levels: Computes an ATR-based stop level and a 5DMA-based target level for each candidate, plus a “stuck oversold” section for persistent non-bouncing names.

Quick Start

Run mean-reversion-scan with the standard RSI(2) trigger to list the top currently triggered oversold bounce candidates for liquid US large-cap stocks.

Frequently Asked Questions about mean-reversion-scan

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

FAQPage Schema
How do I scan for RSI(2) oversold bounces in confirmed uptrends?▼

To scan for RSI(2) oversold bounces, the skill screens US large-cap equities using Connors RSI(2) signals gated by 200DMA and 50DMA trend filters. It identifies potential buy-the-dip setups where the long-term uptrend remains intact, ensuring you only find bounce candidates in healthy trends.

What is mean-reversion screening with market regime filters?▼

Mean-reversion screening with market regime filters detects short-term oversold reversals while confirming a broader risk-on environment using SPY vs its 200DMA. This dual-layer approach prevents buying dips during systemic risk-off periods, focusing only on high-probability bounce entries.

Can I use yfinance OHLCV data for multi-ticker equity screening?▼

Yes, you can use yfinance OHLCV data for multi-ticker equity screening within this skill. It retrieves historical price data via yfinance to compute RSI(2), calculate ATR-based stops, define 5DMA targets, and resolve historical win rates for liquid US large-cap stocks.

How are ATR stops and 5DMA targets calculated for equity scanning?▼

ATR stops and 5DMA targets are calculated directly from yfinance OHLCV data to provide practical execution levels for each mean-reversion candidate. The ATR-based stop defines downside risk, while the 5DMA serves as the profit target for resolving win-rate statistics.

Does mean-reversion backtesting track persistent oversold non-bouncing stocks?▼

Yes, mean-reversion backtesting tracks persistent oversold non-bouncing stocks by logging prior signals in a history file. It features a dedicated section for names stuck in oversold territory, separating them from successful bounces to maintain accurate running win-rate statistics.

What are the limitations of using RSI(2) for large-cap mean-reversion?▼

A limitation of using RSI(2) for large-cap mean-reversion is the risk of remaining stuck in oversold territory during trend breakdowns. While 200DMA and market regime filters mitigate this, the scanner explicitly isolates persistent non-bouncing names to highlight unresolved risk.