Skip to main content
skill CX Codex

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

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add Shubhamkumartrichy/claude-trading-skills-india
/plugin install india-trading-skills@india-trading-skills
Open on GitHub

What 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-skills

This 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-code

3Manually: put the files in place

~/.claude/skills/rsi-divergence/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/rsi-divergence/

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

Similar skills

All skills for Finance and business →

From the same set36

The whole set →
india-trading-skills The india-trading-skills Claude Code plugin analyzes NSE and BSE equities, F&O, trading costs, and Indian taxes. Ask about a stock, options setup, or portfolio to get calculations and market analysis. ★ 69repo stars risk-reward-ratio The risk-reward-ratio Claude Code skill evaluates trade risk and potential returns after costs. It calculates R multiples, breakeven win rate, and expectancy for entries, stops, and targets. CX Codex +1 ★ 69repo stars trailing-stops A Claude Code skill for calculating trailing stops on NSE/BSE positions. It activates when a trade moves into profit and the stop needs an update. CX Codex +1 ★ 69repo stars fibonacci-trading The fibonacci-trading Claude Code skill calculates Fibonacci retracement zones and extension targets for NSE/BSE stocks and indices. It activates for pullback-entry questions or requests to calculate levels from a swing high and low. CX Codex +1 ★ 69repo stars multi-timeframe-analysis The multi-timeframe-analysis Claude Code skill reads a stock or index across multiple timeframes. It compares the higher-timeframe bias with a daily setup and entry timing on shorter bars. CX Codex +1 ★ 69repo stars stop-loss-strategies The stop-loss-strategies Claude Code skill helps set initial stops for Indian equities and F&O trades. It covers chart levels, position risk, and order execution. CX Codex +1 ★ 69repo stars fundamental-screening The fundamental-screening Claude Code skill screens Indian listed companies for fundamentals and governance risks. It runs on requests to assess a company, review quarterly results, or compare stocks. CX Codex +1 ★ 69repo stars ipo-analysis The ipo-analysis Claude Code skill evaluates Indian mainboard and SME IPOs. It activates for questions about applying, subscription figures, allotment chances, or listing dates. CX Codex +1 ★ 69repo stars

Project sponsors

Companies that keep this analytics open