rsi-divergence
Skill64 starsChanged 17 days agoMITView on GitHub
Detect and trade RSI(14) divergences on NSE/BSE stocks and indices: regular divergence (reversal warning) and hidden divergence (trend continuation), with strength grading, confirmation rules, entries, stops and Fibonacci targets. ta.py divergence finds them automatically from swing points.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- IngAs8/ClaudeSkilltheir own version, first seen Sep 28, 2026
- SKE-Labs/agent-trading-skillstheir own version, first seen Jul 18, 2026
- Bhala-Srinivash/nse-trading-skillstheir own version, first seen Mar 5, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- Bhala-Srinivash/nse-trading-skills★ 36same name
- SKE-Labs/agent-trading-skills★ 17same name
- IngAs8/ClaudeSkill★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository34 other files it gives its agents.
- backtest-labSkill
- breakout-plannerSkill
- broker-integrationSkill
- event-calendarSkill
- exhaustion-reversalSkill
- fibonacci-tradingSkill
- fii-dii-flowsSkill
- fno-options-analysisSkill
- fundamental-screeningSkill
- india-market-analystSkill
- indian-market-structureSkill
- indian-tax-for-tradersSkill
- ipo-analysisSkill
- macro-regimeSkill
- market-breadthSkill
- market-pulseSkill
- market-regimeSkill
- market-valuationSkill
- momentum-scannerSkill
- multi-timeframe-analysisSkill
- options-strategiesSkill
- pair-tradingSkill
- portfolio-reviewSkill
- position-sizingSkill
- results-seasonSkill
- risk-reward-ratioSkill
- sector-rotationSkill
- stock-screenerSkill
- stop-loss-strategiesSkill
- technical-analysisSkill
- thesis-trackerSkill
- trading-costsSkill
- trading-disciplineSkill
- trailing-stopsSkill
The file
Files
RSI Divergence
Divergence means price is making a new extreme but momentum is not following. It is an early warning, not a trigger.
Find them
python3 ../technical-analysis/scripts/ta.py divergence --symbol ICICIBANK # or --csv / --candles
python3 ../technical-analysis/scripts/ta.py summary --csv data.csv # includes the 3 most recentThe script uses Wilder RSI(14) and compares consecutive swing lows (bullish) or swing highs (bearish) at least 5 bars apart within the last 90 bars. Each finding includes the dates, prices, RSI values, strength, and a warning when RSI sits in the weak 40–60 zone.
Types
| Type | Price | RSI | Meaning |
| Regular bullish | Lower low | Higher low | Selling pressure fading; possible bottom |
| Regular bearish | Higher high | Lower high | Buying pressure fading; possible top |
| Hidden bullish | Higher low | Lower low | Uptrend pullback; continuation likely |
| Hidden bearish | Lower high | Higher high | Downtrend rally; continuation likely |
Strength grading: a 2-swing divergence is standard; 3 swings is strong; from oversold (<30) or overbought (>70) territory is stronger; combined with falling volume or falling delivery % into the extreme is strongest. Weekly beats daily, and daily beats intraday.
Trade it (only with confirmation)
- Identify the divergence on the daily chart and check the weekly bias (
multi-timeframe-analysis). Regular divergences against a strong weekly trend fail often. Hidden divergences with the weekly trend are the higher-probability use. - Wait for confirmation:
- a close beyond the minor trendline or the last lower-high (bullish case);
- RSI crossing back above 30 (bullish) or below 70 (bearish);
- a reversal candle (bullish engulfing, hammer) at a support level or Fib zone.
- Enter on the confirmation candle's close, or on the next day's open if it was a results or event day.
- Stop: beyond the divergence extreme plus a buffer (0.5% large cap, 1% mid/small cap), and at least 1 ATR away.
- Targets: previous swing high/low, then Fib extensions 127.2% and 161.8% (
ta.py fib). - Size with
position-sizingand check R:R after costs (risk-reward-ratio).
Caveats
- Divergence can persist. Strong trends print several divergences before turning.
- RSI in 40–60 makes signals weak, and the script flags it.
- Event distortion: results days, ex-dividend drops, and bonus/split adjustments create artificial swings. Exclude those bars or treat findings around them with caution.
- Index vs constituents: a divergence on NIFTY is more reliable when heavyweights (HDFCBANK, RELIANCE, ICICIBANK, INFY, TCS…) show the same pattern.
Output
Divergence: [type] on [timeframe], [date1] → [date2]
Price ₹a → ₹b; RSI x → y ([strength]; RSI zone note)
Context: weekly bias …, level …, volume/delivery …
Plan: confirm on … | entry … | stop … | targets … | R:R after costs …Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

