The relative strength index (RSI) was described by J. Welles Wilder in 1978. It compares the size of recent up moves with recent down moves and puts the answer on a scale from 0 to 100.
The formula, written in full
- Look at the last 14 closes (14 is the usual setting).
- Average gain: the average of the up changes over those periods. Average loss: the average of the down changes, taken as positive numbers. Wilder smooths these two averages as each new bar arrives instead of recomputing them from scratch.
- RS = average gain divided by average loss.
- RSI = 100 minus 100 divided by (1 plus RS).
- If there were no losses, RSI is 100; if there were no gains, it is 0.
What 70 and 30 mean
Readings above 70 are called overbought and below 30 oversold. These are conventions. A market in a strong trend can stay above 70 or below 30 for a long stretch, so "overbought" is not the same as "about to fall".
How people use it
- As an extreme reading (the 70 and 30 lines).
- As a divergence: price makes a new high while RSI makes a lower high. This depends on how swing points are chosen, so it needs a written rule before it can be tested (see RSI divergence, planned).
- As a trend filter, for example staying above the 50 line in an uptrend.
What it cannot tell you
- It is built from past closes and says nothing about the next one.
- The same reading means different things in a trend and in a range.
How we will test it
We will fix one rule per use, run it on many markets and years with realistic costs, keep part of the data unseen until the rule is fixed, and report sample size, spread and the markets where it failed. Last tested: pending re-run. No result is stated here until it is run and dated.
Questions people type
What is a good RSI to buy at? There is no number that works everywhere. 30 is the textbook "oversold" line; whether buying there pays after costs is what the test measures.
Does RSI work? That depends on the rule, the market and the costs. We do not state an answer before the test is run.
What RSI period is best? 14 is the default. A shorter period reacts faster and swings more; any change should be tested.
Related
MACD indicator, average true range calculator, how we test, backtesting, method and limits, position size calculator.
Education only. Nothing here is financial advice or a signal.