Relative Strength Index
   HOME

TheInfoList



OR:

The relative strength index (RSI) is a
technical indicator In technical analysis in finance, a technical indicator is a mathematical calculation based on historic price, volume, or (in the case of futures contracts) open interest information that aims to forecast financial market direction. Technical ind ...
used in the analysis of
financial market A financial market is a market in which people trade financial securities and derivatives at low transaction costs. Some of the securities include stocks and bonds, raw materials and precious metals, which are known in the financial marke ...
s. It is intended to chart the current and historical strength or weakness of a stock or market based on the closing prices of a recent trading period. The indicator should not be confused with relative strength. The RSI is classified as a momentum
oscillator Oscillation is the repetitive or periodic variation, typically in time, of some measure about a central value (often a point of equilibrium) or between two or more different states. Familiar examples of oscillation include a swinging pendulum ...
, measuring the velocity and magnitude of price movements.
Momentum In Newtonian mechanics, momentum (: momenta or momentums; more specifically linear momentum or translational momentum) is the product of the mass and velocity of an object. It is a vector quantity, possessing a magnitude and a direction. ...
is the rate of the rise or fall in price. The relative strength RS is given as the ratio of higher closes to lower closes. Concretely, one computes two averages of absolute values of closing price changes, i.e. two sums involving the sizes of candles in a candle chart. The RSI computes momentum as the ratio of higher closes to overall closes: stocks which have had more or stronger positive changes have a higher RSI than stocks which have had more or stronger negative changes. The RSI is most typically used on a 14-day timeframe, measured on a scale from 0 to 100, with high and low levels marked at 70 and 30, respectively. Short or longer timeframes are used for alternately shorter or longer outlooks. High and low levels—80 and 20, or 90 and 10—occur less frequently but indicate stronger momentum. The relative strength index was developed by J. Welles Wilder and published in a 1978 book, ''New Concepts in Technical Trading Systems'', and in ''
Commodities In economics, a commodity is an economic good, usually a resource, that specifically has full or substantial fungibility: that is, the market treats instances of the good as equivalent or nearly so with no regard to who produced them. Th ...
'' magazine (now ''
Modern Trader ''Modern Trader'' is a United States-based monthly print investment magazine. The publication was established in 1972 under the name ''Commodities''. The name was changed to ''Futures'' in September 1983 and ''Modern Trader'' in 2015. The magaz ...
'' magazine) in the June 1978 issue.J. Welles Wilder, ''New Concepts in Technical Trading Systems'', It has become one of the most popular oscillator indices. The RSI provides signals that tell investors to buy when the security or currency is oversold and to sell when it is overbought. RSI with recommended parameters and its day-to-day optimization was tested and compared with other strategies in Marek and Šedivá (2017). The testing was randomised in time and companies (e.g.,
Apple An apple is a round, edible fruit produced by an apple tree (''Malus'' spp.). Fruit trees of the orchard or domestic apple (''Malus domestica''), the most widely grown in the genus, are agriculture, cultivated worldwide. The tree originated ...
, Exxon Mobil,
IBM International Business Machines Corporation (using the trademark IBM), nicknamed Big Blue, is an American Multinational corporation, multinational technology company headquartered in Armonk, New York, and present in over 175 countries. It is ...
,
Microsoft Microsoft Corporation is an American multinational corporation and technology company, technology conglomerate headquartered in Redmond, Washington. Founded in 1975, the company became influential in the History of personal computers#The ear ...
) and showed that RSI can still produce good results; however, in longer time it is usually overcome by the simple buy-and-hold strategy.


Calculation

For each trading period an upward change ''U'' or downward change ''D'' is calculated. Up periods are characterized by the close being higher than the previous close: :U = \text_\text - \text_\text :D = 0 Conversely, a down period is characterized by the close being lower than the previous period's close, : U = 0 : D = \text_\text - \text_\text If the last close is the same as the previous, both ''U'' and ''D'' are zero. Note that both U and D are nonnegative numbers. Averages are now calculated from sequences of such ''U'' and ''D'', using an ''n''-period smoothed or modified moving average (SMMA or MMA), which is the exponentially smoothed moving average with ''α = 1 / n''. Those are positively weighted averages of those positive terms, and behave additively with respect to the partition. Wilder originally formulated the calculation of the moving average as: ''newval = (prevval * (n - 1) + newdata) / n'', which is equivalent to the aforementioned exponential smoothing. So new data is simply divided by ''n'', or multiplied by ''α'' and previous average values are modified by ''(n - 1) / n'', i.e. ''1 - α''. Some commercial packages, like AIQ, use a standard exponential moving average (EMA) as the average instead of Wilder's SMMA. The smoothed moving averages should be appropriately initialized with a simple moving average using the first ''n'' values in the price series. The ratio of these averages is the ''relative strength'' or ''relative strength factor'': :\text = \frac The relative strength factor is then converted to a relative strength index between 0 and 100: : \text = 100\cdot\left(1 - \frac\right) = 100 - If the average of ''U'' values is zero, both RS and RSI are also zero. If the average of ''U'' values equals the average of ''D'' values, the RS is 1 and RSI is 50. If the average of ''U'' values is maximal, so that the average of ''D'' values is zero, then the RS value diverges to infinity, while the RSI is 100.


