Relative Strength Index (RSI)

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
technical_indicators:relative_strength_index_rsi [2020/07/14 15:42]
betseyp [Trend ID]
technical_indicators:relative_strength_index_rsi [2023/06/12 18:11] (current)
jayanthi [What Is the Relative Strength Index (RSI)?]
Line 1: Line 1:
 ====== Relative Strength Index (RSI) ====== ====== Relative Strength Index (RSI) ======
  
-===== Introduction ​=====+===== What Is the Relative Strength Index (RSI)? ​=====
  
-Developed ​by J. Welles Wilder, ​the Relative Strength Index (RSI) is a momentum oscillator that measures the speed and change of price movements. RSI oscillates between zero and 100. According to Wilder, ​RSI is considered overbought when above 70 and oversold ​when below 30. Signals can also be generated by looking for divergences,​ failure swings and centerline crossovers. ​RSI can also be used to identify the general trend. ​+The RSI, a momentum oscillator developed ​by J. Welles Wilder, measures the speed and change of price movements. ​The RSI moves up and down (oscillatesbetween zero and 100. When the RSI is above 70, it generally indicates overbought conditions; ​when the RSI is below 30, it indicates oversold conditionsThe RSI also generates trading signals via divergences,​ failure swingsand centerline crossovers. ​You could also use the RSI to identify the general trend. ​
  
-RSI is an extremely ​popular [[:​technical_indicators:​introduction_to_technical_indicators_and_oscillators#​momentum_oscillators|momentum indicator]] that has been featured in a number of articles, interviews and books over the years. In particular, Constance Brown'​s book, //Technical Analysis for the Trading Professional//,​ features the concept of bull market ​and bear market ranges for RSI. Andrew Cardwell, Brown'​s RSI mentor, introduced positive and negative reversals for RSI and, additionally, ​turned the notion of divergence, literally and figuratively,​ on its head. +RSI is popular [[:​technical_indicators:​introduction_to_technical_indicators_and_oscillators#​momentum_oscillators|momentum indicator]] that has been featured in a number of articles, interviewsand books over the years. In particular, Constance Brown'​s book, //Technical Analysis for the Trading Professional//,​ features the concept of bull and bear market ranges for RSI. Andrew Cardwell, Brown'​s RSI mentor, introduced positive and negative reversals for RSI and turned the notion of divergence, literally and figuratively,​ on its head. 
  
-Wilder features RSI in his 1978 book, //New Concepts in Technical Trading Systems//. This book also includes the Parabolic SAR, Average True Range and the Directional Movement Concept (ADX). Despite being developed before the computer age, Wilder'​s indicators have stood the test of time and remain extremely popular.+Wilder features RSI in his 1978 book, //New Concepts in Technical Trading Systems//. This book also includes the Parabolic SAR, Average True Rangeand the Directional Movement Concept (ADX). Despite being developed before the computer age, Wilder'​s indicators have stood the test of time and continue to be applied by chart analysts.
  
-===== Calculation ​=====+===== Calculating the RSI =====
  
 <​code>​ <​code>​
Line 21: Line 21:
 </​code>​ </​code>​
  
-To simplify ​the calculation explanation, ​RSI has been broken down into its basic components: ​**RS**, **Average Gain** and **Average Loss**. This RSI calculation is based on 14 periods, ​which is the default suggested ​by Wilder ​in his book. Losses are expressed as positive values, not negative values. ​+There are three basic components in the RSI**RS**, **Average Gain**and **Average Loss**. This RSI calculation is based on 14 periods, the default ​Wilder ​suggested in his book. Losses are expressed as positive values, not negative values. ​
  
-The very first calculations for average gain and average loss are simple 14-period averages:+The first calculations for average gain and average loss are simple 14-period averages:
  
   * First Average Gain = Sum of Gains over the past 14 periods / 14.    * First Average Gain = Sum of Gains over the past 14 periods / 14. 
   * First Average Loss = Sum of Losses over the past 14 periods / 14   * First Average Loss = Sum of Losses over the past 14 periods / 14
  
-The secondand subsequent, calculations are based on the prior averages and the current gain loss: +The second and subsequent, calculations are based on the prior averages and the current gain loss: 
  
   * Average Gain = [(previous Average Gain) x 13 + current Gain] / 14.    * Average Gain = [(previous Average Gain) x 13 + current Gain] / 14. 
   * Average Loss = [(previous Average Loss) x 13 + current Loss] / 14.    * Average Loss = [(previous Average Loss) x 13 + current Loss] / 14. 
  
-Taking the prior value plus the current value is a smoothing technique similar to that used in calculating an exponential moving average. This also means that RSI values become more accurate as the calculation period extends. SharpCharts uses at least 250 data points ​prior to the starting date of any chart (assuming that much data exists) when calculating its RSI values. ​To exactly replicate our RSI numbers, a formula will need at least 250 data points.+Taking the prior value plus the current value is a smoothing technique similar to calculating an exponential moving average. This also means RSI values become more accurate as the calculation period extends. SharpCharts uses at least 250 data points ​before ​the starting date of any chart (assuming that much data exists) when calculating its RSI values. ​formula will need at least 250 data points ​to replicate our RSI numbers.
  
-Wilder'​s formula normalizes RS and turns it into an oscillator that fluctuates between zero and 100. In fact, a plot of RS looks exactly the same as a plot of RSI. The normalization step makes it easier to identify extremes because RSI is range-bound. When the Average Gain equals zero, RSI is zero. Assuming ​a 14-period RSI, a zero RSI value means prices moved lower all 14 periods ​and there were no gains to measure. RSI is 100 when the Average Loss equals zero. This means prices moved higher all 14 periods and there were no losses to measure.+Wilder'​s formula normalizes RS and turns it into an oscillator that fluctuates between zero and 100. The normalization step makes it easier to identify extremes because RSI is range-bound. When the Average Gain equals zero, RSI is zero. So, if you're using a 14-period RSI, a zero RSI value means prices moved lower in all 14 periods. There were no gains to measure. RSI is 100 when the Average Loss equals zero. This means prices moved higher ​in all 14 periodsand there were no losses to measure.
  
 {{:​technical_indicators:​relative_strength_index_rsi:​rsi-2-rsplot.png|Chart 1 - RSI RS Plots}} {{:​technical_indicators:​relative_strength_index_rsi:​rsi-2-rsplot.png|Chart 1 - RSI RS Plots}}
 +
 +Here's {{:​technical_indicators:​relative_strength_index_rsi:​cs-rsi.xls?​linkonly|an Excel Spreadsheet}} that shows the start of an RSI calculation.
  
 {{:​technical_indicators:​relative_strength_index_rsi:​rsi-1-rsiexcel.png|Chart 2 - RSI Spreadsheet}} {{:​technical_indicators:​relative_strength_index_rsi:​rsi-1-rsiexcel.png|Chart 2 - RSI Spreadsheet}}
  
-Here's {{:​technical_indicators:​relative_strength_index_rsi:​cs-rsi.xls?​linkonly|an Excel Spreadsheet}} that shows the start of an RSI calculation in action. 
  
-Note: The smoothing process affects RSI values. RS values are smoothed after the first calculation. Average Loss equals the sum of the losses divided by 14 for the first calculation. Subsequent calculations multiply the prior value by 13, add the most recent value and then divide the total by 14. This creates a smoothing ​affect. The same applies to Average Gain. Because of this smoothing, RSI values may differ based on the total calculation period. 250 periods will allow for more smoothing than 30 periods ​and this will slightly affect RSI values. StockCharts.com goes back 250 days whenever possible. If Average Loss equals zero, a "​divide by zero" situation occurs for RS and RSI is set to 100 by definition. Similarly, RSI equals 0 when Average Gain equals zero.+Note: The smoothing process affects RSI values. RS values are smoothed after the first calculation. Average Loss equals the sum of the losses divided by 14 for the first calculation. Subsequent calculations multiply the prior value by 13, add the most recent valueand divide the total by 14. This creates a smoothing ​effect. The same applies to Average Gain. Because of this smoothing, RSI values may differ based on the total calculation period. 250 periods will allow for more smoothing than 30 periods, which will slightly affect RSI values. StockCharts.com goes back 250 days whenever possible. If the Average Loss equals zero, a "​divide by zero" situation occurs for RSand RSI is set to 100 by definition. Similarly, RSI equals 0 when Average Gain equals zero.
  
-===== Parameters =====+===== What Are the Best RSI Parameters=====
  
-The default look-back period for RSI is 14, but this can be lowered ​to increase sensitivity or raised ​to decrease sensitivity. 10-day RSI is more likely to reach overbought or oversold levels than 20-day RSI. The look-back parameters also depend on a security'​s volatility. 14-day RSI for internet retailer ​Amazon (AMZN) is more likely to become overbought or oversold than 14-day RSI for Duke Energy (DUK), a utility+The default look-back period for RSI is 14, but you can lower it to increase sensitivity or raise it to decrease sensitivity. ​10-day RSI is more likely to reach overbought or oversold levels than 20-day RSI. The look-back parameters also depend on a security'​s volatility. ​The 14-day RSI for a volatile stock such as Amazon (AMZN) is more likely to become overbought or oversold than 14-day RSI for a utility company such as Duke Energy (DUK). ​
  
-RSI is considered ​overbought ​when above 70 and oversold ​when below 30. These traditional ​levels can also be adjusted to better fit the security or analytical requirements. Raising overbought to 80 or lowering oversold to 20 will reduce the number of overbought/​oversold readings. Short-term traders sometimes use 2-period RSI to look for overbought readings above 80 and oversold readings below 20. +The traditional ​overbought and oversold levels can be adjusted to better fit the security or analytical requirements. Raising ​the overbought ​threshold ​to 80 or lowering ​the oversold ​threshold ​to 20 could reduce the number of overbought/​oversold readings. Short-term traders sometimes use 2-period RSI to look for overbought readings above 80 and oversold readings below 20. 
  
-===== Overbought-Oversold =====+===== Overbought ​and Oversold ​RSI Levels ​=====
    
 Wilder considered RSI [[:​glossary_o#​overbought|overbought]] above 70 and [[:​glossary_o#​oversold|oversold]] below 30. Chart 3 shows McDonalds with 14-day RSI. This chart features daily bars in gray with a 1-day SMA in pink to highlight closing prices (as RSI is based on closing prices). Working from left to right, the stock became oversold in late July and found support around 44 (1). Notice that the bottom **evolved** after the oversold reading. Bottoming can be a process - this stock did not bottom as soon as the oversold reading appeared. From oversold levels, RSI moved above 70 in mid September to become overbought. Despite this overbought reading, the stock did not decline; instead, it stalled for a couple weeks and then continued higher. Three more overbought readings occurred before the stock finally peaked in December (2). Momentum oscillators can become overbought (oversold) and remain so in a strong up (down) trend. The first three overbought readings foreshadowed consolidations. The fourth coincided with a significant peak. RSI then moved from overbought to oversold in January. The stock ultimately bottomed around 46 a few weeks later (3); the final bottom did not coincide with the initial oversold reading. ​ Wilder considered RSI [[:​glossary_o#​overbought|overbought]] above 70 and [[:​glossary_o#​oversold|oversold]] below 30. Chart 3 shows McDonalds with 14-day RSI. This chart features daily bars in gray with a 1-day SMA in pink to highlight closing prices (as RSI is based on closing prices). Working from left to right, the stock became oversold in late July and found support around 44 (1). Notice that the bottom **evolved** after the oversold reading. Bottoming can be a process - this stock did not bottom as soon as the oversold reading appeared. From oversold levels, RSI moved above 70 in mid September to become overbought. Despite this overbought reading, the stock did not decline; instead, it stalled for a couple weeks and then continued higher. Three more overbought readings occurred before the stock finally peaked in December (2). Momentum oscillators can become overbought (oversold) and remain so in a strong up (down) trend. The first three overbought readings foreshadowed consolidations. The fourth coincided with a significant peak. RSI then moved from overbought to oversold in January. The stock ultimately bottomed around 46 a few weeks later (3); the final bottom did not coincide with the initial oversold reading. ​
Line 61: Line 62:
 {{:​technical_indicators:​relative_strength_index_rsi:​rsi-4-wfrobos.png|Chart 4 - RSI Overbought Oversold}} {{:​technical_indicators:​relative_strength_index_rsi:​rsi-4-wfrobos.png|Chart 4 - RSI Overbought Oversold}}
  
-===== Divergences =====+===== Bullish and Bearish ​Divergences ​in RSI =====
  
 According to Wilder, divergences signal a potential reversal point because directional momentum does not confirm price. A bullish divergence occurs when the underlying security makes a lower low and RSI forms a higher low. RSI does not confirm the lower low and this shows strengthening momentum. A bearish divergence forms when the security records a higher high and RSI forms a lower high. RSI does not confirm the new high and this shows weakening momentum. Chart 5 shows Ebay (EBAY) with a bearish divergence in August-October. The stock moved to new highs in September-October,​ but RSI formed lower highs for the bearish divergence. The subsequent breakdown in mid-October confirmed weakening momentum. ​ According to Wilder, divergences signal a potential reversal point because directional momentum does not confirm price. A bullish divergence occurs when the underlying security makes a lower low and RSI forms a higher low. RSI does not confirm the lower low and this shows strengthening momentum. A bearish divergence forms when the security records a higher high and RSI forms a lower high. RSI does not confirm the new high and this shows weakening momentum. Chart 5 shows Ebay (EBAY) with a bearish divergence in August-October. The stock moved to new highs in September-October,​ but RSI formed lower highs for the bearish divergence. The subsequent breakdown in mid-October confirmed weakening momentum. ​
Line 73: Line 74:
 {{:​technical_indicators:​relative_strength_index_rsi:​rsi-6-spydiverg.png|Chart 6 - RSI Divergences}} {{:​technical_indicators:​relative_strength_index_rsi:​rsi-6-spydiverg.png|Chart 6 - RSI Divergences}}
  
-===== Failure Swings =====+===== RSI Failure Swings =====
  
 Wilder also considered failure swings as strong indications of an impending reversal. Failure swings are independent of price action, focusing solely on RSI for signals and ignoring the concept of divergences. A bullish failure swing forms when RSI moves below 30 (oversold), bounces above 30, pulls back, holds above 30 and then breaks its prior high. It is basically a move to oversold levels and then a higher low above oversold levels. Chart 7 shows Research in Motion (RIMM) with 10-day RSI forming a bullish failure swing. ​ Wilder also considered failure swings as strong indications of an impending reversal. Failure swings are independent of price action, focusing solely on RSI for signals and ignoring the concept of divergences. A bullish failure swing forms when RSI moves below 30 (oversold), bounces above 30, pulls back, holds above 30 and then breaks its prior high. It is basically a move to oversold levels and then a higher low above oversold levels. Chart 7 shows Research in Motion (RIMM) with 10-day RSI forming a bullish failure swing. ​
Line 83: Line 84:
 {{:​technical_indicators:​relative_strength_index_rsi:​rsi-8-txnbfs.png|Chart 8 - RSI Failure Swing}} {{:​technical_indicators:​relative_strength_index_rsi:​rsi-8-txnbfs.png|Chart 8 - RSI Failure Swing}}
  
-===== Trend ID =====+===== How To Use RSI To Identify Trends ​=====
  
 In //Technical Analysis for the Trading Professional//,​ Constance Brown suggests that oscillators do not travel between 0 and 100. This also happens to be the name of the first chapter. Brown identifies a bull market range and a bear market for RSI. RSI tends to fluctuate between 40 and 90 in a bull market (uptrend) with the 40-50 zones acting as support. These ranges may vary depending on RSI parameters, strength of trend and volatility of the underlying security. Chart 9 shows 14-week RSI for SPY during the bull market from 2003 until 2007. RSI surged above 70 in late 2003 and then moved into its bull market range (40-90). There was one overshoot below 40 in July 2004, but RSI held the 40-50 zone at least five times from January 2005 until October 2007 (green arrows). In fact, notice that pullbacks to this zone provided low risk entry points to participate in the uptrend. ​ In //Technical Analysis for the Trading Professional//,​ Constance Brown suggests that oscillators do not travel between 0 and 100. This also happens to be the name of the first chapter. Brown identifies a bull market range and a bear market for RSI. RSI tends to fluctuate between 40 and 90 in a bull market (uptrend) with the 40-50 zones acting as support. These ranges may vary depending on RSI parameters, strength of trend and volatility of the underlying security. Chart 9 shows 14-week RSI for SPY during the bull market from 2003 until 2007. RSI surged above 70 in late 2003 and then moved into its bull market range (40-90). There was one overshoot below 40 in July 2004, but RSI held the 40-50 zone at least five times from January 2005 until October 2007 (green arrows). In fact, notice that pullbacks to this zone provided low risk entry points to participate in the uptrend. ​
Line 93: Line 94:
 {{:​technical_indicators:​relative_strength_index_rsi:​rsi-10-usdbear.png|Chart 10 - RSI Trend ID}} {{:​technical_indicators:​relative_strength_index_rsi:​rsi-10-usdbear.png|Chart 10 - RSI Trend ID}}
  
-===== Positive-Negative Reversals ===== +===== Identifying ​Positive ​and Negative Reversals ​With RSI ===== 
  
-Andrew Cardwell developed positive and negative reversals for RSI, which are the opposite of bearish and bullish divergences. Cardwell'​s books are out of print, but he does offer seminars detailing these methods. ​Before discussing the reversal technique, it should be noted that Cardwell'​s interpretation of divergences differs from Wilder. Cardwell considered bearish divergences to be bull market phenomena ​- in other words, bearish divergences are more likely to form in uptrends. Similarly, bullish divergences are considered bear market phenomena indicative of a downtrend. ​+Andrew Cardwell developed positive and negative reversals for RSI, which are the opposite of bearish and bullish divergences. Cardwell'​s books are out of print, but he offers ​seminars detailing these methods. Cardwell'​s interpretation of divergences differs from Wilder's. Cardwell considered bearish divergences to be bull market phenomena. In other words, bearish divergences are more likely to form in uptrends. Similarly, bullish divergences are considered bear market phenomena ​and are indicative of a downtrend. ​
  
-A positive reversal forms when RSI forges a lower low and the security forms a higher low. This lower low is not at oversold levelsbut usually ​somewhere ​between 30 and 50. Chart 11 shows MMM with a positive reversal forming in June 2009. MMM broke resistance a few weeks later and RSI moved above 70. Despite weaker momentum with a lower low in RSI, MMM held above its prior low and showed underlying strength. In essence, price action overruled momentum. ​+A positive reversal forms when RSI forges a lower lowand the security forms a higher low. This lower low is not at oversold levels but is usually between 30 and 50. Chart 11 shows MMM with a positive reversal forming in June 2009. MMM broke resistance a few weeks laterand RSI moved above 70. Despite weaker momentum with a lower low in RSI, MMM held above its prior low and showed underlying strength. In essence, price action overruled momentum. ​
  
 {{:​technical_indicators:​relative_strength_index_rsi:​rsi-11-mmmprvsl.png|Chart 11 - RSI Reversals}} {{:​technical_indicators:​relative_strength_index_rsi:​rsi-11-mmmprvsl.png|Chart 11 - RSI Reversals}}
Line 105: Line 106:
 {{:​technical_indicators:​relative_strength_index_rsi:​rsi-12-sbuxprvsl.png|Chart 12 - RSI Reversals}} {{:​technical_indicators:​relative_strength_index_rsi:​rsi-12-sbuxprvsl.png|Chart 12 - RSI Reversals}}
  
-===== Conclusion ​=====+===== Final Thoughts ​===== 
 + 
 +RSI is a versatile momentum oscillator that has stood the test of time. Despite changes in [[:​technical_indicators:​standard_deviation_volatility|volatility]] and the markets, RSI remains as relevant now as it was in Wilder'​s days. While Wilder'​s original interpretations are useful for understanding the indicator, the work of Brown and Cardwell takes RSI interpretation to a new level. But adjusting to this level takes some rethinking.  
 + 
 +Wilder considers overbought conditions ripe for a reversal, but overbought can also be a sign of strength. Bearish divergences still produce some good sell signals, but you must be careful in strong trends when bearish divergences are normal. Even though the concept of positive and negative reversals may seem to undermine Wilder'​s interpretation,​ the logic makes sense, and Wilder would hardly dismiss the value of putting more emphasis on price action. Positive and negative reversals put price action of the underlying security first and the indicator second, which is how it should be. Bearish and bullish divergences place the indicator first and price action second. By emphasizing price action, the concept of positive and negative reversals challenges our thinking toward momentum oscillators. ​  
 + 
 +===== RSI FAQs ===== 
 +==== Can the RSI be applied to different timeframes? ==== 
 +Yes, on the StockCharts charting platforms, the RSI can added to charts any timeframes—daily,​ weekly, hourly, and minute charts. The best timeframe to use it depends on your trading strategy and goals. 
 + 
 +==== Can the RSI be used as a standalone indicator? ==== 
 +While the RSI can provide valuable insights, using it as a standalone indicator is generally not recommended. It's usually more effective when combined with other tools and indicators to confirm signals and avoid potential false alarms.
  
-RSI is a versatile momentum oscillator that has stood the test of time. Despite changes in [[:​technical_indicators:​standard_deviation_volatility|volatility]] and the markets over the years, ​RSI remains as relevant now as it was in Wilder'​s days. While Wilder'​s original interpretations are useful to understanding the indicator, the work of Brown and Cardwell takes RSI interpretation to a new level. Adjusting to this level takes some rethinking on the part of the traditionally schooled chartists. Wilder considers overbought conditions ripe for a reversal, but overbought ​can also be a sign of strength. Bearish divergences still produce some good sell signals, but chartists must be careful ​in strong trends when bearish divergences are actually normalEven though the concept of positive ​and negative reversals may seem to undermine Wilder'​s interpretation,​ the logic makes sense and Wilder would hardly dismiss the value of putting more emphasis on price action. Positive and negative reversals put price action of the underlying security first and the indicator second, which is the way it should be. Bearish and bullish divergences place the indicator first and price action second. By putting more emphasis on price action, the concept of positive and negative reversals challenges our thinking towards momentum oscillators +==== Can the RSI be used in non-trending or sideways market conditions? ==== 
 +The RSI can provide useful insights ​in non-trending or sideways market conditionsIt can identify potential overbought ​and oversold conditions, which might indicate forthcoming ​price swings even in a range-bound market.
  
-===== Using with SharpCharts ===== +===== Using RSI in SharpCharts ===== 
  
-RSI is available as an indicator for SharpCharts. ​Once selectedusers can place the indicator ​above, below or behind the underlying price plot. Placing RSI directly on top of the price plot accentuates the movements relative to price action of the underlying security. ​Users can apply "​advanced options"​ to smooth the indicator with a moving average or add a horizontal line to mark overbought or oversold levels. ​+RSI is available as an indicator for SharpCharts. ​Select RSI from the **Indicator** dropdownselect ​the Parameter and the position (above, belowor behind the underlying price plot). Placing RSI directly on top of the price plot accentuates the movements relative to price action of the underlying security. ​You can apply "​advanced options"​ to smooth the indicator with a moving average or add a horizontal line to mark overbought or oversold levels. ​
  
 {{:​technical_indicators:​relative_strength_index_rsi:​rsi-13-qqqqshch.png|Chart 13 - RSI SharpCharts}} {{:​technical_indicators:​relative_strength_index_rsi:​rsi-13-qqqqshch.png|Chart 13 - RSI SharpCharts}}
Line 117: Line 130:
 {{:​technical_indicators:​relative_strength_index_rsi:​rsi-14-shch.png|Chart 14 - RSI SharpCharts}} {{:​technical_indicators:​relative_strength_index_rsi:​rsi-14-shch.png|Chart 14 - RSI SharpCharts}}
  
-===== Suggested ​Scans =====+===== Recommended RSI Scans =====
  
 ==== RSI Oversold in Uptrend ==== ==== RSI Oversold in Uptrend ====