As of 12/02/2024
  Indus: 44,782 -128.65 -0.3%  
  Trans: 17,545 -73.73 -0.4%  
  Utils: 1,057 -21.90 -2.0%  
  Nasdaq: 19,404 +185.78 +1.0%  
  S&P 500: 6,047 +14.77 +0.2%  
YTD
 +18.8%  
 +10.4%  
 +19.9%  
 +29.3%  
 +26.8%  
  Targets    Overview: 12/02/2024  
  Down arrow44,000 or 46,000 by 12/15/2024
  Down arrow17,025 or 18,000 by 12/15/2024
  Down arrow1,025 or 1,100 by 12/15/2024
  Up arrow20,000 or 18,500 by 12/15/2024
  Up arrow6,200 or 5,900 by 12/15/2024
As of 12/02/2024
  Indus: 44,782 -128.65 -0.3%  
  Trans: 17,545 -73.73 -0.4%  
  Utils: 1,057 -21.90 -2.0%  
  Nasdaq: 19,404 +185.78 +1.0%  
  S&P 500: 6,047 +14.77 +0.2%  
YTD
 +18.8%  
 +10.4%  
 +19.9%  
 +29.3%  
 +26.8%  
  Targets    Overview: 12/02/2024  
  Down arrow44,000 or 46,000 by 12/15/2024
  Down arrow17,025 or 18,000 by 12/15/2024
  Down arrow1,025 or 1,100 by 12/15/2024
  Up arrow20,000 or 18,500 by 12/15/2024
  Up arrow6,200 or 5,900 by 12/15/2024

Bulkowski's Review of Wilder's RSI

This page reviews the J. Welles Wilder relative strength index (RSI) and discusses testing of the indicator using a portfolio of stocks. You should conduct your own research to verify this trading idea before relying on the results. Historical testing may not reflect real-time trading and past performance does not guarantee future results. See Privacy/Disclaimer for more information.

Summary
Background
Methodology
Results
Variations
The Best Performer
Trading Example
See Also

Wilder's RSI: Summary

The RSI indicator shows that it beats the performance of the S&P 500 index 72% of the time (4,120 winners and 1,574 losing trades) over the same test period. In the test, I included both bull and bear markets, where the bear market ranges from March 24, 2000 to October 10, 2002 and the bull market is everything else. The test included data started from January 1990 and ending on May 18, 2008 and used 552 stocks held in a portfolio, but few stocks spanned the entire period.

A year by year breakdown of the results show the RSI beats the S&P in 13 out of 19 years. The indicator performed especially well during the bear market but draw downs were severe. Using the RSI to trade is not for traders or investors that cannot stomach massive draw downs as the stock plummets and then rises back to the RSI sell signal. The average hold time is about 5 months, so anything can happen during that time. To duplicate the results of this test in actual trading, you must be willing to hold onto the stock, trading only when the RSI signals you to do so, and not because the value has dropped by 98.9% (as was the case in Sonus Networks, resulting in a loss of 94.7%). Using a stop to stem the losses dramatically hurts performance. In other words, if you want to trade using the RSI, you should not use stops if you want the best performance, but you must be willing to buy and hold.

Variations to improve performance showed the following.

Top of page

Wilder's RSI: Background

The indicator discussed on this page is the relative strength index, created by J. Welles Wilder, and not industry, stock, or other types of relative strength. Background for the indicator comes from an article in Technical Analysis of Stocks & Commodities magazine, September 1994 issue, page 77, written by Bruce Faber. Wilder discusses the RSI in his book, New Concepts in Technical Trading Systems, but I have not read that text. My implementation of the RSI is based on the article only.

RSI is a momentum indicator that compares the movement of price over time for a stock, index, or other security. It does not compare one stock with another. Faber writes that "the RSI is most widely used among traders of commodities and futures." The article does not cite any survey to prove this assertion, but it sounds a note of caution. I am testing the indicator in stocks, not commodities or futures.

The indicator compares the average price change of up closes to down closes and presents the results on a scale from 1 to 100. Faber writes that "Depending on the look back period selected for a market, the RSI can be a leading indicator forewarning of changes in the trend of the market. If, however, the look back period is too short and the market is in a persistent trend, then the RSI may indicate the end of a trend prematurely. Thus, you should consider looking for more technical evidence of a change in the trend and not rely solely upon the RSI."

The default look back period is 14 days, but I found in a test years ago that 16 worked best for both buy and sell signals. Faber says that 9 and 25 days are also popular values for the indicator. I tested variations to tune the results.