Interpretation


Basic configuration

The RSI is presented on a graph above or below the price chart. The indicator has an upper line and a lower line, typically at 70 and 30 respectively, and a dashed mid-line at 50. Wilder recommended a smoothing period of 14 (see
exponential smoothing Exponential smoothing or exponential moving average (EMA) is a rule of thumb technique for smoothing time series data using the exponential window function. Whereas in the simple moving average the past observations are weighted equally, exponen ...
, i.e. ''α'' = 1/14 or ''N'' = 14).


Principles

Wilder posited that when price moves up very rapidly, at some point it is considered overbought. Likewise, when price falls very rapidly, at some point it is considered oversold. In either case, Wilder deemed a reaction or reversal imminent. The level of the RSI is a measure of the stock's recent trading strength. The slope of the RSI is directly proportional to the velocity of a change in the trend. The distance traveled by the RSI is proportional to the magnitude of the move. Wilder believed that tops and bottoms are indicated when RSI goes above 70 or drops below 30. Traditionally, RSI readings greater than the 70 level are considered to be in overbought territory, and RSI readings lower than the 30 level are considered to be in oversold territory. In between the 30 and 70 level is considered neutral, with the 50 level a sign of no trend.


Divergence

Wilder further believed that divergence between RSI and price action is a very strong indication that a market turning point is imminent. Bearish divergence occurs when price makes a new high but the RSI makes a lower high, thus failing to confirm. Bullish divergence occurs when price makes a new low but RSI makes a higher low. Furthermore, traders often use "hidden" divergences to indicate possible trend reversals. A hidden bullish divergence occurs when the price makes a lower high, while the RSI makes a higher high. Conversely, a hidden bearish divergence occurs when price makes a higher low, but the RSI makes a lower low.


Overbought and oversold conditions

Wilder thought that "failure swings" above 50 and below 50 on the RSI are strong indications of market reversals. For example, assume the RSI hits 76, pulls back to 72, then rises to 77. If it falls below 72, Wilder would consider this a "failure swing" above 70. Finally, Wilder wrote that chart formations and areas of support and resistance could sometimes be more easily seen on the RSI chart as opposed to the price chart. The center line for the relative strength index is 50, which is often seen as both the support and resistance line for the indicator.


Uptrends and downtrends

In addition to Wilder's original theories of RSI interpretation, Andrew Cardwell has developed several new interpretations of RSI to help determine and confirm trend. First, Cardwell noticed that uptrends generally traded between RSI 40 and 80, while downtrends usually traded between RSI 60 and 20. Cardwell observed when securities change from uptrend to downtrend and vice versa, the RSI will undergo a "range shift." Next, Cardwell noted that bearish divergence: 1) only occurs in uptrends, and 2) mostly only leads to a brief correction instead of a reversal in trend. Therefore, bearish divergence is a sign confirming an uptrend. Similarly, bullish divergence is a sign confirming a downtrend.


Reversals

Finally, Cardwell discovered the existence of positive and negative reversals in the RSI. Reversals are the opposite of divergence. For example, a positive reversal occurs when an uptrend price correction results in a higher low compared to the last price correction, while RSI results in a lower low compared to the prior correction. A negative reversal happens when a downtrend rally results in a lower high compared to the last downtrend rally, but RSI makes a higher high compared to the prior rally. In other words, despite stronger momentum as seen by the higher high or lower low in the RSI, price could not make a higher high or lower low. This is evidence the main trend is about to resume. Cardwell noted that positive reversals only happen in uptrends while negative reversals only occur in downtrends, and therefore their existence confirms the trend.


Cutler's RSI

