Lesson 46 of 120 · Intermediate · 14 min read
RSI and oscillators: why overbought is not a reason to act
Try it: Test RSI(14) under 30 on SPYFree, no account needed.
What you will be able to do
- Describe how a bounded oscillator is built from differenced closing prices
- Separate the claim that an indicator is bounded from the claim that price mean reverts
- Explain why the conventional thresholds are inherited conventions rather than derived values
- Set thresholds from the measured distribution of readings for one instrument and configuration
- State why divergence resists testing until a mechanical definition is written down
- Demote an oscillator from originating decisions to filtering or defining a state
Read these first
- Moving averages in Volume, VWAP, indicators and confirmation
- Trend structure in Candlesticks, charts and price structure
- Consolidation and ranges in Candlesticks, charts and price structure
Oscillators are the most confidently misread objects on a chart, and the reason is a single unexamined assumption: that because a number is bounded between two values, it must come back from the edges. It does come back. That is not the same as price coming back, and the gap between those two statements is where a great deal of money has gone.
How the relative strength index is built
The relative strength index takes the last N periods, separates the price changes into gains and losses, averages each separately, and forms a ratio. The ratio is then squashed onto a scale from 0 to 100. If every period in the window closed higher, the average loss is zero and the index reads 100. If every period closed lower, it reads 0. If gains and losses average the same, it reads 50.
Notice what goes in. Closing prices, and only closing prices, differenced. Not the range, not the volume, not the path within the bar. Notice also what the averaging does: it is a smoothing of a differenced price series, which means the index is a transformation of exactly the same input a moving average uses. It is price in a different coordinate system.
The bounding is the interesting part and it is worth being precise about. It arises because the index is a ratio of two non-negative quantities mapped onto a fixed interval. The bound is a property of the formula, not a property of the instrument. Price has no upper bound; the index does, because it was constructed to.
One more construction detail matters and is almost never mentioned. The averaging of gains and losses is usually not a plain mean over the window but a smoothed recursive average, which means older observations never fully leave. The consequence is that the reading you see today carries a trace of a large move from well outside the nominal lookback. Two implementations that both call themselves a fourteen-period index can therefore produce visibly different numbers, and a rule tuned on one will not transfer cleanly to the other.
A bounded transform of an unbounded series
Bounded is not the same as mean reverting
Here is the whole confusion in one sentence. An index that cannot exceed 100 must fall from 100 at some point, because there is nowhere else to go. It can fall because price fell. It can also fall because price stopped rising quite so uniformly, or because price went sideways, or because a large old gain left the averaging window while price continued upward.
In a strong sustained move the index will spend long stretches pinned near an extreme, oscillating in the top or bottom fifth of its range and never returning to the middle. That is not a malfunction and it is not a signal. It is what a bounded ratio does when the numerator dominates the denominator for an extended period.
Consider the arithmetic. If the average loss in the window is very small, the ratio is very large, and the index sits near its ceiling. To bring it back to the middle, the average loss has to rise materially relative to the average gain. That can be achieved by a decline, and it can equally be achieved by a long quiet stretch of small moves in both directions. The index cannot tell you which is coming, because it is computed from what already happened.
So the honest statement is: the index returning from an extreme tells you the recent balance of up-closes and down-closes has changed. Whether that change is the beginning of a reversal, the middle of a pause, or nothing at all is a question the construction does not address.
Overbought is not a reason to act
The words overbought and oversold are conventional labels for readings above and below chosen thresholds, most commonly 70 and 30. The labels are doing enormous unearned work. They sound like statements about valuation or about crowding. They are statements about an arithmetic threshold on a smoothed ratio of recent closes.
The thresholds themselves are conventions inherited from the original publication, not values derived from anything. There is no reason 70 should be meaningful across every instrument, every timeframe and every level of volatility. A quiet, range-bound instrument reaches 70 on a modest move; a fast-moving one lives above it for weeks. Applying one number to both is a category error that the chart makes invisible by drawing the same horizontal line on every panel.
The most expensive habit in this lesson
If you want to use thresholds at all, they have to be established per instrument and per timeframe by looking at the actual distribution of readings, and then treated as a description of unusualness rather than as an instruction. That is more work than reading a horizontal line, which is exactly why the horizontal line is popular.
The measurement itself is not difficult. Take a year of readings for one instrument at one configuration, sort them, and find the values at the tenth and ninetieth percentiles. Those two numbers describe what is genuinely unusual for that instrument, and they will frequently be nowhere near the conventional pair. In a persistently trending instrument the ninetieth percentile can sit well above the conventional upper threshold, which means the conventional line was being crossed on ordinary days and calling them extraordinary.
There is one further caution about percentile thresholds. They describe the past year, so they inherit whatever regime that year contained. Recomputing them every year is reasonable; recomputing them whenever a reading fails to produce the outcome you wanted is the same fitting error in a new place. Set the recomputation schedule in advance, along with everything else.
Lookback, timeframe and the illusion of a new indicator
The lookback length changes the character of the index completely. A short lookback produces a fast, volatile index that reaches both extremes frequently. A long lookback produces a slow one that rarely leaves the middle third. Those are not two views of the same thing; they are two different instruments with the same name, and a threshold that is unusual for one is routine for the other.
The same is true across timeframes. An index computed on hourly bars and one computed on daily bars share a formula and nothing else. A reading of 75 on the hourly panel and 75 on the daily panel are unrelated statements, and putting both on a screen at once creates an impression of agreement that is purely typographical.
This matters for a reason beyond bookkeeping. Because length and timeframe are both free parameters, the number of distinct configurations available is large, and searching over them has exactly the same selection problem as searching over anchors or over crossover lengths. Finding a configuration whose extremes lined up with past turns is not surprising. It is what a search returns.
Divergence, and why it is hard to test
Divergence is the observation that price made a new extreme while the oscillator did not. It is the most-cited oscillator technique and it is genuinely the most interesting one, because it is at least a comparison of two things rather than a threshold on one.
The difficulty is definitional. To identify a divergence you must identify two price extremes and two indicator extremes, and none of those four points has an objective definition. How far apart must the two price highs be? By how much must the second exceed the first? Over what window do you look for the corresponding indicator points? Different reasonable answers produce different sets of divergences on the same chart, and the set you find is a function of the definitions you chose after looking.
This is why divergence is hard to evaluate rather than merely unproven. To test it you must first fix a definition precise enough for a machine to apply without judgement, and most people who rely on it have never written one. The work on formalising chart patterns exists precisely because the step from a visual impression to a computable rule is where most of the ambiguity, and most of the apparent effectiveness, lives.
If you want to use it anyway
- Write the definition first, including the minimum separation between extremes and the tolerance for what counts as a new high.
- Apply it mechanically to a list of instruments, including ones you have no view on.
- Look at every instance it produces, not the ones you remember. The memorable ones are memorable because they worked.
The rest of the family is one idea
The stochastic oscillator locates the close within the high-low range of the last N periods. The commodity channel index measures the distance of a typical price from its own moving average in units of mean deviation. Williams percent range is the stochastic subtracted from a constant. The moving average convergence divergence indicator is one exponential average minus another, with a third average of that difference drawn beside it.
They differ in their arithmetic and they agree in their input. Every one is computed from the price series and nothing else. Stacking three of them below a chart does not produce three opinions; it produces one opinion drawn three ways, and the visual effect of three lines agreeing is entirely manufactured by the fact that they were fed the same data. That is the subject of the next lesson and it is the single most valuable idea in this track.
The stochastic deserves one specific note because it is often presented as different in kind. It uses the high and the low as well as the close, so it does read slightly more of each bar than the relative strength index does. That is a genuine difference and a small one. It is still price, still bounded by construction, and still subject to every caution in this lesson.
What an oscillator is honestly good for
There is a legitimate use and it is narrower than the popular one. An oscillator is a compact summary of how one-sided the recent sequence of closes has been, on a scale that is comparable across time within a single instrument and configuration. Used that way it is a normaliser, not a signal, and it answers a descriptive question: is the recent balance of moves unusual for this instrument.
That has two practical applications. It can define a state, in the sense used in the previous lesson, so that history can be partitioned and both halves examined. And it can be used as a filter on something else, where the something else is the actual idea and the oscillator only restricts when the idea applies.
What it cannot do is originate a decision. A reading is not a reason. If you cannot state what you would be doing without the oscillator, adding the oscillator has not given you a plan; it has given you a number to point at afterwards.
A test for whether it is earning its space
Remove it for a month. Keep taking the same decisions using whatever else you rely on, and record the cases where you believe the oscillator would have changed your mind. At the end of the month you will have a short list of concrete instances rather than a general feeling, and the list is usually much shorter than expected. If the list is empty, the panel was decoration and the space is better spent on something with a different input.
This test is not specific to oscillators and it appears again at the end of this track in a more formal shape. It is worth doing here first because oscillators are the element most people would defend most strongly and can justify least specifically, which makes them the honest place to start.
Working it through
Take fourteen periods in which twelve closed up by an average of 0.80 and two closed down by an average of 0.30. The average gain across the window is 0.686 and the average loss is 0.043. The ratio is about 16.0, and mapped onto the scale that gives a reading near 94.
Now hold price completely flat for the next several periods. Every new period contributes a gain of zero and a loss of zero. As the old large gains leave the window, the average gain falls sharply while the average loss falls too. The index drifts down out of the extreme without price having declined by a single cent.
- Reading at the start. About 94, which most people would call deeply overbought.
- After several flat periods. The reading falls substantially. Price is unchanged. Anyone who sold on the extreme reading and expected a decline got the indicator move they predicted and none of the price move they wanted.
- Alternative path. Suppose instead price continues up at 0.20 per period, a quarter of its earlier pace. The average gain still falls as the large old gains roll out, so the index also declines here, while price is making new highs the entire time.
Both paths produce a falling oscillator. In one, price is flat. In the other, price is rising. Neither is a decline. The index fell because the composition of its window changed, which is the only thing it can ever report.
The reading to take is that a move in a bounded indicator is a statement about the indicator's window, and translating it into a statement about price requires an argument that the indicator itself does not supply.
Where this goes wrong in practice
- Assuming a bounded indicator implies a mean-reverting price. The bound is a property of the formula and applies to the indicator alone.
- Acting on a threshold nobody derived. The conventional levels are inherited defaults, not values established for your instrument or timeframe.
- Treating a pinned reading as an extreme condition. Sustained moves keep an oscillator near a bound for long stretches, which is ordinary behaviour.
- Comparing readings across lookbacks or timeframes. The same number on two configurations is two unrelated statements.
- Using divergence without a written definition. Without one, the set of divergences you find is a function of choices made after looking.
- Stacking several oscillators and calling their agreement confirmation. They share one input, so agreement is guaranteed by construction.
- Letting the indicator originate the decision. If there is no plan without it, the reading is a justification rather than a reason.
- Forgetting the window composition effect. A reading can fall while price rises, purely because old observations left the average.
What to do with this
- Measure the distribution of readings for your instrument at your lookback and timeframe before using any threshold, and set thresholds from that distribution rather than from convention.
- Fix lookback and timeframe in advance, and never compare a reading from one configuration against a reading from another.
- Write down a mechanical definition of divergence before using it, or stop describing it as a rule.
- Demote the oscillator to a filter or a state definition. Ask what you would do without it; if the answer is nothing, you do not yet have an idea.
- Watch one flat sequence go by with the indicator on screen, so the window composition effect becomes something you have seen rather than something you have read.
- Count the configurations you examined before quoting any result from an oscillator rule, and report that count with the result.
Examples and common mistakes
Worked example
| Stage | Average gain | Average loss | Reading | What price did |
|---|---|---|---|---|
| End of the 14-period window | 0.686 | 0.043 | about 94 | twelve up periods, two down |
| Several flat periods later | falls sharply | falls | drifts well below 90 | unchanged, not one cent lower |
| Alternative: slow continued rise | falls as old gains leave | near zero | also declines | made new highs throughout |
Both continuations produce a falling oscillator and neither produces a decline. In one, price is flat; in the other, price is rising. The reading fell because the composition of the averaging window changed, which is the only thing the construction can ever report. Translating a move in a bounded indicator into a statement about price requires an argument the indicator does not supply.
How this goes wrong in practice
- Assuming that because the indicator is bounded, the price must mean revert
- Acting on conventional thresholds that were never derived for your instrument or timeframe
- Treating a reading pinned near a bound as an extreme rather than as ordinary trending behaviour
- Comparing a reading from one lookback or timeframe against a reading from another
- Using divergence without a definition precise enough to apply mechanically
- Stacking several oscillators and calling their agreement confirmation when they share one input
- Letting a reading originate a decision that has no rationale without it
- Overlooking that a smoothed recursive average keeps a trace of moves outside the nominal lookback
Checklist
- The measured tenth and ninetieth percentile readings for this instrument at this configuration
- Lookback and timeframe fixed in advance and never mixed
- A written, mechanical definition of divergence, or an admission that it is a judgement
- Whether the oscillator filters an idea or is being asked to supply one
- The number of configurations examined before any result was quoted
- A recomputation schedule for percentile thresholds, set in advance
Knowledge check
Exercise
Take one instrument and one oscillator configuration you already use. Pull a year of readings, sort them, and write down the values at the tenth and ninetieth percentiles. Compare those two numbers against the conventional thresholds drawn on your chart and record the difference. Then find the longest stretch in that year during which the reading stayed above your measured ninetieth percentile, and note what price did across that stretch. Finish by writing one sentence describing what you would have done during that stretch using the conventional threshold.
Glossary, tools and sources
Glossary
- Relative strength index
- A bounded indicator formed from the ratio of smoothed average gains to smoothed average losses over a lookback, mapped onto a fixed 0 to 100 scale.
- Bounded transform
- Any mapping of an unbounded series onto a fixed range. It guarantees the indicator returns from its extremes and says nothing about the underlying series.
- Overbought and oversold
- Conventional labels for readings past chosen thresholds. They describe an arithmetic condition on recent closes, not a valuation or a crowding measurement.
- Divergence
- Price making a new extreme while the oscillator does not. Requires a written definition of all four reference points before it can be tested.
- Window composition effect
- A change in an indicator caused by old observations leaving its averaging window rather than by any move in price.
- Percentile threshold
- A level taken from the measured distribution of readings for one instrument at one configuration, rather than inherited from convention.
Sources
- Foundations of Technical Analysis: Computational Algorithms, Statistical Inference, and Empirical Implementation (Working Paper 7613)(opens in a new tab)
National Bureau of Economic Research. Retrieved 2026-08-31.
- Random Walks in Stock Market Prices(opens in a new tab)
Financial Analysts Journal, CFA Institute. Retrieved 2026-08-31.
Risk notice
This lesson is general educational information about how bounded oscillators are constructed and what they describe. It is not investment advice, not a recommendation to buy or sell any security, and not tailored to your circumstances. Every value shown is constructed for teaching and describes no real instrument, account or result. An oscillator reading does not indicate the direction of future prices, and an extreme reading is not a reason on its own to enter or exit a position. Trading involves risk of loss, including loss of the full amount invested.
Press when you have finished reading. Nothing is recorded until you do.