According to Wilder, signals above 70 indicate that the security is overbought and price may be nearing a top or a significant correction. Readings below 30 mean the security is oversold and closer to a bottom or a signification bullish reaction. Both apply to charts on the daily or weekly scale. Faber says that "some traders look for the RSI to top out at 60 during bear market rallies and to hold at 40 during bull market reactions." Then he mentions another use suggested by Thomas A. Meyers in his book, Technical Analysis Course. It says to buy when the RSI crosses up over 50 and sell when it crosses down through 50, and for indices, a 21-week average is best. It is unclear if the 21-week average replaces the 14-day look back or if it is a new smoothing technique that he is suggesting. I tested the 50/50 147/147 (147 = 21 week) variation and found that it ranks near the bottom (worst) of the list. The reasons for this can be many (such as different data or RSI indicator implementation and weekly versus daily scales). More recent testing has revealed that when sorting for more than just the percentage net profit, the results improve dramatically. It may be that Meyers included the draw down and other factors when he settled on his results.

Faber makes an interesting comment when he writes that "Chart patterns are often observed on the plot of the RSI. Many times, support and resistance breakouts are shown by the RSI before it becomes obvious in the price chart" (emphasis added). He shows a chart of Exploration Co. Louisiana (it no longer trades under XCL) from March 1993 to March 1994 in which price reaches bottom, moves up and then trends horizontally in mid January 1994. The RSI also moves horizontally, following overhead resistance, and breaks out upward a few days before price begins its move up.

Divergence between the indicator and price shows when price trends one way and the indicator moves another. Faber says that "When the RSI pattern diverges with the price chart pattern, chances are that the market will soon follow the RSI." He also talks about failure swings and I discuss that pattern in the link.

According to the article, the formula for RSI comes in two parts: RS = (Average of X day's closes up)/(Average of X day's closes down). Then RSI = 100 - (100/(1+RS)). X is the number of look back periods (14 is the default). Closes up is the price change of up closes (if today closed higher than yesterday, then use the difference between today's close and yesterday's, otherwise use 0). Closes down is the actual price change on down closes (same idea as up closes but only tally when price closes lower than the previous day). The article's sidebar shows a spreadsheet example of the calculation and also discloses that Wilder used a smoothing technique on both the up and down closes: ((13*(prior up average)) + current up)/14, as an example when the look back is 14 days. The same would apply to down closes. For different periods, replace 13 with the new look back minus 1 (example: for a 26 bar look back, use 25) and replace the 14 with the new look back value (26 in this example).

In words, calculate the change in up closes or 0 if the day closed lower. Calculate the change for down closes, or 0 if the day closed higher. Do this for 14 days and average the up closes and down closes, separately. Then apply the smoothing formula to each, separately. The ratio of the two is RS and the rest of the formula is easy, just plug in RS to get RSI.

Top of page

Wilder's RSI: Methodology

I only programmed the indicator as discussed in a sidebar to the Technical Analysis of Stocks & Commodities magazine article on page 82 and as discussed on this page. For the test, I used 552 stocks from January 1990 to May 2008 but not all stocks covered the entire period. Here are the rules I followed.

Top of page

Wilder's RSI: Results

The following table shows the results of the test (parameters: 30/70, 14/14, later referred to as the Benchmark). For example, starting with a portfolio size of $2,000,000, in 1990 there were no trades left open and 134 completed trades. This means that 134 buy signals occurred in 1990 and 134 sell signals occurred sometime in the future (whether or not in 1990). These are not mark to market results, nor annualized results. A trade begun in June 1990 and ending in February 1991 would be included in this line. The reason for this is because RSI trades can be long term ones, so it is common for the trade to span one year. Using mark to market would give inaccurate results.

The value of the portfolio after all trades begun in 1990 and completed sometime in the future, was $2,029,730.66, a change of 1.5%. If you were to buy and sell the S&P 500 index on the same dates as the RSI trades, the portfolio would be worth $2,019,276.77, a change of 1.0%.

