RSI Technical Indicator Excel Template

Posted on

In this article, we will be discussing the RSI (Relative Strength Index) technical indicator that is used to analyze stock performance.  RSI is one of the popular technical indicators used by traders.

I will provide

  • A brief introduction to the theory or concept behind RSI indicator
  • A demo of the template and how you can use it to calculate RSI for any stock you are interested in.
RSI Technical Indicator in Excel

Concept / Theory

RSI is a momentum-based oscillator created by J. Welles Wilder Jr.

RSI Calculation

Due to the nature of the calculation, we start with a slightly different formula for the first period.

Let’s say we use a 14 day RSI. On Day 14 of our data, we can calculate the first RSI.

How RSI (Relative Strength Index) indicator is calculated

Calculations for the first RSI – On Day 14

  1. On Day 14, we calculate Avg. Gain of 14 days using a simple average of gain on each of the 14 days. A gain is measured as Closing Price – Closing Price on Previous Day. If there is no gain, it is measured as 0 gain. 
  2. Similarly, on Day 14, we calculate Avg. Loss of 14 days using a simple average of gain on each of the 14 days. A gain is measured as Closing Price – Closing Price on Previous Day. If there is no gain, it is measured as 0 gain.
  3. Relative Strength RS = Avg Gain/Avg Loss
  4. Relative Strength RSI = 100 – 100(1+RS)

Calculations for all subsequent RSIs – from Day 15

On Subsequent days (from Day 15), the calculations for Avg. Gain and Avg. Loss change as below.

  1. Avg. Gain is measured as  (Prev Day Avg Gain * 13) + Current Day Gain
  2. Avg. Loss is measured as  (Prev Day Avg Loss * 13) + Current Day Loss
  3. Relative Strength RS = Avg Gain/Avg Loss
  4. Relative Strength RSI = 100 – 100(1+RS)

Due to the nature of the calculations, depending on your starting point, the RSI values may differ slightly. For example, if you start with a 5 year historical data for a stock, your RSI may be different from your RSI if you start with 1 year historical data.

RSI is represented as a line on the chart and its values range from 0 to 100. Lower the RSI, the weaker the price momentum. Higher the RSI, the stronger the price momentum.

Trading Signals

According to Wilder, any number above 70 should be considered overbought and any number below 30 should be considered oversold.

An RSI between 30 and 70 was to be considered neutral and an RSI around 50 signified “no trend”.

Some traders believe that Wilder’s overbought/oversold ranges are too wide and choose to alter those ranges. For example, someone might consider any number above 80 as overbought and anything below 20 as oversold. This is entirely at the trader’s discretion.

TradingView

The following is an example signal strategy

  1. Buy when the RSI drops below the Minimum threshold (30 by default)
  2. Sell when the RSI exceeds above the Maximum threshold (70 by default)

RSI Excel Template

The template will help you create the RSI  indicator automatically and calculate the trading signals instantly for any stock.

RSI Indicator with trading signals

The blue line indicates the closing price and the Orange line the RSI. The shaded area represents the RSI band from the minimum threshold to the maximum threshold.

Download

Video Demo

Requirements:

To pull live Stock data from the services you would need either Microsoft 365 Subscription Plans for PC and Web or Excel for the web

How to Use:

Type in a stock sticker symbol on the top left.

RSI Technical Indicator Input stock symbol

If Excel does not recognize your stock symbol, it will pop up this data selector box.

Select the Stock

You can select the stock you are interested in.

Period

The template can pull up to 5 years of price history by default. You can choose how much history to display on the chart easily using the slicer buttons.

Period-for-the-Stock-price-history
Period-for-the-Stock-price-history

The options are 5 Days, Month Till Date, 1 Month, 3 Months, 6 Months, Year Till Date, 1 Year, 5 Years.

Interval

The template allows price history at 3 different intervals.

Interval-of-Stock-price-history
Interval-of-Stock-price-history

Daily/Weekly/Monthly are the options.

Input Parameters

RSI Input parameters
  • Source: Closing price is the one that is used for calculations typically. However, you can choose from Open, High, Low, Close or Volume.
  • Length: You can type in a length in periods. The commonly used is 14.
  • RSI Min: This is the minimum RSI threshold to generate signals. The commonly used is 30.
  • RSI Max: This is the maximum RSI threshold to generate signals. The commonly used is 70.

The chart will update automatically based on all the above inputs.

Signals

The template shows two types of signals (Buy, Sell) on the chart.

RSI Indicator with Trading Signals

The following rule generates the signals.

  • Buy when the RSI drops below the RSI Minimum threshold (30 by default)
  • Sell when the RSI exceeds above the RSI Maximum threshold (70 by default)

In addition, if the latest day has a signal, it will be displayed below the current price.

RSI

Timezone

On the top right you can see the maximum of the last trade time of these currencies.

The default time that Microsoft provides is UTC.  The offset is set to -7 hrs, to convert to pacific time zone.

You can modify this if you need the time in a different time zone.

Visit https://savvytime.com/converter/utc to view offset.

How to refresh data?

How to refresh Stocks data
How to refresh Stocks data

Resources

RSI – TradingView

For more Excel Templates for Stock Market, visit indzara.com/stock-market-templates

Feedback

Please share your feedback on this template in the Comments below. If you find this useful, please share with your friends who may benefit from this content.

Leave a Reply

Your email address will not be published. Required fields are marked *