Indicator Guide / Momentum

RSIRelative Strength Index

How hard recent closes have pushed up or down, on a scale from 0 to 100.

RSI 14 on a practice chartMade-up prices
Top: price. Bottom: RSI. Gold: RSI above 70. Blue: RSI below 30.
01 · WHAT IT IS

RSI compares the size of recent up closes with the size of recent down closes. The default setting is 14 bars.

RSI gives one number from 0 to 100. Near 100, gains were far bigger than losses. Near 0, losses were far bigger than gains. At 50, the average gain and the average loss were the same size.

02 · UNDER THE HOOD
3070

–RSIavg gain – · avg loss –

Each block is one bar's move. Green blocks went up and red blocks went down. Taller blocks moved further. RSI is the green share of average gain plus average loss, shown below. It uses Wilder's smoothed averages, so older moves still count a little.

How it is worked out

Add up the gains on up closes and the losses on down closes over 14 bars. Average each. Then each new bar updates the averages. It mixes 13 parts old average with 1 part new bar. RSI = 100 − 100 ÷ (1 + average gain ÷ average loss).

03 · WHO MADE IT, AND WHY

“Back then, people were using oscillators to show the strength and weakness of a particular stock or commodity and each oscillator had a different scale. The RSI put all commodities and stocks on the same scale from 1 to 100.”

Wilder, interviewed by Stuart McPhee for The Trader's Journal. Reprinted in Technically Speaking (Market Technicians Association), August 2006.

J. Welles Wilder Jr. (1935–2021), 1978. His book New Concepts in Technical Trading Systems, and the June 1978 issue of Commodities magazine. Wilder was a mechanical engineer who became a real estate developer, then a commodity trader. The same book also introduced ATR, Parabolic SAR and the Directional Movement system (ADX).

The scale runs from 0 to 100. His point holds: every market sits on that same scale. The same reading can mean different things in a calm market and a wild one.

04 · TWO TERRAINS
Overbought and oversold readings work best when price moves sideways. (StockCharts)Code picked this after the fact.
Trail · TrendStrong rise
In a strong uptrend, RSI can stay above 70 while price keeps rising.Code picked this after the fact.

Good for

  • Seeing how hard a move pushes. RSI puts every market and timeframe on one 0 to 100 scale.
  • Spotting stretched moves inside a sideways range. StockCharts notes that overbought and oversold readings work best when price moves sideways.
  • Noticing when a push gets weaker. Price makes a new high, but RSI makes a lower high. Wilder called this a divergence.

Not good for

  • A buy or sell signal on its own. A reading above 70 says price rose fast. It does not say price will fall.
  • Strong trends. In a strong uptrend, RSI can stay above 70 while price keeps rising. In a strong downtrend, RSI can stay below 30.
  • Exact timing. Bottoming can be a process. Price can keep falling after the first reading below 30.
  • Comparing platforms. RSI values depend on how much history a platform starts from. Some platforms also use a different average. Check the settings before you compare numbers.
Where it fails

RSI is harder to read in strong trends than in sideways markets. Constance Brown covers this in her book Technical Analysis for the Trading Professional. She identifies an uptrend range and a downtrend range. In uptrends, RSI tends to stay between about 40 and 90. In downtrends, it tends to stay between about 10 and 60. The ranges shift with the RSI setting, the trend's strength and the market's volatility. Selling each time RSI tops 70 in an uptrend can mean selling while the move is running.

05 · TRY IT

On the chart below, find every time RSI crossed above 70. For each one, count the next 10 bars. Did price fall, go sideways or keep rising? Write your three counts down. On made-up prices, this shows you how to read the readings. It does not test the overbought rule.

Every cross above 70

  • 0Fell
  • 0Went sideways
  • 0Kept rising
Fell or kept rising: price moved more than 2% down or up after 10 bars. Went sideways: within 2%. Gold shading marks the 10 bars counted.Made-up prices. This shows how to read RSI. It does not show whether RSI works.
06 · SETTINGS AND MISTAKES
  • Length14 barsThe default Wilder suggested.
  • OverboughtAbove 70Wilder's level. Price rose fast.
  • OversoldBelow 30Wilder's level. Price fell fast.
  • Middle50The average gain and the average loss were the same size.

Common mistakes

  • Selling only because RSI went above 70 while the trend is up.
  • Buying the first dip below 30 without a plan for where you are wrong.
  • Changing the length until past trades look good. That fits the rule to the past only.
  • Treating a divergence as an order. StockCharts warns that a strong uptrend can show many bearish divergences before a top forms.
07 · OUR TESTS

Not measured on our data yet. Episode 1 of the Library will test Larry Connors' RSI(2) rules, with fees and held-out data.

Sources (5)
  1. StockCharts ChartSchool: Relative Strength Index (RSI)Formula, 14-bar default, 70/30 levels, trends and ranges, Constance Brown's trend ranges, divergence warning, history length, worked example used to test our code
  2. J. Welles Wilder, interviewed by Stuart McPhee (The Trader's Journal), reprinted in Technically Speaking, August 2006Why he built RSI, in his words; the June 1978 Commodities article; ATR, Parabolic SAR and Directional Movement in the same book; his career
  3. Wikipedia: J. Welles Wilder Jr.Life dates, career, the 1978 book
  4. Wikipedia: Relative strength indexJune 1978 Commodities magazine, divergence, other averages
  5. StockCharts ChartSchool: RSI(2)Larry Connors' RSI(2) rules

Indicators are public ideas. The words here are ours, with credit to each source. Information, not advice.