rsi-divergence — Claude Code skill: RSI signals
The rsi-divergence Claude Code skill detects RSI(14) divergences on NSE/BSE stocks and indices. It activates for questions about bullish or bearish divergence and whether momentum confirms a new high or low.
MIT ★ 69 updated 2026-11-13
/plugin marketplace add Shubhamkumartrichy/claude-trading-skills-india
/plugin install india-trading-skills@india-trading-skillsWhat rsi-divergence does
The skill finds regular and hidden RSI(14) divergences in NSE/BSE stocks and indices. The ta.py divergence script compares nearby swing points and reports dates, prices, RSI readings, and a strength grade. It also flags the 40–60 RSI zone, where signals are weak.
Python 3 and ../technical-analysis/scripts/ta.py are required; data can be supplied with --symbol, --csv, or --candles. The skill outlines entry confirmations, stop placement, and Fibonacci targets. A divergence alone is not an entry trigger.
Results days, ex-dividend drops, and bonus or split adjustments can create artificial swings. The skill advises excluding those bars or treating nearby findings with caution.
What it helps with
- spot a bullish divergence on a stock chart
- find a bearish RSI divergence
- separate reversal warnings from trend continuation
- grade a divergence and map trade levels
Example prompts for the agent
- Find an RSI(14) divergence for ICICIBANK.
- Check whether RSI confirms a new high in RELIANCE.
- Look for hidden bullish divergence in
data.csv.
How to install rsi-divergence
1Plugin marketplace
/plugin marketplace add Shubhamkumartrichy/claude-trading-skills-india/plugin install india-trading-skills@india-trading-skillsThis installs the whole india-trading-skills plugin with all its skills
2Skills CLI (Vercel)
npx skills add Shubhamkumartrichy/claude-trading-skills-india --skill rsi-divergence -a claude-code3Manually: put the files in place
~/.claude/skills/rsi-divergence/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/rsi-divergence/
1Skills CLI (Vercel)
npx skills add Shubhamkumartrichy/claude-trading-skills-india --skill rsi-divergence -a codex2Manually: put the files in place
.agents/skills/rsi-divergence/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add Shubhamkumartrichy/claude-trading-skills-india --skill rsi-divergence -a cursor2Manually: put the files in place
.cursor/skills/rsi-divergence/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Shubhamkumartrichy/claude-trading-skills-india skills/rsi-divergence2Manually: put the files in place
.github/skills/rsi-divergence/SKILL.md1Skills CLI (Vercel)
npx skills add Shubhamkumartrichy/claude-trading-skills-india --skill rsi-divergence -a gemini-cli2Platform CLI
gemini skills install https://github.com/Shubhamkumartrichy/claude-trading-skills-india --path skills/rsi-divergenceManually: put the files in place
.devin/skills/rsi-divergence/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about rsi-divergence
How do I install rsi-divergence in Claude Code?
Run these commands in order: /plugin marketplace add Shubhamkumartrichy/claude-trading-skills-india, then /plugin install india-trading-skills@india-trading-skills.
What does rsi-divergence do?
It detects regular and hidden RSI(14) divergences on NSE/BSE stocks and indices, grades their strength, and outlines confirmations, stops, and targets.
What does rsi-divergence need to run?
It requires Python 3 and ../technical-analysis/scripts/ta.py. Supply data with --symbol, --csv, or --candles.
Source text
SKILL.md · MIT
--- name: rsi-divergence description: | 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. Use when the user asks: "RSI divergence on X", "is there bullish/bearish divergence", "momentum divergence", "RSI showing weakness", "hidden divergence", or wants to know if momentum confirms a new high/low. --- # 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 ```bash 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 recent ``` The 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) 1. 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. 2. 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. 3. Enter on the confirmation candle's close, or on the next day's open if it was a results or event day. 4. **Stop:** beyond the divergence extreme plus a buffer (0.5% large cap, 1% mid/small cap), and at least 1 ATR away. 5. **Targets:** previous swing high/low, then Fib extensions 127.2% and 161.8% (`ta.py fib`). 6. Size with `position-sizing` and 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 … ```
© Shubham Kumar · MIT · Shubhamkumartrichy/claude-trading-skills-india