> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openstrat.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Relative Strength Index (RSI)

> Deeply understand RSI’s principles, calculation, and trading strategies

## Overview

**Relative Strength Index (RSI)** is one of the most widely used oscillators, designed to measure, over a given window, whether price **“upward force” or “downward force”** is stronger.

You can think of it as a “sentiment thermometer” oscillating within the `0–100` range:

* Near the high end (commonly above 70): bullish sentiment is hot; price may be “overextended” in the short term
* Near the low end (commonly below 30): bearish sentiment is pessimistic; price may be “oversold” in the short term
* In the middle: bull and bear forces are relatively balanced—often consolidation or unclear direction

The value of learning RSI mainly lies in:

* Helping judge whether the market is **too hot / too cold** in the short term
* Identifying potential turning signals such as **bearish/bullish divergence** together with price action
* Combining with trend tools (e.g., moving averages) for **timing entries and exits**

***

## RSI Principles

### Calculation

The core idea of RSI is simple:

> Over the past N candles,
> separately tally the gains on up days and the losses on down days,
> and see whether the window is overall “more up” or “more down.”

Classic calculation steps (using 14-period RSI as an example):

1. Split the past 14 periods’ “single-period change”:

   * Up periods: record the gain (e.g., from 10 to 10.5, record `+0.5`)
   * Down periods: record the absolute value of the loss (e.g., from 10 to 9.8, record `0.2`)

2. Compute average gain and average loss (often with smoothing):

   * Average gain = `AvgGain`
   * Average loss = `AvgLoss`

3. Define relative strength `RS`:

   * `RS = AvgGain / AvgLoss`

4. Compute RSI:

   * `RSI = 100 − 100 / (1 + RS)`

Intuitive meaning:

* If the window is mostly up with small losses:

  * `AvgGain` ≫ `AvgLoss` → large `RS` → RSI near 100
* If the window is mostly down with small gains:

  * `AvgLoss` ≫ `AvgGain` → small `RS` → RSI near 0
* If gains and losses are similar:

  * `RS` ≈ 1 → RSI near 50

Common periods:

* 14 is the classic setting (14 days on daily charts, 14 hourly candles on hourly charts, etc.)
* Short-term traders may use 6, 9 for higher sensitivity
* Medium-term traders may use 21, 30 for more smoothing

### The 70/30 Rule

The most commonly cited thresholds:

* RSI above 70: **overbought zone** (bulls are hot in the short term)
* RSI below 30: **oversold zone** (bears are cold in the short term)

Important nuances:

1. “Overbought/oversold” is a **short-term condition**, not a long-term conclusion
2. Entering overbought:

   * Means recent action is “more up than down”
   * Signals a strong trend, but also the risk of “rising too fast” in the short term
3. Entering oversold:

   * Means recent action is “more down than up”
   * Signals strong bearishness, but also the risk of “falling too fast” in the short term

A common misuse:

* Immediately short when RSI exceeds 70
* Immediately buy when RSI breaks below 30

In **strong trends**, RSI can stay at high or low levels for a long time:

* Strong bull leg:

  * RSI often “sticks” in the 60–80 range
* Strong bear leg:

  * RSI often hovers in the 20–40 range

A more reasonable interpretation:

* 70/30 is a **“pay attention to risk/opportunity” reminder**, not a “must reverse” button
* Combine with:

  * Trend direction (moving averages, bullish/bearish alignment)
  * Key levels (support/resistance)
  * Candlestick patterns (high-volume long upper wicks, hammers, etc.)
    to decide whether a counter-trend trade is justified

Some traders adjust thresholds by instrument and regime, for example:

* Strong-trending instruments: 80/20
* Low-volatility instruments: 60/40

### Divergence Signals

**RSI divergence** is one of the most valuable RSI applications.

Two classic divergences:

1. Bearish divergence (top warning)
2. Bullish divergence (bottom warning)

#### Bearish Divergence

Characteristics:

* Price: makes a **new high** (second high > first)
* RSI: fails to make a new high; the second peak is **lower** than the first

Meaning:

* Even though price pushes higher, RSI suggests:

  * The “average strength of up days” in this rally is weaker than in the prior push
  * Bulls may be showing signs of **“price without momentum”** at high levels
* This is a warning that the trend may be **exhausting**

Common usage:

* Not necessarily short immediately, but:

  * Start **scaling out** of long positions
  * Raise protective stops
  * Wait for other reversal signals (breakdowns, large bearish candles, etc.) to trim further or flip

