The RSI is a momentum oscillator introduced by J. Welles Wilder in his 1978 book New Concepts in Technical Trading Systems. It compares the size of recent gains with recent losses and scales the result from 0 to 100. The standard setting is 14 periods, and readings above 70 are commonly considered overbought and below 30 oversold.
How RSI is calculated (Wilder's method)
Work out each period's change: today's close − yesterday's close.
First average gain / loss = simple average of the gains and losses over the first 14 changes (losses as positive numbers).
After that, smooth them: new average = (previous average × 13 + current gain or loss) ÷ 14.
RS = average gain ÷ average loss; RSI = 100 − 100 ÷ (1 + RS).
Example: the 30 sample prices preloaded above give a first RSI of 70.46 after 15 closes, and the latest RSI is 45.50 (average gain 0.1837, average loss 0.2201) — neutral.
Reading the RSI
Above 70: commonly read as overbought — the recent move up has been strong relative to the losses.
Below 30: commonly read as oversold — losses have dominated the period.
Between 30 and 70: neutral. The menu also lets you test stricter 80/20 levels.
Overbought does not mean "about to fall": in a strong trend RSI can stay above 70 (or below 30) for a long time.
Why your RSI may differ from your trading platform
Wilder smoothing needs history to settle: with only a few dozen prices, values can differ slightly from a chart that uses years of data.
Some platforms use a simple or exponential average instead of Wilder's smoothing.
Check that prices are in order from oldest to newest and use the same closes (adjusted vs. unadjusted).
No number is good or bad on its own. Readings above 70 are commonly treated as overbought and below 30 as oversold; 30–70 is neutral.
Why is 14 the default RSI period?
Wilder used 14 periods in his original 1978 work, and most charting platforms still default to it. Shorter periods make RSI more sensitive.
How many prices do I need to calculate RSI?
At least period + 1 closing prices — 15 for a 14-period RSI. More history makes Wilder's smoothed averages more stable and closer to what charting platforms show.
Does RSI work on daily, weekly or intraday data?
Yes. Enter closes from any timeframe; the period counts bars, so 14 on weekly data means 14 weeks.
Is RSI above 70 a sell signal?
Not by itself. In strong uptrends RSI can stay above 70 for a long time. Many traders wait for confirmation from price action or other indicators.