mean-reversion-scan
CommunityFind oversold bounces in strong uptrends.
Finance & Accounting#backtesting#mean reversion#portfolio research#equity scanning#rsi(2)#atr stops#market regime filter
Authormthli
Version1.0.0
Installs0
System Documentation
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.
Dependency Matrix
Required Modules
yfinancepandasnumpy
Components
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: mean-reversion-scan Download link: https://github.com/mthli/skills/archive/main.zip#mean-reversion-scan Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.