1991issue C041
Constructing the relative strength index from seed and recursive averages
The relative strength index is assembled from close-to-close changes, a seed average, and a recursive update. The 0 to 100 reading is a transform of the relative strength ratio, not a comparison with a second market.
- The relative strength index is a bounded oscillator from zero to 100, formed by transforming the relative strength ratio of average up closes to average down closes.
- The seed average sums up closes and down closes over the first lookback window and divides each sum by the number of observations, with 14 as the original default.
- After the seed, an up-close day updates the up-close average by multiplying the prior average by 13, adding today's price change, and dividing by 14, while the down-close average is multiplied by 13/14.
- The lookback need not stay at 14, and the construction compares a series only with its own recent closes.
A bounded transform of two averages
The relative strength index is constructed as a bounded oscillator with a range from zero to 100. The oscillator is a transform of the relative strength ratio, defined as the average of up closes divided by the average of down closes. The transform is 100 minus 100 divided by one plus that ratio.
The construction uses each day's close-to-close change, the signed difference between successive closing prices, to classify an observation as an up close or a down close. The original default lookback is 14 daily observations. The construction compares a series only with its own recent closes, not with a second market or an external benchmark.
How the seed average is formed
The first averages are seeded by summing the up closes over the lookback and dividing by 14, then summing the down closes over the same window and dividing by 14. That first window is the seed average: up closes and down closes are summed separately, and each sum is divided by the number of observations.
The recursive update after the seed
After the seed, an up-close day updates the up-close average by multiplying the prior average by 13, adding today's price change, and dividing by 14. On that same up-close day, the down-close average is updated by multiplying the previous down-close average by 13/14.
That next-period average is the recursive update. It scales the prior average by one less than the lookback, adds the new change when it applies, and divides by the lookback.
Any lookback can form the averages
The lookback length is not required to be 14. Any number of closes may be used to form the averages.
All readings on this track · 26 readings
- 1991Constructing the relative strength index from seed and recursive averages
- 1991Inverting relative-strength-index closes for same-session rules
- 1991Seeded averages and the recursive-update
- 1993Restating relative-strength-index parameters after a smoothing change
- 1993Relative momentum construction by stretching the relative strength lookback
- 1994Constructing relative strength index lookbacks, bands, and confirmation filters
- 1994Building the relative-strength-index from signed close changes
- 1997Constructing the relative strength index as a bounded up-down close oscillator
- 2002Four-line oscillator construction for rule-based entries
- 2004Assembling a bounded RSI path
- 2004Constructing RSI on highs, lows, and reverse targets
- 2004Reverse-engineered RSI as an explicit next-bar price target
- 2006Self-adjusting RSI thresholds from the oscillator's own spread
- 2006Constructing adaptive overbought and oversold levels for a relative strength index
- 2006Relative Strength Index 50-line entry beyond the 70 and 30 extremes
- 2007Lock a followable rule set before testing RSI exits
- 2008RSI bands as a one-day shift of reverse-engineered levels
- 2008Constructing an asymmetrical RSI from adaptive up and down averages
- 2010Building a bounded oscillator from a rainbow smoother, relative strength, and inverse Fisher
- 2011Two-horizon weekly RSI with moving averages and stops
- 2011Percent-offset simple moving average bands with relative-strength confirmation
- 2011Fast and slow relative strength index as one mechanical rule book
- 2011Price-zone oscillator construction from signed closes
- 2015Constructing a zero-lag oscillator against a relative strength index baseline
- 2015Relative Strength Index as a baseline in 2015 software listings
- 2018Building a Fisherized deviation-scaled oscillator