AAIYUGBeta
LeaderboardRaceWall of FameLitepaperBlogNews
AAIYUG

A skill-based trading competition platform.

✉ hello@aiyug.com

Dubai, United Arab Emirates

PRE-LAUNCH · REGISTRATION IN PROGRESS
Platform
LeaderboardLive raceWall of FameHow it worksLitepaperBlogMarkets newsJoin free
Legal
Terms & ConditionsPrivacy PolicyCompetition RulesRisk Disclaimer

Simulated trading only. No real money is traded. AIYUG is not financial advice and is not a regulated financial service. Read the full risk disclaimer →

© 2026 AIYUG. All rights reserved.

LeadersRaceFameBlogNews
Blog
Strategy· 14 August 2026 · 6 min read

RSI Indicator Explained with Examples

A practical guide to the Relative Strength Index: calculation, interpretation, common setups, overbought/oversold rules, and a worked example for retail traders.

A
AIYUG Desk
Content & education team

What the RSI is and why traders use it

The Relative Strength Index (RSI) is a momentum oscillator that measures the speed and change of price movements on a scale from 0 to 100. Invented by J. Welles Wilder, RSI helps traders identify potential overbought and oversold conditions, divergence, and momentum shifts. It is widely used in relative strength index trading to time entries, manage risk, and confirm trends.

Key points:

  • RSI is bounded: 0–100. Readings above 70 are often labeled overbought; below 30, oversold. These are not absolute signals—context matters.
  • Typical default period is 14 bars (days on daily charts), but shorter or longer periods change sensitivity.
  • RSI can be used in trends (look for pullback entries) and ranges (buy oversold, sell overbought).

Formula and calculation (step-by-step)

The most common RSI uses Wilder's smoothing method. Here are the steps and formulas for a 14-period RSI:

  1. Compute the daily changes (Close_today - Close_yesterday) for each period.
  2. Separate gains (positive changes) and losses (absolute value of negative changes). For unchanged days, gain = 0 and loss = 0.
  3. Calculate the average gain and average loss for the first 14 periods as a simple average:

Average Gain_initial = (Sum of gains over 14 periods) / 14

Average Loss_initial = (Sum of losses over 14 periods) / 14

  1. For subsequent periods, use Wilder's exponential smoothing:

Average Gain_today = [(Previous Average Gain) * 13 + Current Gain] / 14

Average Loss_today = [(Previous Average Loss) * 13 + Current Loss] / 14

  1. Compute the Relative Strength (RS):

RS = Average Gain / Average Loss

  1. Compute RSI:

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

If Average Loss is zero, RSI is set to 100. If Average Gain is zero, RSI is set to 0.

Worked example (14-period RSI, hypothetical prices)

We'll calculate a simplified example for clarity. Assume you have 15 consecutive daily closing prices (hypothetical):

Day 0: 100 Day 1: 102 Day 2: 101 Day 3: 103 Day 4: 104 Day 5: 103 Day 6: 105 Day 7: 106 Day 8: 107 Day 9: 106 Day 10: 108 Day 11: 109 Day 12: 110 Day 13: 112 Day 14: 111 Day 15: 113

Step 1: Compute daily changes for Days 1–15 (Close_today - Close_yesterday):

Day1: +2; Day2: -1; Day3: +2; Day4: +1; Day5: -1; Day6: +2; Day7: +1; Day8: +1; Day9: -1; Day10: +2; Day11: +1; Day12: +1; Day13: +2; Day14: -1; Day15: +2

Step 2: Separate gains and losses for the first 14 changes (Days1–14):

Gains: 2, 0, 2, 1, 0, 2, 1, 1, 0, 2, 1, 1, 2, 0 -> Sum gains = 15 Losses: 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1 -> Sum losses = 4

Step 3: Initial average gain and loss (first 14 periods):

Average Gain_initial = 15 / 14 ≈ 1.0714 Average Loss_initial = 4 / 14 ≈ 0.2857

Step 4: For Day15, use Wilder smoothing with the Day15 gain = +2 and loss = 0:

Average Gain_day15 = (1.0714 13 + 2) / 14 ≈ (13.9282 + 2) / 14 ≈ 15.9282 / 14 ≈ 1.1377 Average Loss_day15 = (0.2857 13 + 0) / 14 ≈ (3.7141 + 0) / 14 ≈ 0.2653