YearOpenTradesValueChangeSP 500Change
19900134$2,029,730.661.5%$2,019,276.771.0%
19910113$2,080,548.532.5%$2,054,286.311.7%
19920148$2,116,609.601.7%$2,076,151.381.1%
19930236$2,174,615.192.7%$2,092,535.080.8%
19940276$2,243,610.083.2%$2,144,536.552.5%
19950198$2,310,735.373.0%$2,221,515.133.6%
19960301$2,433,247.125.3%$2,342,239.165.4%
19970380$2,588,345.006.4%$2,533,361.978.2%
19980403$2,650,333.712.4%$2,687,656.976.1%
19990426$2,734,692.103.2%$2,790,716.583.8%
20000341$2,859,776.894.6%$2,728,123.83-2.2%
20010466$3,061,407.127.1%$2,726,574.12-0.1%
20020413$3,021,154.53-1.3%$2,681,869.44-1.6%
20030256$3,160,594.424.6%$2,761,442.393.0%
20040407$3,294,010.764.2%$2,812,498.221.8%
20051479$3,451,832.344.8%$2,881,710.532.5%
20065391$3,558,880.993.1%$2,973,202.713.2%
2007143285$3,578,618.050.6%$2,963,404.82-0.3%
20089841$3,610,494.090.9%$2,962,991.020.0%
YearOpenTradesValueChangeSP 500Change

Top of page

During the bear market of 2000 to 2002, the RSI did quite well in all three years, whereas the general market (S&P 500) fell. Remember that a trade begun in 2000 could have completed in 2006 when the market was higher, inflating the bear market results. The percentage change from year to year is small but so are the amounts traded: $5,000 per trade for a $2 million portfolio. When compared to the S&P 500, the RSI portfolio outperformed the S&P in 13 out of 19 contests with the years 1995 through 1999 being difficult for the RSI portfolio (meaning it failed to beat the S&P). Those holding periods measure from the date the stock was purchased and to the date each was sold.

Here is more information about the trades.

Top of page

Wilder's RSI: Variations

Before I discuss variations, let me thank Tom Helget for using his software to assist in my testing. His more thorough results are available here as an Excel spreadsheet in compressed form. The sheet (Helget.xls) is sorted by the average profit per trade. The best performing have huge hold times (years), so keep that in mind. The test data ranges from January 1, 1990 to May 18, 2008 and used 552 stocks, the same ones in my portfolio. At the bottom of the spreadsheet are the column header definitions, and on the far right are the settings tested. I also include three new RSI tests provided by Helget (Helget 1 to 3, with Helget 3 being the last test run). They drill down the data (from Helget 1.xls to 2 to 3) after sorting the sheet by the average hold time, keeping losses below 40% and so on.

To improve performance, I tested a number of variations both in sample and out of sample. About half the tests use the first 100 stocks in my database, but some use more to boost the number of completed trades. I varied the threshold (30/70) and look back periods (14/14). I also included volatility stops of three varieties.

The following results are available in an Excel spreadsheet. Most of the columns are self-explanatory. The Years Beat is a count of the number of times the net profit percentage beat the S&P 500 using the same hold times. This is out of a maximum of 19 years (1990 to 2008), ties were not included. The higher the number, the better.

Top of page

TestBuy
Threshold
Sell
Threshold
Buy
Look
back
Sell
Look
back
#
Stocks
Used
Average per
Completed
Trade
Oldest
Open
Trade
Years
Beat
Win
Loss
Ratio
Net
Profit
S&P
Change
Z150851418552$7,101.621990155.877.1%35.2%
S25851414200$4,676.671990136.039.5%18.1%
U20851414200$3,880.461990134.522.3%9.6%
Y20801618200$3,772.581990144.422.3%9.7%
X20801616200$2,605.151997124.819.7%9.7%
V (best)20801614200$2,105.691998124.119.4%7.9%
O20801414100$1,954.831997113.614.4%7.1%
O+20801414200$1,920.501997164.128.4%12.4%
P25801414100$1,787.011997163.624.2%13.2%
Z out of sample20801614352$1,761.951993153.729.7%11.4%
G30801414100$1,753.831995143.432.4%18.9%
P25801414200$1,714.661997153.846.1%24.7%
W20801814200$1,708.641998124.011.1%5.3%
Q15801414100$1,604.72200182.43.9%1.8%
Q+15801414200$1,596.731998123.07.7%3.2%
L30751418100$1,213.201995153.529.7%16.1%
K30751416100$906.312001143.328.0%15.8%
T20751414100$769.422005113.47.8%3.8%
R25751414100$717.012005153.417.4%8.6%
F30751414100$624.972005153.023.8%13.1%
TestBuy
Threshold
Sell
Threshold
Buy
Look
back
Sell
Look
back
#
Stocks
Used
Average per
Completed
Trade
Oldest
Open
Trade
Years
Beat
Win
Loss
Ratio
Net
Profit
S&P
Change
I30751614100$607.192005143.119.6%11.2%
H30751214100$598.472005153.026.4%15.6%
J30751412100$452.172005162.920.8%11.2%
G w/initial stop30801414100$368.961995130.323.0%12.1%
C20701414100$355.41200782.54.2%2.3%
A25701414100$336.922007122.810.2%5.9%
Benchmark30701414100$293.662006152.615.5%8.9%
Z230701414552$282.842005132.680.5%48.1%
D40701414100$251.952006132.724.1%13.9%
B35701414100$250.012006132.618.9%12.1%
E30651414100$162.142007132.310.6%6.3%
N5050147147100$106.43200690.316.4%7.7%
C Initial & Trailing stop 15% 3x30701414100$77.362007130.97.6%4.7%
A Initial stop30701414100$63.022008110.66.5%4.3%
B Initial & Trailing stop 20% 2x30701414100$60.262008120.66.5%3.9%
A Initial & Trailing stop 15% 2x30701414100$48.192008130.75.3%3.6%
M50501414100$27.112008160.514.4%-1.7%
A Trailing stop (Worst)30701414100$25.192008100.73.0%1.8%
TestBuy
Threshold
Sell
Threshold
Buy
Look
back
Sell
Look
back
#
Stocks
Used
Average per
Completed
Trade
Oldest
Open
Trade
Years
Beat
Win
Loss
Ratio
Net
Profit
S&P
Change

