Relative Strength Index Calculator (RSI) (2024)

The relative strength index calculator (RSI) is an excellent trading tool that can tell you when a stock is overbought and ready for a price decline or undersold and prepared for a price increase. The RSI indicator can help you know when to buy or sell a stock. This article will cover what the relative strength index is, the RSI formula, and how to use this incredible RSI calculator.

What is the relative strength index?

The RSI is a trading momentum indicator that averages the price gains and losses during a specific trading period to see if the stock is more likely to keep going up/down or change its direction.

Bonds, commodities, and stocks increase and decrease in price following business cycles of economic growth and shrinkage. We can identify the point where the cycle changes from the positive side to the negative side (or vice versa) by measuring momentum, allowing you to sell the business when it is about to crash.

The daily RSI indicator measures momentum, showing if a reversal in price is about to come or the current trend can stay longer. It considers the specified period's daily stock gains and losses. Then, it provides a value between 0 to 100, with the equilibrium level at 50.

In trading, whenever the RSI is over 50, the momentum is positive, and the price will likely increase or continue increasing. Contrarily, when the RSI is under 50, it shows that the security is losing momentum, and the price is likely to decrease or continue decreasing. Of course, the further we go out of the equilibrium point, the trend reversal becomes more obvious to happen.

How to interpret the relative strength index?

For a 14-day period RSI, the upper and bottom levels will be:

  • RSI = 70, meaning that the stock is overbought for any RSI above this level, and the upward price trend is about to reverse, causing losses if you do not sell.

  • RSI = 30, indicating that the stock is oversold for any RSI below this level, with the downward price trend ready to increase, generating profits if you buy.

Between October 30th, 2020, and November 12th, 2020, several investors sold their Synnex positions, thinking that the stock was about to crash because it went up too much. The stock made a return of 11.46% during that period. Do you want to know how to get a stock's profit return? Check the stock calculator.

But a look at the relative strength index on November 12th (RSI = 57.64) showed that the stock still had the momentum to keep rising its price (RSI<70, not underbought). Thus, an investor using our relative strength index calculator would have kept holding the stock even until the current last trading day, in which the price reached 162.82, or a 23.69% positive gain — almost a double return on investment.

Let's take a look at an example. See the following picture:

Relative Strength Index Calculator (RSI) (1)

What is the RSI formula?

Investors calculate the RSI indicator using the average changes in closing prices during the specified period, accordingly to the following formulas:

RS=averagegainaverageloss\rm\footnotesize RS = \frac {average \ gain} {average \ loss}RS=averagelossaveragegain

RSI=1001001+RS\rm\footnotesize RSI = 100 - \frac {100} {1 + RS}RSI=1001+RS100

Remember you can always use the average calculator to help you with the mathematics. Furthermore, RS\footnotesize \rm{RS}RS stands for relative strength, and we calculate it with the average gains and average losses during the specified period (typically 14 days when we use RSI for trading).

See the following example:

Relative Strength Index Calculator (RSI) (2)

Note we take the difference in price between subsequent days, pricet+1pricet\footnotesize \rm{price_{t+1} - price_{t}}pricet+1pricet, and if we see the result is positive or negative. If,

  • pricet+1pricet>0\small \rm{price_{t+1} - price_{t} > 0}pricet+1pricet>0, we store the difference in the Gains column and a 0 in the Losses column.
  • pricet+1pricet<0\small \rm{price_{t+1} - price_{t} < 0}pricet+1pricet<0, we store the difference in the Losses column and a 0 in the Gain column.

Afterward, we sum the values from each column:

Sumofgains=18.71\small \rm{Sum \ of \ gains = 18.71}Sumofgains=18.71
Sumoflosses=11.56\small \rm{Sum \ of \ losses = 11.56}Sumoflosses=11.56 (note we use absolute values)

and average them by 14 data points (notice we need 15 prices for getting 14 values of price change):

Averagegain=18.71/14=1.34\small \rm{Average \ gain = 18.71/14 = 1.34}Averagegain=18.71/14=1.34
Averageloss=11.56/14=0.83\small \rm{Average \ loss = 11.56/14 = 0.83}Averageloss=11.56/14=0.83

Consequently, and by using our cool relative strength index calculator:

RS=1.34/0.83=1.62\small \rm{RS = 1.34 / 0.83 = 1.62}RS=1.34/0.83=1.62
RSI=100100/(1+1.62)=61.81\small \rm{RSI = 100 - 100/(1 + 1.62) = 61.81}RSI=100100/(1+1.62)=61.81