Step 5: RS and RSI for Day15:

RS = 1.1377 / 0.2653 ≈ 4.291 RSI = 100 - (100 / (1 + 4.291)) ≈ 100 - (100 / 5.291) ≈ 100 - 18.90 ≈ 81.10

Interpretation: On this hypothetical Day15, RSI ≈ 81, which would be considered overbought by the conventional 70 threshold. That signals strong recent upside momentum, but it is not a sell command—use context, trend, and risk management.

Practical setups and rules of thumb

  • Overbought/Oversold RSI: Traditional levels are 70 (overbought) and 30 (oversold). For volatile instruments, some traders use 80/20 to reduce false signals. For relative strength index trading within trends, consider 40/60 or using RSI pullbacks to 30–50 as entries in uptrends.
  • RSI divergence: Bullish divergence occurs when price makes a lower low but RSI makes a higher low; bearish divergence is price higher high with RSI lower high. Divergence can signal weakening momentum but requires confirmation (price action, volume, or a trigger level).
  • Combining with trend: Use a higher timeframe trend filter (moving average slope, structure) and use RSI for timing. For example, in an uptrend, look for RSI to drop toward 40–50 then bounce; in a downtrend, watch for RSI rallies into 50–60 to short.
  • Entries and exits: A simple range strategy: buy when RSI crosses above 30 and price structure supports a reversal; sell when RSI crosses below 70 in a range. Use stop-loss beyond recent swing lows/highs and size positions per risk rules.

Common pitfalls and how to avoid them

  • Treat RSI as one input, not a standalone oracle. High RSI can persist in strong trends; low RSI can persist in downtrends.
  • Beware of whipsaws in choppy markets—shortening the period increases sensitivity and false signals.
  • Avoid relying solely on absolute overbought/oversold levels without confirming price behavior or volume.

Practice without risk

If you want to practice these calculations and strategies without real money, try a virtual race or paper-trading environment that uses real market data. AIYUG's free paper-trading race (https://aiyug.trading/race) is one place to test setups and mechanical rules risk-free.

No guarantees: indicators help structure decisions but do not predict the future. Always use stop-losses, manage position size, and test any rules on historical data or in a paper account before applying them to live capital.

Summary

RSI is a compact momentum tool providing overbought oversold RSI cues, divergence signals, and pullback timing. Learn the math (Wilder smoothing), practice the calculation with small datasets, and combine RSI with trend context and risk management. A disciplined, mechanical approach reduces emotional mistakes and improves repeatability.

FAQ

What default RSI period should I use?

The default is 14 periods (as Wilder recommended). Shorter periods (e.g., 7–9) make RSI more sensitive and produce more signals; longer periods (e.g., 21) smooth it and reduce signals. Choose based on your timeframe and backtesting.

Does RSI alone tell me when to buy or sell?

No. RSI indicates momentum and extremes but should be combined with price structure, trend analysis, and risk management. Overbought/oversold readings can persist in strong trends, so confirm signals before acting.

How do I use RSI divergence?

Divergence—when RSI and price move in opposite directions—suggests weakening momentum. Use divergence as an early warning to look for confirmation (e.g., a break of support/resistance or a candlestick reversal) rather than an immediate trade trigger.

StrategyRSI Divergence

Put it into practice — free

Join this week’s AIYUG race: virtual capital, real market data, real recognition from investors. No deposit, no KYC.

Keep reading
Strategy · 25 Aug 2026 · 6 min

How to Backtest a Trading Strategy Step by Step

A practical, step-by-step guide to backtesting: data, rules, metrics, common mistakes, and a worked example you can run in a spreadsheet.

Strategy · 24 Aug 2026 · 6 min

Stop-Loss Strategies Explained for Practical Traders

Clear, practical stop-loss strategies explained: hard vs mental stops, trailing stop loss mechanics, formulas, and a worked example to manage risk.

Strategy · 19 Aug 2026 · 7 min

How to Calculate Risk-Reward Ratio for Trading

Learn the formula and step-by-step method to calculate risk-reward ratio, set stop loss and take profit levels, and see a worked example for position sizing.