Top of page

I sorted the above table by the average profit per completed trade (trades not still open). I do not like the open trades from before 1995, so I exclude the first few tests. They are too much like buy and hold forever. That leaves test V with the highest profit per trade. I expanded the test and used 352 stocks not involved in the variation testing. It appears as "Z out of sample." The numbers hold up well. Later I will give you the details of the Z test.

This is a continuation of the prior table. The rows are in the same order. The Max Profit column is a report on the stock with the highest rise after purchase and before sale of the stock. The Max Loss column shows the maximum drop after purchase.

TestCompleted
Trades
Average
Hold
Time
Average
Profit
Per Win
Average
Drop
Per Loss
Max
Profit
Max
Loss
Z12171675$8,589.49-$1,500.1623,013.7%-99.1%
S1691435$5,676.99-$1,366.905,504.9%-98.2%
U1151246$5,037.94-$1,300.625,257.6%-98.2%
Y1181247$4,907.05-$1,177.86660.4%-97.6%
X1511007$3,397.10-$1,202.31635.8%-97.6%
V (best)184796$2,892.05-$1,127.08635.0%-93.8%
O147774$2,787.20-$1,036.52635.8%-93.6%
O+296728$2,638.81-$1,027.04635.8%-98.2%
P271752$2,573.30-$1,038.32476.8%-95.1%
Z out of sample337671$2,496.44-$989.79527.3%-97.3%
G370724$2,572.74-$1,032.92668.9%-96.2%
P538752$2,436.60-$1,031.291162.8%-98.2%
W130785$2,437.66-$1,207.41500.8%-93.9%
Q48748$2,745.63-$1,166.06495.2%-96.1%
Q+97705$2,479.00-$1,078.09500.8%-96.1%
L490532$1,840.35-$953.29490.9%-98.1%
K617415$1,449.74-$911.50282.4%-98.1%
T204300$1,276.40-$971.94212.1%-96.1%
R484297$1,196.66-$894.76353.0%-97.5%
F763296$1,108.84-$834.29169.4%-98.1%
TestCompleted
Trades
Average
Hold
Time
Average
Profit
Per Win
Average
Drop
Per Loss
Max
Profit
Max
Loss
I644295$1,086.06-$580.76212.1%-98.1%
H881299$1,085.35-$873.30212.1%-98.1%
J919210$879.90-$778.67150.8%-98.1%
G w/initial stop1,247184$3,192.49-$467.53763.3%-58.9%
C234154$818.23-$798.1893.1%-96.1%
A606154$736.99-$778.29134.8%-97.5%
Benchmark1,058154$689.72-$716.45130.2%-98.1%
Z25,694154$679.93-$756.55191.6%-98.9%
D1,913141$603.18-$706.58229.6%-98.1%
B1,515148$621.77-$703.43125.5%-98.1%
E1,31393$498.61-$625.53130.2%-88.3%
N3,08874$1,099.41-$165.06647.5%-85.2%
C Initial & Trailing stop 15% 3x1,96160$733.64-$535.56130.2%-59.6%
A Initial stop2,05857$960.36-$435.51130.2%-58.9%
B Initial & Trailing stop 20% 2x2,15348$814.96-$415.06130.2%-56.0%
A Initial & Trailing stop 15% 2x2,18245$727.72-$407.60130.2%-53.3%
M10,62521$389.96-$147.13503.5%-79.2%
A Trailing stop (Worst)2,35628$530.81-$306.90130.2%-53.3%
TestCompleted
Trades
Average
Hold
Time
Average
Profit
Per Win
Average
Drop
Per Loss
Max
Profit
Max
Loss

