Research method
Trend filter: trading only with the larger trend
A trend filter is a rule that decides which trades are allowed, not when to enter: longs only above a long average, shorts only below it, or nothing while the market has no direction. 184 readings in the TradersWeek archive use one; in 33 it is the main subject.
- Output
- Research filter
- Input
- Usually closing prices; some filters also use high, low and volume
- Horizon
- Slower than the entry it guards; long averages of 50 to 200 bars are typical
- Best use
- Limiting a short-term entry rule to the side of a slower, already established trend
- A trend filter does not generate trades. It switches another rule on or off, or limits it to one side, according to a slower reading of trend.
- Common filters are price against a long moving average, the slope of that average, an ADX threshold, and the direction of a higher timeframe.
- A filter is slower than the entry it guards by design, so it confirms a new trend late and can block the first and often largest part of a move.
- A filter added after looking at a backtest, because it happens to remove the losing trades, is a fitted parameter, not a rule.
- In the archive trend filters sit most often beside moving averages (52 readings), exponential smoothing (19), dominant-cycle methods (17), RSI (16) and ADX (14).
How the method is built, and where it has been read
Depends on
Often reviewed together
ATR position sizing4 readings
Often reviewed together
Momentum strategy6 readings
Often reviewed together
Relative Strength Index7 readings
Often reviewed together
Moving-average crossover7 readings
Often reviewed together
Mechanical trading system8 readings
Often reviewed together
Dominant cycle detection8 readings
Often reviewed together
Rule-based entry9 readings
Often reviewed together
Average Directional Index9 readings
Read in the archive24 of 184 readings
A filter is not a signal
An entry signal answers when: the RSI drops below 30, price breaks a high, two averages cross. A trend filter answers whether: is this kind of trade allowed at all right now, and on which side? It is evaluated on every bar alongside the entry, and the trade is taken only when both agree. A filter on its own never opens a position, so it cannot be judged by how often it is "right".
The classic pairing is a fast entry under a slow filter. Buying an oversold oscillator reading only while price is above its 200-day average turns a generic mean-reversion rule into "buy dips in an uptrend". A breakout rule taken only when ADX is high skips most breakouts from flat ranges.
Common filter types
- Price against a long average. Longs only above, shorts only below. The simplest and the most common; the length of the average sets how slow the filter is.
- Slope of an average. The average must be rising for longs and falling for shorts, compared with its own value a few bars earlier. It reacts to direction rather than to distance.
- Trend strength. An ADX threshold, a random walk index or a similar measure says whether there is a trend at all, but needs a second rule for direction.
- Higher timeframe. The daily trend decides which side an hourly entry may take. A longer average on the same chart is a rough substitute.
Two pitfalls
Lag cuts the best part of a move. A filter has to be slower than the entry, or it adds nothing. At a turn that means it keeps blocking trades in the new direction until the move is well under way, and keeps allowing trades in the old direction while it is already over. The first leg of a new trend is exactly the part it removes.
A filter chosen after seeing the results. It is easy to look at a losing backtest, notice that the losses cluster below some average, and add that average as a filter. The new curve looks better because the filter was fitted to those losses. Decide the filter and its length before the test, or test it on data that was not used to choose it.
Parameter set
The choices that define a trend filter
- measure
- Trend measure
What decides the trend: price against an average, the slope of an average, ADX, or a higher timeframe.
Default: Close vs 200-bar averageMeasures disagree at turns; switching between them after a test is fitting. - length
- Filter length
Bars in the average or lookback behind the filter.
Default: 200A shorter filter flips more often and moves closer to the entry it is meant to guard. - neutralZone
- Neutral zone
A band around the threshold where neither side is allowed, or both are.
Default: NoneWithout one, price hugging the average flips the filter bar after bar. - scope
- What it gates
Whether the filter blocks entries only, or also forces exits when it flips.
Default: Entries onlyAn exit on a filter flip adds a second exit rule that has to be tested in its own right.
What 184 readings in the archive do with trend filters
The TradersWeek research archive links trend filters to 184 readings: 11 in the 1980s, 52 in the 1990s, 47 in the 2000s, 58 in the 2010s and 16 in the 2020s. In 33 of them the filter is the main subject.
The most frequent companions are moving averages (52 readings), exponential smoothing (19), dominant-cycle methods (17), RSI (16), ADX (14), momentum strategies (12), rule-based entries (12) and trend-following systems (11). The cycle and smoothing readings use "trend filter" partly in its signal-processing sense: a smoother that separates the slow trend from shorter cycles.
The readings where the filter is the subject return to four themes:
- A long average as permission. Readings from 2005 to 2020 let a 50-day, 200-day or 271-period average permit only longs above it and shorts below it, while an RSI or stochastic times the entry; in one case the same average also forces the exit.
- Other ways to measure trend. Readings from 1992 to 2018 build filters from a random walk index, a damping ratio of ranges, a confirmed zigzag, a rank correlation of price with time, a repeated-median slope that one bad price cannot move, and a stiffness score that counts how often closes hold above an average.
- Keeping the jobs separate. Readings from 2001 and 2018 insist that the smoother, the trend filter and the entry trigger are specified and tested as separate parts, and a 1994 reading rejects any filter whose output changes when only the units of price change.
- A filter is not complete on its own. Readings from 2002 and 2019 treat a filter as testable only once its threshold, sampling interval and, in a portfolio, position sizing and capacity are written down.
Where it fits in a workflow
Choose the entry rule first and test it without a filter. Then pick one filter, its length and what it gates, based on the idea you want to express rather than on the test, and run the same test again. Compare trade counts as well as results: a filter that keeps a fifth of the trades needs far more history before its effect means anything.
On the TradersWeek chart
The signal scanner, part of the Pro plan at $30/month, has a Regime setting with three options: All (the default, no filter), Trend and Reversal. At each signal's own bar it classifies the market from a 14-bar ADX, the +DI and −DI lines and price against the 200-bar simple average: a bull trend needs ADX at 25 or above with +DI over −DI and price not below the average, a bear trend the mirror image; within 2% of the average counts as neither above nor below. Trend keeps only buy signals in a bull trend and sell signals in a bear trend and drops everything else; Reversal keeps the opposite, plus every signal in a range or transition. The built-in Trend Following and Reversal Hunter presets use these two modes.
In Strategy Builder, also Pro, any condition can be joined to an entry with AND, so a filter is written as a condition: close above SMA 200, or ADX 14 above 25. Presets do exactly this, such as RSI Reversal Long (RSI below 30 while close is above SMA 200) and Range Trader (stochastic extremes only while ADX is below 20). Conditions read indicators on the strategy's own timeframe; there is no condition that reads a higher timeframe, so a longer average is the available substitute.
