The RSI (Relative Strength Index, Wilder 1978) compares average gains with average losses over N bars (14 by default): RS = average gain / average loss, then RSI = 100 − 100 / (1 + RS). It ranges from 0 to 100.
Example: average gain 0.5 and average loss 1.5 → RS = 1/3 → RSI = 100 − 100 / 1.333 = 25. Below 30: oversold zone; above 70: overbought zone.
Reading the RSI: it is plotted below price, with two lines at 70 and 30. Simple mean-reversion rule: buy when the RSI drops below 30, exit when it climbs back above 50. A more cautious variant: wait for it to leave the zone (back above 30) before buying, with a stop below the last low.
Limit: oversold does not mean “cheap”. In a strong sell-off, the RSI can stay below 30 for weeks. Pros add a trend filter, a stop, and test thresholds out of sample: no threshold guarantees a bounce.
Examples
RSI-X (fictional market) : The circles mark the high and the low. On the sharp dip, a run of declines with almost no gains would push RSI(14) toward 20: the strategy would buy below 30 and sell when it returns to 50. Near the top, the RSI would exceed 70.
1978: Wilder publishes the RSI : J. Welles Wilder introduced the RSI in his book New Concepts in Technical Trading Systems (1978), with the 70 and 30 thresholds, designed for daily commodity data. Lesson: those thresholds are starting conventions, not laws; on another market or timeframe you must test them again.
Key terms
RSI
Oscillator from 0 to 100 comparing average gains with average losses
RS
Ratio of average gain to average loss over the period
Oversold
Zone below 30 where recent declines clearly dominated
Wilder smoothing
Average in which each new value weighs 1/N; the RSI’s original smoothing