Top of page

Wilder's RSI: The Best Performer

The following table and information describes the performance of Test Z that has 20/80 and 16/14 settings, and uses out of sample data, meaning the data was not included when tuning the RSI settings. Noticed in this out-of-sample test that a position from 1993 remains open. The in-sample test showed the oldest open trade occurred in 1998. The one closed trade in 2008, so far, I describe in the next section (Trading Example).

YearOpenTradesValueChangeSP 500Change
1990017$2,026,264.361.30%$2,021,101.841.10%
199101$2,027,768.450.10%$2,021,299.350.00%
199208$2,037,639.450.50%$2,025,260.370.20%
1993110$2,048,204.000.50%$2,031,588.820.30%
1994017$2,071,129.311.10%$2,066,596.811.70%
199504$2,081,937.360.50%$2,079,717.880.60%
1996014$2,110,056.431.40%$2,110,670.631.50%
1997013$2,149,472.221.90%$2,129,559.310.90%
1998259$2,275,019.605.80%$2,181,377.512.40%
1999235$2,321,908.992.10%$2,178,388.51-0.10%
2000018$2,356,567.821.50%$2,170,747.19-0.40%
2001657$2,473,457.465.00%$2,182,431.200.50%
2002232$2,523,897.462.00%$2,198,464.690.70%
2003110$2,548,662.051.00%$2,211,842.840.60%
2004213$2,561,235.970.50%$2,216,022.980.20%
20051118$2,580,336.820.70%$2,224,314.060.40%
2006116$2,586,357.730.20%$2,228,114.870.20%
2007404$2,591,381.480.20%$2,228,223.320.00%
2008101$2,593,777.410.10%$2,228,038.530.00%
YearOpenTradesValueChangeSP 500Change

Top of page

Top of page

Wilder's RSI: Trading Example

A chart of the Jo-Ann Stores (JAS) on the daily scale

The figure shows a bar chart of Jo-Ann Stores (JAS) on the daily scale and the RSI indicator beneath that. The red bar is the overbought area at 80 and above. The green bar is the oversold area at 20 and below. The red RSI line is the sell signal using a 14 day look back and the blue line, which looks black on the chart, is the RSI buy signal line using a 16 day look back.

The top chart shows where the RSI moves into the overbought or oversold areas by using vertical bars of red or green. These are not the buy and sell signals. A buy occurs when the buy RSI line moves below 20 and then above it. The entry happened on January 8 at the opening price of $10.10, as shown in the chart.

The RSI sell line moved to 80 or above then dropped below it. The sale occurred at the opening bell on the next trading day, February 19, at 16.14 for a gain of 59.8% in about 1.5 months.

If you look at the complete chart of JAS, you will see that this was a well-timed trade. The entry signal came within a week of the low and the exit occurred just two days after price peaked. When the stock finished declining in March, it went on to new highs and peaked at 22.30 in May 2008 (the highest price as I write this), above the sell price of 16.14.

Notice in the chart how the RSI lines begin moving up before price when it leaves congestion. I show this at A and you can see how far the RSI lines have moved before price actually breaks out of congestion (the day after the left magenta line).

A similar prediction occurred at B. The RSI lines were dropping for about two weeks before price followed (at the right magenta line).

-- Thomas Bulkowski

Top of page

See Also

 

Support this site! Clicking any of the books (below) takes you to Amazon.com If you buy ANYTHING while there, they pay for the referral.
Legal notice for paid links: "As an Amazon Associate I earn from qualifying purchases."

My Stock Market Books
My Novels

Copyright © 2005-2024 by Thomas N. Bulkowski. All rights reserved.
Disclaimer: You alone are responsible for your investment decisions. See Privacy/Disclaimer for more information.
Some pattern names are registered trademarks of their respective owners.
Home Advertise Contact Privacy/Disclaimer

Your momma is so fat that I had to take a train and two busses just to get on her good side!Smiley