Oscillators: RSI, Stochastic and MACD
By Chad Smith, Director of Research & Analysis · Updated
On this page
Moving averages show direction. Oscillators show momentum: how strongly price is moving and whether that strength is building or fading. This lesson covers the three most widely used oscillators, the RSI, the Stochastic oscillator and the MACD, and the most common mistakes in reading them.
What an oscillator is
An oscillator is an indicator plotted in a separate panel below the chart. Most move between fixed limits, such as 0 and 100, or swing above and below a center line. They are built from recent price changes, so they show whether recent moves have been strong or weak.
Momentum often changes before price direction does. A rally that keeps rising but with smaller and smaller gains shows fading momentum. Oscillators make that easier to see.
The RSI
The Relative Strength Index compares the size of recent up moves with recent down moves.
RS = average gain over N periods ÷ average loss over N periods
RSI = 100 − (100 ÷ (1 + RS))
The default period is 14. The RSI moves between 0 and 100.
- Readings above 70 are traditionally called overbought.
- Readings below 30 are traditionally called oversold.
- The 50 line separates bullish from bearish momentum.
Worked example (illustrative numbers): over 14 periods, the average gain is 12 pips and the average loss is 6 pips. RS is 12 ÷ 6 = 2. RSI is 100 − (100 ÷ 3) = about 66.7. Momentum is bullish but not yet in the overbought zone.
A related tool, the Stochastic RSI, applies the Stochastic formula to the RSI itself and moves much faster.
The Stochastic oscillator
The Stochastic shows where the latest close sits within the high-low range of a recent period.
%K = (close − lowest low over N) ÷ (highest high over N − lowest low over N) × 100
%D = 3-period average of %K
Common settings are 14, 3, 3. Readings above 80 are called overbought; below 20, oversold. Crossovers of %K and %D are often used as signals.
Worked example (illustrative numbers): over 14 periods the high is 1.1100 and the low is 1.1000. The close is 1.1080. %K is (1.1080 − 1.1000) ÷ (1.1100 − 1.1000) × 100 = 80. The close is near the top of the recent range.
The Stochastic reacts quickly, which suits ranges and short-term timing, but produces many signals in trending markets.
The MACD
The Moving Average Convergence Divergence uses moving averages to measure momentum.
MACD line = 12-period EMA − 26-period EMA
Signal line = 9-period EMA of the MACD line
Histogram = MACD line − signal line
How to read it:
- The MACD line above zero means the short EMA is above the long EMA, a bullish sign. Below zero is bearish.
- The MACD line crossing above its signal line is a bullish crossover; crossing below is bearish.
- A growing histogram means momentum is increasing; a shrinking one means it is fading.
Because the MACD is built from moving averages, it lags. It is better for confirming trend and momentum than for exact timing.
Overbought does not mean "sell"
The most common mistake with oscillators is treating overbought as a sell signal and oversold as a buy signal. In a strong uptrend, the RSI can stay above 70 for a long time while price keeps rising. Selling every time it crosses 70 means fighting the trend.
A better reading: overbought means recent momentum has been strong. In a range, that strength may fade at resistance. In a trend, it often confirms the trend is healthy.
Using oscillators with the trend
A more reliable approach is to use the oscillator to time entries in the direction of the trend you identified from structure and moving averages.
- In an uptrend, look for the oscillator to dip toward oversold or toward the 50 line during a pullback, then turn up. That suggests the pullback is ending.
- In a downtrend, look for it to rise toward overbought or toward 50 during a rally, then turn down.
Worked example (illustrative numbers): EUR/USD is in an uptrend on the 4-hour chart. It pulls back to the 50-period EMA and the RSI falls from 68 to 42. The next candle closes higher and the RSI turns up to 48. A trader buys, with a stop below the pullback low. The trend gave the direction; the RSI helped with the timing.
Divergence
Divergence happens when price and the oscillator disagree.
- Bearish divergence: price makes a higher high, but the oscillator makes a lower high. Upward momentum is fading.
- Bullish divergence: price makes a lower low, but the oscillator makes a higher low. Downward momentum is fading.
Divergence is a warning, not a trigger. Trends can show divergence several times before reversing, or not reverse at all. Wait for price itself to confirm, such as a break of structure from the trends lesson.
Avoid stacking similar indicators
The RSI, Stochastic and MACD all measure momentum from the same prices. Showing all three does not give three independent opinions; it gives one opinion three times. Pick one oscillator, learn it well and combine it with tools that measure something different, such as levels, trend and the volatility tools in the next lesson.
Key takeaways
- Oscillators measure momentum and often show changes in strength before price turns.
- The RSI compares gains with losses; the Stochastic places the close within a recent range; the MACD compares two EMAs.
- Overbought and oversold describe momentum, not automatic reversal points.
- Oscillators work best for timing entries in the direction of the trend.
- Divergence is a warning that needs price confirmation, and similar oscillators should not be stacked.
Check your understanding
1. What does an RSI reading above 70 usually indicate?
- A. Price must fall immediately
- B. Strong recent upward momentum, sometimes called overbought
- C. The market is closed
- D. Volume is very low
Show answer
B. Strong recent upward momentum, sometimes called overbought
2. Price makes a higher high but the RSI makes a lower high. What is this called?
- A. Bullish crossover
- B. Bearish divergence
- C. A breakout
- D. Convergence
Show answer
B. Bearish divergence
3. The MACD line is the difference between which two values?
- A. Two exponential moving averages
- B. The high and the low
- C. The bid and the ask
- D. Two RSI readings
Show answer
A. Two exponential moving averages
Brokers with strong charting to practice on
Put this into practice on a demo account first, with no money at risk.
- Featured broker
Pepperstone4.7 / 5Visit
IC Markets4.9 / 5Visit
GO Markets4.8 / 5Visit