Three lines on every default chart. Here is the one formula behind them, and why the golden cross always arrives after the move.
Three exponential moving averages sit on the default template of almost every charting platform, and the numbers have become shorthand: 20 for timing, 50 for the trend, 200 for the big picture. The shorthand is roughly right, and almost nobody explains why. This guide does: the one formula behind all three lines, what each number measures in time, what the golden cross and the death cross really describe, and where these lines mislead.
1. One Formula, Three Speeds
An exponential moving average is a weighted average of closing prices where the most recent close gets the largest weight and each older close gets a little less. It is written as a recursion:
EMA(today) = Close(today) × k + EMA(yesterday) × (1 − k), where k = 2 ÷ (N + 1).
N is the period. The rest follows from that one number.
- N = 20 → k = 2 ÷ 21 = 9.5% of the line's value comes from today's close.
- N = 50 → k = 2 ÷ 51 = 3.9%.
- N = 200 → k = 2 ÷ 201 = 1.0%.
A 200-period EMA that moves only 1% of the way toward each new close is, by construction, a slow object. It is not a smoothed trend line that "knows" more than the 20; it is the same information with a longer memory. That difference in memory is the whole story.
On a daily chart the three periods map to rough calendar spans: 20 trading days is about four weeks, 50 is about ten weeks, and 200 is about nine and a half months. On a 5-minute chart the same settings measure 100 minutes, 4 hours and 16 hours.
2. The Math: Seeding, Warm-Up, and Why Two Platforms Disagree
The recursion needs a starting value, and that is where platforms quietly diverge. Some seed the first EMA with the simple average of the first N closes; others use the first close. For the first few dozen bars the two lines are visibly different, then they converge — but the convergence takes longer than most people assume.
The seed's remaining weight after n bars is (1 − k)n. Substitute k = 2 ÷ (N + 1) and evaluate at n = N, and something neat appears:
- After one full period, about 13.5% of the line still comes from the seed (for any N).
- After two periods, about 1.8%.
- After three periods, about 0.25%.
So a 200 EMA on an instrument with 220 daily bars of history is not a 200 EMA yet; roughly a seventh of its value is a number the platform invented. On a newly listed stock or a young contract, a 200 line can look authoritative while still carrying several percent of an arbitrary start. Practically: before trusting a long EMA, check that the chart holds at least three times the period in bars.
A worked example with N = 5 (k = 2 ÷ 6 = 0.333) shows the mechanics. Seed with the average of the first five closes — 100, 102, 101, 103, 102 — which is 101.60. The next close is 104:
EMA = 104 × 0.333 + 101.60 × 0.667 = 34.67 + 67.73 = 102.40
Every later bar repeats the same two multiplications. There is no lookback window that drops old data; the old data fades geometrically. That is why two sites showing "the 200 EMA" can print different numbers for the same symbol on the same day: different seed, different warm-up length, different price source, and — for 24-hour markets — a different daily boundary.
3. EMA vs SMA: What the Extra Weight Buys and What It Costs
A simple moving average of the same length gives every close equal weight. An EMA gives recent closes more, so it turns first.
- In a clean trend, the EMA sits above the SMA when price is rising and below it when price is falling; the gap is a quick read on how much of the recent move is fresh.
- After a sharp reversal, the EMA bends toward the new direction sooner. That is the benefit, and it is real.
- The cost is symmetric: in a range, the same sensitivity produces more crossings, and each crossing is a moment when the line says "something changed" while nothing did.
There is no version of a moving average that avoids this trade. Choose the length for the holding period you actually trade and the responsiveness follows; an EMA does not remove the lag, it redistributes it.
4. The 200 EMA as a Regime Filter, and Its Three Blind Spots
Most of the 200 EMA's value is descriptive: it marks the long-term average price, and its slope says which way that average is drifting. Three readings follow:
- Price above a rising 200 — the long-term average is climbing and price is above it. Trends in this state tend to persist, which is why many systems use it as a filter, not a signal.
- Price below a falling 200 — the mirror image.
- Flat 200 with price crossing it repeatedly — the average is not going anywhere and price is oscillating around it. This is the state in which the filter is worse than useless.
The blind spots matter as much as the readings.
First, it is slow to admit a turn. A 200 EMA needs hundreds of bars to change slope, so it keeps pointing up well after a top and keeps pointing down well after a bottom. It describes the regime that was, with a delay measured in months.
Second, distance is not direction. Price can be 20% above the 200 in a strong advance and still be in an uptrend; price can be just above it in a fragile bounce. The line says nothing about whether an entry here is late or early.
Third, the model breaks on short histories and on instruments that gap. Newly listed names, thin instruments and 24-hour markets with violent weekend moves cross the 200 constantly. With 13.5% of the line still seeded from the first bars, the "200" may not be a 200 at all.
One thing the line never tells you: it is not a support level. A prior low is a price where orders were left behind; a moving average is only an average of past closes. Nothing rests on it because of the line, and price passes through it routinely. The touches that look like bounces are places where buyers were already acting near that number.
5. Golden Cross and Death Cross: Definition, Lag, and Three Ways They Disappoint
A golden cross is a shorter moving average crossing above a longer one — most commonly the 50 crossing above the 200 on a daily chart. A death cross is the same event in reverse. The names come from financial media, not from a formal definition, and that is the first source of trouble.
Lag is structural, not a flaw to fix. The 200 EMA is a 1%-per-bar object. By the time the 50 has climbed above it, the average itself has usually turned, which means the price move that caused the turn is already months old. The cross confirms; it cannot lead.
Three ways the cross disappoints:
- It arrives after the move. In a fast recovery, price can be far above the 200 before the 50 gets there. The cross then marks a price already extended from the line it is measuring against.
- It whipsaws when the 200 is flat. Two crossings in a few weeks is common around a sideways 200, and each one looks like a regime change while the regime is unchanged.
- Definitions differ. EMA versus SMA, 50/200 versus 20/50, daily versus weekly, close-based versus intraday-updated: each combination prints a different date. Two outlets can announce "the golden cross" on different days for the same index and both be technically right.
None of this makes the cross useless: it is a compact way to describe that medium-term momentum has overtaken long-term momentum, not a reason to act by itself.
6. Reading the Three Together
A workable order, from slow to fast, so the fast line never overrules the slow one:
- 200 — regime. Above or below, and which way is it sloping. If it is flat and price is on it, expect the filter to flip and treat every cross with suspicion.
- 50 — value area. In an established trend, price often returns to the 50 before continuing. The 50 upside-down (price below a falling 50) is the same idea in a downtrend.
- 20 — timing. The 20 turns first and is therefore the noisiest. Use it to time what the 200 and 50 already permitted, not to decide direction alone.
- Alignment. 20 above 50 above 200, all rising, is the cleanest state; the mirror image is the cleanest short-side state; anything else is a transition.
- Compression. When all three converge into a narrow band, the trend is undecided. That is a moment to reduce conviction and wait, not to find a reason to trade.
Write the settings down — period, price source, timeframe — and test any combination on the instrument you actually trade. Stacking five moving averages on one chart does not add information.
FAQ
Which EMA period is best: 20, 50 or 200?
None of them is "best"; they answer different questions. The 20 measures the last month of momentum, the 50 the last couple of months, the 200 the last several quarters. Pick by holding period, then check that your timeframe makes the period mean what you think: a 200 EMA on a 5-minute chart covers about two and a half trading days, not ten months.
Is a golden cross a buy signal?
It is a description, not a signal. The cross says medium-term momentum has overtaken long-term momentum, and by construction it prints after the move that caused it. Because the definition varies, different sources can print different dates for the same market.
Why does the 200 EMA look different on two platforms?
Four usual causes: the price source (close, typical price, or midpoint), the seed value and warm-up length at the start of the data series, the session boundary for instruments that trade around the clock, and whether the chart includes extended hours. Compare two charts only when all four match.
Further Reading
Comments
Post a Comment