A variation called Cutler's RSI is based on a simple moving average of ''U'' and ''D'',Cutler's RSI page
at Aspen Graphics Technical Analysis Software
instead of the exponential average above. Cutler had found that since Wilder used a smoothed moving average to calculate RSI, the value of Wilder's RSI depended upon where in the data file his calculations started. Cutler termed this Data Length Dependency. Cutler's RSI is not data length dependent, and returns consistent results regardless of the length of, or the starting point within a data file. : \text = \frac Cutler's RSI generally comes out slightly different from the normal Wilder RSI, but the two are similar, since SMA and SMMA are also similar.


General definitions

In analysis, * If g\colon T\to is a
real function In mathematical analysis, and applications in geometry, applied mathematics, engineering, and natural sciences, a function of a real variable is a function whose domain is the real numbers \mathbb, or a subset of \mathbb that contains an inter ...
with positive L^1-norm on a set T, then , g, divided by its norm integral, the normalized function p_g(t):=\tfrac, is an associated distribution. * If p\colon T\to
, 1 The comma is a punctuation mark that appears in several variants in different languages. Some typefaces render it as a small line, slightly curved or straight, but inclined from the vertical; others give it the appearance of a miniature fille ...
/math> is a distribution, one can evaluate measurable subsets S\subset T of the domain. To this end, the associated
indicator function In mathematics, an indicator function or a characteristic function of a subset of a set is a function that maps elements of the subset to one, and all other elements to zero. That is, if is a subset of some set , then the indicator functio ...
\mathbf_S\colon T\to\ may be mapped to an "index" \langle p,\mathbf_S\rangle\in
, 1 The comma is a punctuation mark that appears in several variants in different languages. Some typefaces render it as a small line, slightly curved or straight, but inclined from the vertical; others give it the appearance of a miniature fille ...
/math> in the real
unit interval In mathematics, the unit interval is the closed interval , that is, the set of all real numbers that are greater than or equal to 0 and less than or equal to 1. It is often denoted ' (capital letter ). In addition to its role in real analysi ...
, via the
pairing In mathematics, a pairing is an ''R''- bilinear map from the Cartesian product of two ''R''- modules, where the underlying ring ''R'' is commutative. Definition Let ''R'' be a commutative ring with unit, and let ''M'', ''N'' and ''L'' be '' ...
\langle p,\mathbf_S\rangle :=\int_T p(t)\cdot\mathbf_S(t)\,t=\int_S p(t)\,t. Now for \mathbf_ defined as being equal to 1
if and only if In logic and related fields such as mathematics and philosophy, "if and only if" (often shortened as "iff") is paraphrased by the biconditional, a logical connective between statements. The biconditional is true in two cases, where either bo ...
the value of g is positive, the index \langle\tfrac,\mathbf_\rangle is a quotient of two integrals and is a value that assigns a weight to the part of g that is positive. A ratio of two averages over the same domain T is also always computed as the ratio of two integrals or sums. Yet more specifically, for a real function on an
ordered set In mathematics, especially order theory, a partial order on a set is an arrangement such that, for certain pairs of elements, one precedes the other. The word ''partial'' is used to indicate that not every pair of elements needs to be comparable; ...
T (e.g. a price curve), one may consider that function's
gradient In vector calculus, the gradient of a scalar-valued differentiable function f of several variables is the vector field (or vector-valued function) \nabla f whose value at a point p gives the direction and the rate of fastest increase. The g ...
g, or some weighted variant thereof. In the case where T = \ is an ordered
finite set In mathematics, particularly set theory, a finite set is a set that has a finite number of elements. Informally, a finite set is a set which one could in principle count and finish counting. For example, is a finite set with five elements. Th ...
(e.g. a sequence of timestamps), the gradient is given as the
finite difference A finite difference is a mathematical expression of the form . Finite differences (or the associated difference quotients) are often used as approximations of derivatives, such as in numerical differentiation. The difference operator, commonly d ...
. In the ''relative strength index'', \tfrac evaluates a sequence g derived from closing prices observed in an interval of n so called market periods t \in \. The positive value , g(t), equals the absolute price change , \text(t) - \text(t-1) , , i.e. U+D at t, multiplied by an exponential factor according to the SMMA weighting for that time. The denominator \, g\, _1 is the sum of all those numbers. In the numerator one computes the SMMA of only U, or in other words g multiplied by the indicator function for the positive changes. The resulting index in this way weighs U, which includes only the positive changes, over the changes in the whole interval.


See also

*
Stochastic Oscillator Stochastic oscillator is a momentum indicator within technical analysis that uses support and resistance levels as an oscillator. George Lane developed this indicator in the late 1950s. The term ''stochastic Stochastic (; ) is the property of ...
* MACD, moving average convergence/divergence * True strength index, a similar momentum-based indicator


References


External links

{{technical analysis Technical indicators