Home/Investing/50/200 EMA trend filter
Trend filter

The 50/200 EMA trend filter: when to add, hold or step aside

RB Trading 4 min read

Compare three things on a daily or weekly chart: the price, the 50-period EMA and the 200-period EMA. Price above a rising 50 EMA, which is above the 200 EMA, is an uptrend, and adds are allowed. Price below the 50 EMA but above the 200 EMA is a pullback: hold, and only add at levels you planned. When the 50 EMA falls below the 200 EMA, stop adding and reread the thesis. That is the whole filter.

Last checked: 8 October 2026. Education only, not personal investment advice.

A trend filter does not tell you what to buy. It tells you when your buying is swimming with the current and when it is swimming against it. For a long-term investor that alone is worth a lot, because the largest losses in a portfolio usually come from adding to a stock all the way down a falling trend.

Why exponential, not simple

We use exponential moving averages throughout. An EMA gives more weight to recent prices, so it turns sooner when a trend changes. A simple average treats a price from 200 days ago the same as yesterday’s, which is why it lags at exactly the moments you most want to know.

The formula is short:

k     = 2 / (N + 1)
EMA   = price × k + previous EMA × (1 − k)
Worked example

For the 50 EMA, k = 2 ÷ 51 = 0.0392. For the 200 EMA, k = 2 ÷ 201 = 0.00995.

Yesterday both EMAs were at $100.00. Today the stock closes at $108.00, an 8% jump.

New 50 EMA: 108 × 0.0392 + 100 × 0.9608 = $100.31. New 200 EMA: 108 × 0.00995 + 100 × 0.99005 = $100.08.

One big day barely moves either line, and moves the 200 about a quarter as much as the 50. That is what you want from a filter: it ignores a single headline and responds to weeks of behaviour.

The three states, with numbers

StateExampleWhat you do
UptrendPrice $142, 50 EMA $135, 200 EMA $120Hold. New money and planned adds allowed.
PullbackPrice $128, 50 EMA $133, 200 EMA $124Hold. Add only at levels written down in advance.
DowntrendPrice $112, 50 EMA $118, 200 EMA $121No new buys. Reread the thesis. Check your invalidation level.

The downtrend row is not an automatic sell. If your thesis is intact and your invalidation level has not been hit, you can keep holding. What changes is that you stop putting new money in until the trend repairs.

A second check: how stretched is it?

Distance from the 200 EMA tells you how far the price has run ahead of its long-term trend. Work it out as (price ÷ 200 EMA − 1) × 100.

Worked example

Price $168, 200 EMA $120: (168 ÷ 120 − 1) × 100 = 40% above the trend.

The trend filter says "uptrend, adds allowed". The stretch says an add here buys at a price that would need to fall 28.6% just to touch the 200 EMA. For a position sized off a stop near the 200 EMA, that is a very wide stop and a very small position. Many investors set a personal ceiling, for example no new adds when price is more than 25% above the 200 EMA. Pick a number and write it down. Then record in your journal whether waiting helped.

Daily or weekly chart?

For holdings you plan to keep for years, the weekly chart is calmer: the 50-week and 200-week EMAs cover roughly one and four years of history. For positions you expect to hold for a few months, the daily chart reacts faster. Choose one per holding and note it in the journal entry, because mixing them is how a filter quietly becomes whatever you want it to say that day.

What the filter will not do

Track the filter in your journal

The only way to know whether the filter helps you is to record the trend state at every buy and compare the results later.

Equity curve in the RB Trading journal with drawdown from the peak plotted underneath
The equity curve, with drawdown from the running peak plotted underneath (demo account).

Trend filter questions

Why use the 50 and 200 EMA instead of the simple moving average?

An EMA weights recent prices more heavily, so it reacts sooner when a trend turns. A simple average gives a price from months ago the same weight as yesterday, so it lags more.

Should I sell when the 50 EMA crosses below the 200 EMA?

Not automatically. Treat it as a signal to stop adding and to reread your thesis. Selling should come from your written invalidation level or a broken thesis.

Daily or weekly EMAs for long-term investing?

Weekly for holdings you plan to keep for years, daily for positions you expect to hold for months. Pick one per holding and write it in the journal entry.

RB Trading Pro Journal

Track it in a journal that does the maths

Log the trade once. R, fees and the weighted average entry are worked out for you.

Start free, no card