#### Bullish Divergence

Characteristics:

* Price: makes a **new low** (second low \< first)
* RSI: fails to make a new low; the second trough is **higher** than the first

Meaning:

* Even though price is lower, RSI suggests:

  * The “average strength of down days” is weaker than in the prior leg
  * Bears may be showing **waning downside drive** at low levels
* This often appears near phase bottoms, hinting that downside momentum may be exhausting

Common usage:

* For shorts:

  * Start taking profits in parts
  * Trail stops tighter
* For potential longs:

  * Treat bullish divergence as a signal to **start watching for bottom structure**
  * Wait for pattern/price-volume confirmation before probing long

Emphasis:

* Divergence is a **risk/opportunity hint**, not a guarantee of immediate reversal
* Divergence can persist for a while before it becomes a true reversal

***

## Core Concepts

### RSI Is a “Ratio Index of Up vs. Down Strength”

Key point:

* RSI doesn’t focus on absolute price change; it focuses on:

  * The ratio between “average gain on up periods” and “average loss on down periods” within the window
* So RSI is essentially an index of **short-term bull vs. bear efficiency**

Therefore:

* RSI trending up:

  * Recent up periods are “stronger”
* RSI trending down:

  * Recent down periods are “stronger”

### Market Regime Determines How to Use RSI

RSI should be interpreted differently across regimes:

* Trending markets (one-way up/down):

  * High/low RSI often reflects **trend persistence**, not reversal
  * Focus more on:

    * Whether RSI can stay in high/low zones (stickiness)
    * Whether clear divergence forms
* Ranging markets (box consolidation):

  * RSI 70/30 (or 60/40) is more suitable for **range buy-low/sell-high**
  * Near the range top + high RSI → better for trimming/short-term shorts
  * Near the range bottom + low RSI → better for probing longs

Never apply range logic in trends (shorting whenever it hits 70),
and don’t apply one-way trend logic in heavy chop.

### RSI Parameters and “Personality”

Shorter periods:

* RSI is more sensitive → more signals → suitable for short-term, but more false signals

Longer periods:

* RSI is smoother → fewer signals → suitable for medium-term, but slower to react

Common sets:

* Short-term: `RSI(6)`, `RSI(9)`
* Standard: `RSI(14)`
* Slightly medium-term: `RSI(21)`, `RSI(30)`

You can also plot two RSIs at once, e.g.:

* Fast RSI: 6
* Slow RSI: 14

Use the fast line for short-term rhythm and the slow line for the broader environment.

***

## Practical Applications

### Case 1: RSI Range Trading (Buy Low, Sell High)

**Scenario:**

* A stock has ranged between 10 and 12 for a long time
* The daily chart shows no clear trend, repeatedly oscillating

**Example setup:**

* Use `RSI(14)`
* Reference zones:

  * Overbought: 70
  * Oversold: 30

**Approach (range-only):**

1. When price approaches the range top (12):

   * And `RSI(14)` crosses above 70:

     * Treat as short-term overheating
     * Consider trimming or short-term selling into strength

2. When price approaches the range bottom (10):

   * And RSI crosses below 30:

     * Treat as short-term overcooling
     * Probe a long, with a stop below the range floor

Notes:

* You must confirm the regime is a **clear range**;
* Once price breaks out with convincing volume, stop the range logic and switch to trend logic.

### Case 2: RSI Stickiness + Divergence in a Trend

**Scenario:**

* An index rises from 3000 to 3600, with RSI repeatedly operating in the 60–80 range

Observations:

* Throughout the advance, `RSI(14)` stays mostly above 50, even sticking in 60–80:

  * Bull trend is strong
* Later near 3600:

  * The index makes a new high, but RSI’s peak is slightly lower than before (bearish divergence)
  * A high-volume long upper wick appears, followed by a break below a key MA

Approach:

* During high-RSI stickiness, don’t rush to “short at 70”
* When you get confluence of:

  * Bearish divergence
  * A major resistance area
  * Candlestick reversal signals
  * Key MA breaks
    treat it as a higher-confidence warning:
  * For existing longs, scale out and tighten stops
  * For aggressive traders, consider a small counter-trend probe (with strict risk control)

### Case 3: Bullish Divergence as a “Start Watching” Signal

**Scenario:**

* A commodity falls from 100 to 70 in an overall bear trend

Observations:

* First low at 80, with `RSI(14)` trough around 25;
* After a rebound, price drops again to a new low at 70:

  * RSI trough is around 30 and does not make a new low → bullish divergence