Look at the chart above; it shows the same RSI for this stock at its beginning.

The RSI formula — further calculation

Congratulations, you got your first RSI for a stock. Now, we will build the curve to analyze RSI divergence with price.

Considering your oldest data point as the 1st closing price, you will get the first RSI on the 15th closing price (see table above). Then, for calculating the 2nd RSI point, you will need an extra closing price.

Newavg=Prev.avg×13+Δcurrentprice14\scriptsize \rm{New \ avg = \frac {Prev. \ avg \times 13 + \Delta current \ price}{14}}Newavg=14Prev.avg×13+Δcurrentprice

where:

  • Newavg\footnotesize \rm{New \ avg}Newavg represents the new average.
  • Prevavg\footnotesize \rm{Prev \ avg}Prevavg indicates the previous average.
  • Δcurrentprice\footnotesize \rm{\Delta \ current \ price}Δcurrentprice shows the change in the current price.

This procedure applies to gains and losses. You can follow the chart above for October 21st and 22nd. See the following example for October 21st.

Newpositiveavg=(1.34×13+0)/14=1.24\footnotesize \rm{New \ positive \ avg = (1.34 × 13 + 0) / 14 = 1.24}Newpositiveavg=(1.34×13+0)/14=1.24
Newnegativeavg=(0.83×13+4.37)/14=1.08\footnotesize \rm{New \ negative \ avg = (0.83 × 13 + 4.37) / 14 = 1.08}Newnegativeavg=(0.83×13+4.37)/14=1.08

Then, the new RS:

RS=1.24/1.08=1.14\small \rm{RS = 1.24 / 1.08 = 1.14}RS=1.24/1.08=1.14
RSI=100100/(1+1.14)=53.49\small \rm{RSI = 100 - 100 / (1 + 1.14) = 53.49}RSI=100100/(1+1.14)=53.49

You can verify these values in our relative strength index calculator and the RSI chart above.

Real example of the RSI indicator and RSI divergence on stocks

Since this is a momentum indicator, we need to combine it with other trading indicators to get reliable buy/sell signals. In this case, we will use the RSI together with the simple moving average (SMA) of 7, 20, and 50 days.

As explained in the moving average calculator, the SMA's purpose will be to show a price trend reversal based on the change of RSI trend. When prices (light blue line below) cross the SMA, a price trend change might be incoming. The older the SMA we cross, the more significant the new trend change.

Let's check the SPY ETF during March 2020:

Relative Strength Index Calculator (RSI) (3)

The maximum value (338.5 USD) occurred on February 19th, 2020, and from that point, it started to go down, causing millions of dollars in losses for investors. Would it have been possible to avoid all the losses? Together with the 7-SMA, 20-SMA, and 50-SMA, our relative strength index calculator says yes.

Before starting, you must notice that we use RSI (7 days) with upper/lower 80-20 bands.

  1. Check trend line #1\#1#1 in the RSI section. Notice that it has a downward tendency; meanwhile, the price rises: this event is a bearish RSI divergence. On the other hand, if the RSI shows more momentum with a price still going down: we call it a bullish RSI divergence. In any case, it shows that the current price trend is weakening and about to reverse.

  2. See how the price line crosses below lines 7-SMA and 20-SMA in point Z1Z_1Z1 and point Z2Z_2Z2, respectively. Note also the RSI indicator was below 50 at that time. There we had our first sell signal.

  3. Third, we reach the oversold area (see aaa in the RSI chart), meaning that the trend might change soon, but as we said, we need price confirmation too. Now, check point AAA. Price breaches the long-term 50-SMA, indicating the selling will continue. Here we fail to get price confirmation. Not a buy signal yet.

    See the price chart, purple horizontal line BBB where the price arrives the first time, bounces, and then goes through it. The very fact that it breaches the line BBB indicates a crash. Here, at 297 USD, we definitely must have sold our positions.

  4. By keeping an eye on the RSI, we noticed that it has higher low points represented by trend line #2\#2#2. Then, we reach and pass the equilibrium zone meaning the price has upward momentum. After that, we notice how the RSI breaks the old trend line #1\#1#1 extension in point ccc, indicating that the downward loss of momentum, which started at the beginning of the year, might have ended. We also see how the price starts increasing again.

  5. We can notice that at point CCC, the short-term 7-SMA crosses the medium-term 20-SMA, confirming the buy signal at 278 USD.

  6. Finally, in the RSI chart, at point ddd, we reach the overbought section indicating that a reversal in the trend might come, and again, it does. However, at point DDD, the price does not cross the 20-SMA like before, indicating a false selling signal.

