Everyone wants to buy "low" and sell "high," but how do you know what "high" is? The Relative Strength Index (RSI) measures how strong recent gains have been compared with recent losses, on a scale of 0 to 100. It flags when a move has been unusually one-sided — "overbought" or "oversold" — which is useful context, but not a signal to buy or sell on its own.

Part 1: What is the RSI?

If you have ever wondered what the RSI indicator is in stock trading for beginners, here is the simple answer: the Relative Strength Index (RSI) is a momentum oscillator that measures the speed and change of price movements. It oscillates between zero and 100. It was developed by J. Welles Wilder in his 1978 book, New Concepts in Technical Trading Systems -- the same book that introduced the ATR (Average True Range) and Parabolic SAR. Wilder was an engineer, and he designed the RSI to solve the problem of "whipsaws" in trend-following systems.

Think of a car speeding up a hill. As it climbs, the engine works hard (Momentum increases). Eventually, if the hill is too steep, the car might keep moving forward, but it slows down (Momentum decreases). The RSI measures this internal strength. It shows whether recent gains are getting bigger or smaller relative to recent losses — it does not tell you whether the move will continue.

The Temperature Check

  • RSI > 70Overbought (Hot): Price has risen quickly with few down periods. A pause or pullback is more common from here, but strong trends can stay above 70.
  • RSI < 30Oversold (Cold): Price has fallen quickly with few up periods. A bounce is more common from here, but strong downtrends can stay below 30.
  • RSI = 50Neutral: The midpoint. Above 50 is generally bullish territory; below 50 is bearish.

The Calculation (For Geeks)

You don't need to calculate this manually (computers do it), but understanding the math helps you trust the tool.

RSI = 100 - (100 / (1 + RS))

Where RS (Relative Strength) = Average Gain of 'n' days / Average Loss of 'n' days.

Translation: It compares the size of green candles vs. red candles over the last 14 periods. If the last 14 days were all massive green candles, RSI goes to 100. If all massive red, it goes to 0. It is a ratio of winning strength vs losing strength.

