Level 5 · Lesson 3
The Anatomy of
an Oscillator
Open the hood. See inside the engine. Once you understand HOW oscillators calculate their values, you'll never blindly trust a number again.
First — Why This Matters
Would You Fly a Plane Without Understanding the Instruments?
Most traders use RSI, MACD, and Stochastic without the faintest idea of what the formula actually computes. They see a line, it goes up, they think “buy.” It goes down, they think “sell.” That's like reading a cockpit altimeter and thinking the number is the temperature.
When you understand the engine — what goes IN, what calculation happens, and what comes OUT — you stop being a passenger. You become the engineer. You know exactly what RSI at 72 means, exactly what MACD at −3.5 means, and exactly why Stochastic at 85 is not a sell signal in a trend.
This lesson opens the hood on every major oscillator. No more black boxes. No more blind faith.
🔎 REAL SCENARIO
A trading mentor surveyed 200 of his students with one question: “In one sentence, what does RSI calculate?” Only 11 out of 200 (5.5%) could answer correctly. The other 189 said variations of “whether price is overbought or oversold.” Those 189 were using a tool they didn't understand — and their results showed it.
01 — Inside the RSI Engine
Watch RSI Calculate in Real Time
Below you can see 14 candle changes (green = gain, red = loss). The formula adds up the average gains, divides by average losses, and produces a single number between 0 and 100. Watch the values shift as the data cycles.
💡 What You're Seeing
Every RSI value you see on your chart is the result of this exact calculation running on the last 14 candles. When a big green candle enters the window, RSI jumps up. When a big red candle enters, RSI drops. It's pure arithmetic — no magic, no prediction.
02 — Inside the MACD Engine
Watch MACD Calculate in Real Time
MACD is simply the fast EMA (blue, 12-period) minus the slow EMA (amber, 26-period). When the fast pulls above the slow, MACD is positive. The green/red histogram shows this gap changing over time.
💡 What You're Seeing
The histogram is not a separate indicator — it's the visual representation of how fast the two averages are converging or diverging. Growing histogram = momentum accelerating. Shrinking histogram = momentum decelerating. Zero crossing = the averages have met.
03 — Every Oscillator Decoded
Five Oscillators, Fully Transparent
Tap each oscillator to see the formula, what it actually measures in plain English, and the trap that catches most retail traders.
04 — Build Your Own RSI
Interactive RSI Calculator
Drag the gain and loss sliders to see how RSI changes. This is the exact maths that runs every time your chart calculates RSI. Over 14 periods, with 7 gains and 7 losses (simplified):
Gains (7 up-candles)
+1.2
+0.8
+1.5
+0.3
+0.9
+1.1
+0.6
Losses (7 down-candles)
−0.7
−1.0
−0.4
−0.5
−0.8
−0.3
−0.6
Avg Gain
0.457
Avg Loss
0.307
RS
1.488
RSI = 100 − (100 / (1 + 1.488))
59.8
Neutral zone
05 — The Universal Pattern
Every Oscillator Follows This Blueprint
Despite looking different on your chart, every oscillator follows the same three-step process:
Step 1: Gather Past Data
Take N candles of historical price data (closes, highs, lows). The lookback period (N) is the only input you control. RSI uses 14 candles. MACD uses 12 and 26. Stochastic uses 14.
Step 2: Run the Formula
Apply a mathematical formula to that data. RSI divides gains by losses. MACD subtracts slow from fast. Stochastic maps position within range. The formula is the “personality” of the oscillator — it determines WHAT aspect of price it measures.
Step 3: Output a Bounded Value
Produce a number that oscillates between boundaries (0–100 for RSI/Stochastic, around zero for MACD/CCI). This bounded output is what you see on your chart. It updates every candle as new data enters and old data exits the lookback window.
💡 Why This Matters
Once you see this pattern, every new oscillator you encounter becomes instantly understandable. Just ask: “What data does it use? What formula does it apply? What do the output levels mean?” Three questions. Any oscillator. Instant transparency.
06 — Settings Demystified
What Changing the Period Actually Does
When you change RSI from 14 to 7, you're telling the formula: “Only look at the last 7 candles instead of 14.” Here is the exact effect:
Short (5–9)
Each candle = 11–20% of the total. One big candle moves RSI dramatically. Extremely noisy.
Default (14)
Each candle = 7% of the total. Balanced between responsiveness and stability. Industry standard for a reason.
Long (21–50)
Each candle = 2–5% of the total. Very smooth. Barely reacts to individual candles. Shows only the broad trend.
There is no “best” setting. There is only the trade-off: more speed = more noise. More smoothness = more lag. Pick based on YOUR strategy, not a YouTube video.
07 — Common Mistakes
What to Avoid
08 — Cheat Sheet
One-Line Summary for Every Oscillator
Memorise these. When you see the value on your chart, this is exactly what it means:
RSI 72 = “Over the last 14 candles, gains have been ~2.5× larger than losses.”
MACD +5.2 = “The 12 EMA is currently 5.2 points above the 26 EMA.”
Stoch 88 = “The current close is 88% of the way between the recent low and high.”
CCI +145 = “Price is 1.45 standard deviations above its typical price average.”
%R −15 = “The close is 85% of the way up the recent range (same as Stoch 85).”
09 — Test Your Understanding
Oscillator Anatomy Game
5 scenarios. Do you truly know what the numbers mean?
RSI reads 72. A trader says: “RSI has calculated that price is overvalued and must decline.” What is wrong with this statement?
10 — Knowledge Check
Final Quiz — 8 Questions
Question 1 of 8
What does RSI actually measure?
Question 2 of 8
When MACD crosses above zero, what has happened mathematically?
Question 3 of 8
What does Stochastic at 90 actually tell you?
Question 4 of 8
Why does changing RSI from 14 to 7 periods make it more volatile?
Question 5 of 8
The MACD histogram is the difference between:
Question 6 of 8
Which pair of oscillators is the MOST redundant (measuring the same thing)?
Question 7 of 8
All oscillators share one fundamental characteristic:
Question 8 of 8
A trader says “the MACD histogram PREDICTED the reversal because it was shrinking before price turned.” What actually happened?