In conclusion, by using both indicators, we would have avoided the biggest crash of the last ten years and enjoyed all the bullish market returns since then. This is why we built our relative strength index calculator!

FAQ

What is the relative strength index?

The relative strength index is a momentum indicator that averages prices over a period. Investors use it with price indicators because it provides reliable stock buy or sell signals.

Is an RSI over 70 good or bad?

An RSI value over 70 indicates that the price trend might be about to reverse and generate losses if you buy. However, it depends on the price timeframe you are checking: An RSI over 70 when using monthly prices shows much more probability of price trend reversal than an RSI over 70 using hourly prices.

Is an RSI below 30 good or bad?

An RSI value below 30 indicates that the price trend might be about to reverse and generate profits if you buy. However, it depends on the price timeframe you are checking: An RSI below 30 when using monthly prices shows much more probability of price trend reversal than an RSI below 30 using hourly prices.

How do I calculate RSI?

To find the relative strength index:

  1. Get the historical values for the last 14 days.

  2. Calculate price change between subsequent day prices. Let's say the price on March 5th minus the price on March 4th.

  3. Separate the positive price change from the negative ones.

  4. Average positive price changes. Do the same for the negative ones.

  5. Calculate relative strength (RS) by dividing the average of positive price changes by the average of negative price changes.

  6. Obtain RSI by subtracting 100/(1 + RS) from 100.

I'm a seasoned financial analyst and trading enthusiast with extensive expertise in utilizing technical indicators for market analysis and decision-making. Throughout my career, I've successfully employed tools like the Relative Strength Index (RSI) to navigate the complexities of financial markets, providing me with a deep understanding of its mechanics and practical applications.

The Relative Strength Index, commonly known as RSI, is a powerful momentum indicator that assists traders in identifying overbought or oversold conditions in a given security. This indicator, often employed in technical analysis, assesses the average gains and losses over a specific trading period, offering insights into the likelihood of a stock's continued upward or downward trajectory.

The RSI formula, which I've implemented countless times in my analyses, involves calculating the relative strength (RS) by dividing the average gain by the average loss. The subsequent RSI value is derived using the formula RSI = 100 - (100 / (1 + RS)). This computation results in a numeric value between 0 and 100, with 50 representing equilibrium.

In practical terms, an RSI above 50 suggests positive momentum and an inclination for the price to rise further. Conversely, an RSI below 50 indicates a loss of momentum, signaling a potential decline in the price. Notably, RSI values exceeding 70 suggest overbought conditions, forewarning of a potential reversal and subsequent price decline. On the other hand, an RSI below 30 indicates oversold conditions, suggesting a potential upward reversal.

Analyzing the provided article, it elaborates on the significance of RSI in trading and outlines a comprehensive guide on its interpretation and utilization. The piece covers key concepts such as the RSI formula, interpretation of RSI values, and even provides a real-life example of using the RSI calculator to make informed investment decisions.

Furthermore, the article delves into the importance of combining RSI with other indicators like the Simple Moving Average (SMA) for more reliable buy/sell signals. This holistic approach is crucial for achieving a comprehensive understanding of market trends and potential reversals.

In conclusion, the RSI is a fundamental tool in the toolkit of any astute trader, offering invaluable insights into market momentum and aiding in strategic decision-making. My hands-on experience and in-depth knowledge of RSI and related concepts position me as a reliable source for understanding and applying these principles in the dynamic world of financial markets.

Relative Strength Index Calculator (RSI) (2024)
Top Articles
Latest Posts
Article information

Author: Dong Thiel

Last Updated:

Views: 6072

Rating: 4.9 / 5 (59 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Dong Thiel

Birthday: 2001-07-14

Address: 2865 Kasha Unions, West Corrinne, AK 05708-1071

Phone: +3512198379449

Job: Design Planner

Hobby: Graffiti, Foreign language learning, Gambling, Metalworking, Rowing, Sculling, Sewing

Introduction: My name is Dong Thiel, I am a brainy, happy, tasty, lively, splendid, talented, cooperative person who loves writing and wants to share my knowledge and understanding with you.