Relative strength index

From Wikipedia, the free encyclopedia

Jump to: navigation, search

The Relative Strength Index (RSI) is a financial technical analysis oscillator showing price strength by comparing upward and downward close-to-close movements.

The RSI is popular because it is relatively easy to interpret. It was developed by J. Welles Wilder and published in Commodities magazine (now called Futures magazine) in June 1978, and in his New Concepts in Technical Trading Systems the same year.

Note that the term relative strength also refers to the strength of a security in relation to its sector or the overall market. For instance, XYZ might rise 2% when S&P 500 rises 1%.[1] This is sometimes called comparative relative strength to avoid confusion. It's unrelated to the Relative Strength Index described here.

Contents

[edit] Calculation

For each day an upward change (U) or downward change (D) is calculated. "Up" days are characterized by the daily close being higher than yesterday's daily close, i.e.:

U = closetodaycloseyesterday
D = 0

Conversely, a down day is characterized by the close being lower than the previous day's (note that D is nonetheless a positive number),

U = 0
D = closeyesterdayclosetoday

If today's close is the same as yesterday's, both U and D are zero. An average for U is calculated with an exponential moving average using a given N-days smoothing factor, and likewise for D. The ratio of those averages is the Relative Strength,

RS = { EMA[N] \; of \; U \over EMA[N] \; of \; D }

This is converted to a Relative Strength Index between 0 and 100,

 RSI = 100 - 100 \times { 1 \over 1 + RS }

This can be rewritten as follows to emphasise the way RSI expresses the up as a proportion of the total up and down (averages in each case),

 RSI = 100 \times { EMA[N]\;of\;U \over (EMA[N]\;of\;U) + (EMA[N]\;of\;D) }

The EMA, in theory, uses an infinite amount of past data. It's necessary either to go back far enough, or alternately at the start of data begin with a simple average of N days instead,

AvgU_{initial} = { U_1 + U_2 + \cdots + U_N \over N }

and then continue from there with the usual EMA formula,

AvgU_{today} = \alpha \times U_{today} + (1-\alpha) \times AvgU_{yesterday}

(Similarly with D.)

[edit] Interpretation

Relative Strength Index 14-period

Wilder recommended a smoothing period of 14. This is by his reckoning of EMA smoothing, ie. α=1/14 or N=27.

Wilder considered a security overbought if it reached the 70 level, meaning that the speculator should consider selling. Or conversely oversold at the 30 level. The principle is that when there's a high proportion of daily movement in one direction it suggests an extreme, and prices are likely to reverse. Levels 80 and 20 are also used, or may be varied according to market conditions (eg. a bull market may have an upward bias).

Large surges and drops in securities will affect RSI, but it could just be a false buy or sell. The RSI is best used as a complement with other technical analysis indicators.

The RSI should confirm price movement; therefore, if the stock price is moving up, the RSI should be moving up as well[2].

[edit] Cutler's RSI

A variation called Cutler's RSI is based on a simple moving average of U and D,[3] instead of the exponential average above.

RS = { SMA[N] \; of \; U \over SMA[N] \; of \; D }

This is like the initial data point calculation shown above, but used on every day, not just the first. The divisor N in the SMAs in the numerator and denominator cancel out, so one needn't do those divisions, instead just a sum of U and a sum of D over the past N days can be made.

Cutler's RSI generally comes out slightly different from the normal Wilder RSI, but the two are similar, since SMA and EMA are similar.

[edit] References

  1. ^ Relative Strength, Comparative at MarketScreen.com
  2. ^ How to interpret RSI indicator
  3. ^ Cutler's RSI page at Aspen Graphics Technical Analysis Software

[edit] External links

[edit] See also

  • MACD moving average convergence/divergence

[edit] Further reading

Personal tools