Strategy sketch:

* For shorts:

  * On the second selloff, treat bullish divergence as a reason to take partial profits and avoid greed
* For sidelined potential longs:

  * After bullish divergence, put the instrument into a **“potential reversal watchlist”**
  * Wait for:

    * Key resistance break
    * MA turning up
    * Or clear basing/stabilization patterns
      before probing long with a small position

***

## FAQs

### Q1: If RSI is above 70, will it definitely fall? If below 30, will it definitely rise?

No—there’s nothing “certain” about it.

* In strong trends:

  * RSI can stay at high or low levels for a long time (“stickiness”)
  * Counter-trend trades based only on 70/30 can cause early exits or losses against the trend
* A better approach:

  * Treat 70/30 as a **risk reminder**:

    * Above 70: be cautious about chasing; consider taking partial profits on longs
    * Below 30: be cautious about panic selling; shorts consider locking profits

Direction still depends on:

* Whether the trend remains intact
* Whether breakdowns/patterns/volume confirmations appear

### Q2: Does RSI divergence mean an immediate reversal?

Not necessarily. Divergence is more a **“trend is aging” signal** than an instant turn.

Possible outcomes:

* After bearish divergence, price may push a small additional high before rolling over;
* After bullish divergence, price may go sideways near lows before rising;
* In very strong trends, divergence may even be “corrected” by a renewed acceleration.

Usage suggestions:

* Treat divergence as:

  * One reason to **tighten risk, reduce, and lock profits** on existing positions
  * A signal to **start paying attention** to potential reversal opportunities
* For actual reversal entries, it’s better to wait for:

  * Key level breaks
  * MA rollovers
  * Pattern confirmation (head and shoulders, double tops/bottoms, etc.)

### Q3: What RSI period and thresholds should I use? Should I use multiple RSIs at once?

Common practices:

* Periods:

  * `RSI(14)` is the classic setting
  * Short-term: `RSI(6)`, `RSI(9)` for higher sensitivity
  * Swing/medium-term: `RSI(21)`, `RSI(30)` to reduce noise
* Thresholds:

  * Default 70/30
  * Strong-trending instruments: 80/20
  * More conservative reminders: 60/40

Multiple RSIs:

* A “fast RSI + slow RSI” combo can work:

  * e.g., `RSI(6)` and `RSI(14)`
  * Use the slow RSI for overall strength, and the fast RSI for near-term rhythm
* But don’t plot too many, otherwise:

  * The chart becomes cluttered
  * Decision-making becomes hesitant

Start with a single `RSI(14)`, and add a second line only if you truly need it after you’re familiar.

***

## Summary

* **RSI** compares “average gain on up periods” vs. “average loss on down periods” over a window, producing a **short-term composite score of bull vs. bear strength** within the `0–100` range.
* Core:

  * Compute `RS = AvgGain / AvgLoss`
  * Then `RSI = 100 − 100 / (1 + RS)`
* Main uses:

  * 70/30 (or 80/20, 60/40) overbought/oversold zones as short-term overheating/overcooling reminders
  * Bearish/bullish divergence as risk hints for trend exhaustion and potential turning zones
  * Combine with trend tools to choose better timing within the trend
* Key usage points:

  * RSI is a **short-term strength indicator**, not a standalone buy/sell command
  * Must be combined with:

    * Higher-timeframe trend (MAs, structure)
    * Support/resistance
    * Patterns and volume
      for a holistic judgment
  * Usage differs in trending vs. ranging markets—do not mix regimes

One sentence:

> Use trend to decide “which side to be on,”
> use RSI to judge “whether the push is still strong or getting a bit overdone,”
> then decide whether to keep following—or start closing the umbrella.

***

## Further Reading

* Related resource links

  * Articles and videos in investor-education sections of major brokers/futures firms on “RSI,” “oscillators,” and “overbought/oversold” can be practiced with real charts.
  * Technical analysis tutorials under keywords like `RSI indicator` and `Relative Strength Index` often include example charts across different market regimes.

* Recommended books or articles

  * *Technical Analysis of the Financial Markets* — John J. Murphy
    Provides systematic coverage of RSI and other oscillators, a classic for building a technical analysis framework.
  * Chapters in practical technical analysis books on “RSI divergence” and “RSI combined with trends/patterns” can help you truly integrate RSI into a trading system, rather than stopping at the simplistic slogan “sell at 70, buy at 30.”
