create your own

How to Trade Shares - The Relative Strength Index - RSI - Compute RSI Using Excel

87
rate or flag this page

By ngureco


The Relative Strength Index

The relative strength index (RSI) is one of the most helpful indicators that are being used by chartist in trading shares. It actually tells you when to enter and exit a position. The Relative strength index (RSI) is an oscillator that measures the velocity and magnitude of directional price movement of a stock – it compares relatively the upward and downward close to close price movements. One can say it’s a measure of the rate of rise or fall in stock price. The relative strength index was developed by J. Welles Wilder.

RSI is an oscillator that fluctuates between 0 and 100. From this a trader can define overbought and oversold levels, usually 70 and above for overbought and 30 and below for oversold.

To calculate the relative strength index, we use the two formulas below:

Calculate Relative Strength (RS) and Relative Strength Index (RSI):

1. Relative Strength (RS) = Average Upward Price Move / Average Downward Price Move

2. Relative Strength Index (RSI) = 100 - 100 / ( 1 + RS )

Compute RSI Using Excel

Before computing the relative strength index, you have to decide on the time period you want to use. Wilder used a 14 day period, but I use 8 days period to trade short cycles and 21 days period to trade the intermediate cycle.

To compute the RSI using Excel, you proceed as follow:

1. Insert the closing prices data for your stock in column “A” in Excel Spreadsheet.

2. calculate closing price change by inserting “=A1-A2” into column “B”

3. Isolate the rising prices in column “C” by inserting “=IF(B1>0,B1,0)”

4. Isolate the falling prices in column “D” by inserting “=IF(B1<0,B1,0)”

5. calculate average upward price move by inserting “=AVERAGE(C1:C8)” in column “E”

6. calculate average downward price move by inserting “=AVERAGE(D1:D8)” in column “F”

7. calculate Relative Strength (RS) by inserting =ABS(E1/F1) in column “G”

8. calculate Relative Strength Index (RSI) by inserting “=100-100/(1+G1) in column “H”

Note: If you encounter #DIV/0!, then you would have to use a longer period to avoid dividing a number by "0", otherwise you would have to introduce a negligible constant like 0.00001 to “=AVERAGE(D1:D8)+0.00001”

Hold and drag your formulas downward in as much as you would want to go into the past. Now select column H data and draw or insert a chart using Excel. You will now have an RSI oscillator as shown in the image below which you can use for entering and exiting your trades.

An RSI oscillator for entering and exiting your trades
An RSI oscillator for entering and exiting your trades

Best Books on Stocks

How to Trade In Stocks How to Trade In Stocks
Price: $11.65
List Price: $19.95
Lock, Stock, and Two Smoking Barrels [Blu-ray] Lock, Stock, and Two Smoking Barrels [Blu-ray]
Price: $17.99
List Price: $26.98
Wall Street - Stock News Wall Street - Stock News
Price: $0.99
List Price: $0.99

You Must Define the Trend

Important: If you use exponential moving average instead of standard moving average, then 1/8 of today’s data plus 7/8 of yesterday’s data will give you 8-day exponential moving average. If you use the formula for standard exponential moving average, then the formula will equate to 16 – day exponential moving average.

Before you attempt to trade using the RSI, you should have the following:

1. You must define the trend. Only trade using RSI in the direction of your trend.

2. Always use a Stop Loss Order which you will keep on trailing or updating as the market unfolds.

3. Buy stocks when RSI falls below the 30 level and raises back above it, but only if your trend is upward.

4. Short stocks when RSI rises above the 70 level and falls back below it, but only if your trend is downward

The Author’s page is designed to help beginners and average readers make some money as an extra income to supplement what they may be earning elsewhere - details of which you can find in My Page, if you will.

Print   —   Rate it:  up  down  flag this hub

Ask a Question

Comments

RSS for comments on this Hub

skgrao profile image

skgrao  says:
4 months ago

This is not my cup of Tea.

forlan profile image

forlan  says:
4 months ago

good lesson investment hubs

Bigm  says:
3 months ago

wow, tnx. At first i was doubting your metod, but when i tried it really was usefull.

thanks a lot

stocktrader  says:
3 months ago

Great help for making the RSI in excel, I am currently developing a file where i can make a technicall analyse using excel.

1 Note though: instead of having "A1-A2" you should make it "A2-A1" or else you will have the up and down twisted. This wil screw your RSI a bit up and in stocktrading we can not make errors right?

ngureco profile image

ngureco  says:
3 months ago

Thank you, to you all, for your opinion and suggestions. It's important to note that if you encounter #DIV/0!, then you would have to use a longer period to avoid dividing a number by "0" (otherwise you would have to introduce a negligible constant like 0.00001 to the formula, for example “=AVERAGE(D1:D8)+0.0001”).

sumon6 profile image

sumon6  says:
3 months ago

Every member of the family is allowed to make money in home. Working at home is like a business because, most of home based works are unlimited. Just like production, if you produce more you earn more money. You can’t imagine somebody is making over ten thousand of dollar (10,000) $ only by working home based works...http://2earncashmoney.blogspot.com/

Submit a Comment

Members and Guests

Sign in or sign up and post using a hubpages account.


optional


  • No HTML is allowed in comments, but URLs will be hyperlinked
  • Comments are not for promoting your hubs or other sites

working