Part 2: The Biggest Myth (Don't Do This!)

The "Blind Reversal" Trap

Mistake: Buying just because RSI hits 30, or Shorting because RSI hits 70.

Reality: In a strong trend, RSI can stay overbought (>70) for weeks while the price keeps rising. Shorting every reading above 70 during a sustained rally means repeatedly betting against the trend, and the losses add up.

Rule: Overbought means "Strong", not necessarily "Reversing."

So if we can't trade the levels blindly, how to use the RSI indicator to find entry and exit points? Instead of trading the raw numbers, look for failure. We look for discrepancies between price and momentum.

Part 3: Divergence

Divergence is one of the most discussed RSI patterns, so it is worth learning how to spot bullish and bearish RSI divergence correctly. It happens when price and momentum disagree: price makes a new extreme, but RSI does not. It is a warning that the move is losing force, not a timing signal — divergence can build over several swings before price turns, and sometimes it never does.

Bearish Divergence (Top Signal)

  • • Price: Makes a Higher High (HH) ↗️
  • • RSI: Makes a Lower High (LH) ↘️

Meaning: The price pushed higher, but with less momentum than before. Upward momentum is fading; wait for price itself to confirm (for example, a break of the last swing low) before acting.

Bullish Divergence (Bottom Signal)

  • • Price: Makes a Lower Low (LL) ↘️
  • • RSI: Makes a Higher Low (HL) ↗️

Meaning: The price dropped lower, but selling pressure decreased. Downward momentum is fading; it becomes a buy setup only once price confirms, for example by breaking above the last swing high.

Worked example

Illustration: Bearish Divergence at a Top

A hypothetical stock, with round numbers, showing how the pattern forms

1. The First Peak

A stock rallies to $64. Daily RSI reaches 82 — a strong, one-sided move.

2. The Pullback & Rally

Price pulls back to $55, then rallies to a new high of $69.

3. The Divergence (Warning)

Price made a higher high ($69 vs $64), but RSI only reached 66 (a lower high than 82). The second rally had less momentum behind it.

4. Confirmation — or not

The divergence is only a warning. A trader acting on it would wait for price to break below the $55 pullback low before selling. If price instead keeps rising, the divergence has failed — which happens often in strong trends.

Hypothetical scenario for illustration only. Past performance does not guarantee future results.

Part 4: Advanced Strategy - Swing Failure Pattern (SFP)

Wilder himself described this pattern as a "failure swing." It focuses on the RSI breaking back into the range after an overbought reading, and like any pattern it produces false signals.

The SFP Setup (Sell Setup)

  1. RSI breaks above 70 (e.g., hits 75). This alerts you to watch the chart.
  2. RSI dips back down below 70 (e.g., to 65). This is the setup phase.
  3. RSI rallies again but fails to break the previous high of 75. It forms a lower high.
  4. RSI breaks below its recent swing low.

This "M" shape on the RSI is what some traders use as a trigger to exit longs or enter a short. It shows that a second push higher had less momentum than the first.

Part 5: Advanced RSI Theory - Andrew Cardwell

Many traders stop at Wilder's 70/30 levels. Andrew Cardwell, an RSI educator, popularised the observation that the ranges shift depending on the trend.

Bull Market Range

In a Bull Market, RSI tends to oscillate between 40 and 80, so pullbacks often stop around 40 rather than reaching 30. A bounce from the 40 area is what Cardwell-style traders watch as a possible entry.

Bear Market Range

In a Bear Market, RSI tends to oscillate between 20 and 60, so rallies often stall around 60 rather than reaching 70.

Tip: Use the "Range Shift" as evidence of a possible trend change. If RSI has been peaking around 60 during a downtrend and then pushes to 75, momentum has changed character — a sign the downtrend may be ending, to be confirmed by price.

Part 6: RSI Trendlines & Hidden Divergence

You can draw trendlines directly on the RSI window, just like you do on price charts.

The Leading Indicator Effect

Often, the RSI will break its own downtrend line before the price breaks its downtrend line. That can give an early hint that momentum is turning, though an RSI trendline break without a matching price break is an unconfirmed signal and fails often.

Hidden Divergence

While regular divergence signals reversals, "Hidden Divergence" signals trend continuation.
- Hidden Bullish: Price makes a Higher Low, but RSI makes a Lower Low. This suggests the pullback was sharp but shallow in price terms, and is read as a sign the uptrend may resume.

Part 7: Combining RSI with Moving Averages

RSI works better with context. A common approach is to combine the "Trend" (Moving Averages) with the "Momentum" (RSI).

1
Identify the Trend: Is price above the 200-day SMA? If YES, we are bullish. We only look for long trades.
2
Wait for the Pullback: Wait for RSI to drop below 30 (Oversold).
3
The Trigger: Buy when RSI crosses back above 30.

The trend filter removes many of the oversold readings that occur in downtrends (catching a falling knife), so you are only buying dips in the direction of the longer-term trend. It does not remove losing trades.

RSI vs MACD: Which Momentum Indicator Should Beginners Use?

A common question is the difference between RSI and MACD for beginners deciding which oscillator to trust. RSI is a bounded oscillator (0-100) that measures how one-sided recent price moves have been, which makes it suited to spotting stretched conditions and timing pullback entries. MACD, by contrast, is an unbounded trend-following tool built from moving averages, so it is better at confirming the direction and strength of an established trend. RSI is usually easier to learn first because its fixed scale makes overbought and oversold readings easy to see. Once comfortable, many traders pair the two: RSI for entry timing and MACD for trend confirmation. If you build a position in several buys, a break-even calculator shows the price you need to get back to after costs.

Part 8: Building an RSI Algo Bot

For the developers reading this, RSI is one of the easiest indicators to automate because it has clear, mathematical bounds. Here is a simple logic structure for a mean-reversion bot:

// Python / Pseudo-code Logic
def evaluate_rsi_strategy(price_data, period=14):
    rsi = calculate_rsi(price_data, period)
    current_rsi = rsi[-1]
    prev_rsi = rsi[-2]
    
    # Buy Signal: Crossing UP above 30
    if prev_rsi < 30 and current_rsi > 30:
        return "BUY"
        
    # Sell Signal: Crossing DOWN below 70
    elif prev_rsi > 70 and current_rsi < 70:
        return "SELL"
    
    return "HOLD"

Note: This logic ignores trading costs, slippage and position sizing, and a mean-reversion rule like this tends to suffer in strong trends, where it keeps selling into strength or buying into weakness. A common adjustment is a trend filter: if price > 200_sma and rsi < 30: Buy. Back-test any version on your own data before trading it.

RSI Settings by Trading Style: A Timeframe Cheat Sheet

The default 14 period works everywhere, but the RSI you watch should match how long you hold. A scalper reacting to 5-minute noise needs a faster, jumpier line; a swing trader holding for weeks wants a calmer signal that ignores intraday chop. The table below is a starting point, not a rule -- the "best" setting is the one you can follow without second-guessing.

Trading StyleTypical ChartRSI PeriodLevels to WatchWhy
Scalping1-5 min2-790 / 10A fast RSI fires many signals; use extreme levels to filter noise.
Day Trading5-15 min7-1480 / 20Balances responsiveness with fewer false whipsaws.
Swing Trading1H - Daily1470 / 30Wilder's original default and the most widely used setting.
Position / InvestingDaily - Weekly14-2170 / 30 (+50 filter)Slower line smooths noise; weekly RSI > 50 confirms the long-term trend.

Before you tinker: signals on higher timeframes are generally less noisy than those on intraday charts, so a daily-chart divergence carries more weight than a 5-minute one. If you find yourself constantly changing the period to "fix" bad trades, the problem is usually your timeframe or your position sizing, not the RSI setting.

The Connors RSI-2 Strategy: A Complete Mean-Reversion System

A widely discussed RSI approach is Larry Connors' 2-period RSI strategy. It sounds counterintuitive -- a 2-period RSI is very jumpy and reaches extreme readings often -- but that is the point. Connors uses those extremes to buy short-term sell-offs inside a longer uptrend, rather than trying to call reversals blindly. Unlike the naive "buy at 30" approach, it is a complete mechanical system with a trend filter, an entry and an exit, which makes it something you can actually test.

Long Setup Rules

  1. Trend filter: Price is above the 200-day SMA (only take longs).
  2. Entry: The 2-period RSI drops below 10 (deep short-term oversold).
  3. Add (optional): Scale in if RSI-2 falls below 5.
  4. Exit: Sell when price closes above its 5-day SMA -- not at a fixed RSI level.

The Logic Behind It

  • The 200-SMA filter keeps you trading with the longer-term trend and skips most dips in downtrends.
  • The moving-average exit takes the bounce when it comes instead of waiting for RSI to reach 70.
  • It targets short-term dips in uptrending markets; how well that holds up depends on the market, period and costs you test it on.

Worked example

Worked Example: RSI-2 on an Uptrending Stock

A hypothetical mean-reversion trade, start to finish

1. Context: A stock trades at roughly $100, comfortably above its 200-day SMA of $88. The long-term trend is up, so we only hunt for buys.

2. The dip: Bad news triggers a 3-day sell-off to about $94. The 2-period RSI collapses to 6 -- a short-term panic.

3. Entry: Because we are above the 200-SMA and RSI-2 is under 10, we buy near $94.

4. Exit: Two days later the stock closes at $98, back above its 5-day SMA. We sell into the bounce for a roughly 4% gain -- no need to wait for RSI to hit 70.

Illustrative only. Connors' published rules did not use hard stop-losses, but a single stock can fall much further than an index, so define a maximum loss before entering. A break-even calculator shows what price you need to cover commissions and fees.

Hypothetical scenario for illustration only. Past performance does not guarantee future results.

RSI FAQ

Should I change the default settings (14)?
Usually not at first. When people ask what the best RSI settings for day trading and swing trading are, the practical answer is that 14 is the default most charting platforms and traders use, so it is the common reference point. Shortening it (to 7, say) makes the line jumpier and produces more signals; lengthening it (to 21) smooths it and produces fewer. Learn how 14 behaves on your market before changing it, and see the timeframe table above for common alternatives.
What does RSI 50 mean?
50 is the midpoint: average gains and average losses over the period are equal. A cross from below to above 50 means recent gains have started to outweigh recent losses, which some traders read as momentum turning positive. Some use "RSI > 50" as a filter, for example only buying when the weekly RSI is above 50.
Can RSI stay oversold forever?
Not forever, but for much longer than most people expect. In a crash (like 2008 or 2020), RSI can sit in the teens or lower while price keeps falling. This is why many traders wait for a bullish divergence or a cross back above 30 before buying, rather than buying just because RSI reads 20.
Does RSI work on Intra-day charts?
Yes, but it is noisier. On a 5-minute chart, RSI can reach overbought or oversold several times a day; on a weekly chart, it may happen only a few times a year. Signals on higher timeframes are fewer and generally less noisy, and intraday trading costs eat a larger share of each small move.
What is the best RSI level to buy a stock?

There is no single magic number, but the classic buy zone is an RSI below 30 (oversold). The safer approach is to wait for RSI to cross back up through 30 rather than buying the instant it dips under, since RSI can stay oversold for a long time in a downtrend. In a confirmed uptrend, many traders treat a bounce off 40 as the real buy signal.

Related:Oversold levelsAveraging downTrend filter
Is RSI a good indicator for beginners?

Yes. Because RSI is bounded between 0 and 100, overbought and oversold conditions are visually obvious, which makes it one of the easiest indicators to learn. Beginners usually pick it up faster than MACD or Bollinger Bands. Just avoid trading the 70/30 levels blindly and combine RSI with the overall trend.

What is the difference between RSI and MACD?

RSI is a bounded momentum oscillator (0-100) that measures exhaustion and shines at spotting overbought or oversold extremes. MACD is an unbounded, trend-following tool built from moving averages that confirms the direction and strength of a trend. Many traders use RSI for entry timing and MACD for trend confirmation.

Related:MACD indicatorMomentumTrend confirmation
Can RSI predict a trend reversal?

RSI does not predict reversals on its own, but divergence between price and RSI is one of the earliest warning signs. When price makes a higher high while RSI makes a lower high (bearish divergence), momentum is fading and a reversal becomes more likely. Always confirm with price action, such as a broken trendline, before acting.

What is the best RSI setting for day trading?

Day traders often shorten RSI to 7-9 periods on 5-to-15-minute charts and widen the thresholds to roughly 80/20 to cut down on false signals. Scalpers go even faster with a 2-5 period RSI. Swing traders and investors are generally better off keeping the standard 14-period setting.

Does RSI work in strong trends?

The raw 70/30 levels break down in strong trends, because RSI can stay overbought for weeks while a stock keeps climbing. Andrew Cardwell's range-shift rules adapt to this: in a bull market RSI tends to hold between 40 and 80, so 40 (not 30) acts as support. In trends, use RSI for pullback timing and divergence rather than for calling tops.

Putting RSI to Work

RSI condenses recent momentum into one number, which makes stretched moves and fading momentum easier to see than on the price chart alone. Use it as context alongside trend and price levels, not as a stand-alone buy or sell signal.

Step 1

Add 'Relative Strength Index' to your chart.

Step 2

Mark the 70 and 30 lines clearly.

Step 3

Look for Divergence at double-tops.

Further reading