Rsi Divergence logo

Rsi Divergence

Community
Shubhamkumartrichy
rsi-divergence

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.

Overview

PublisherShubhamkumartrichy
Repositoryclaude-trading-skills-india
Skill namersi-divergence
Stars
57
Forks
11
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Shubhamkumartrichy on GitHub. Read the source before you install it.

Installation

Install the Rsi Divergence AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Shubhamkumartrichy/claude-trading-skills-india/tree/main/skills/rsi-divergence
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Shubhamkumartrichy/claude-trading-skills-india.git /tmp/claude-trading-skills-india
mkdir -p .claude/skills
cp -r /tmp/claude-trading-skills-india/skills/rsi-divergence .claude/skills/rsi-divergence
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Rsi Divergence in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Rsi Divergence on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Rsi Divergence is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

TypePriceRSIMeaning
Regular bullishLower lowHigher lowSelling pressure fading; possible bottom
Regular bearishHigher highLower highBuying pressure fading; possible top
Hidden bullishHigher lowLower lowUptrend pullback; continuation likely
Hidden bearishLower highHigher highDowntrend 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 …

Frequently asked questions

What does the Rsi Divergence AI skill do?

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.

Why use Rsi Divergence on TypingMind?

Because you install it once and use it with any model. Rsi Divergence is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Rsi Divergence in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Shubhamkumartrichy/claude-trading-skills-india/tree/main/skills/rsi-divergence. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Rsi Divergence?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Rsi Divergence?

As many as you like. As long as a model supports skills, you can use Rsi Divergence with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Rsi Divergence AI skill free?

Yes. It is published on GitHub by Shubhamkumartrichy under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