FRENESDE

Long-term trend filter

A trend filter is a condition that only allows trades in the direction of the underlying trend. The most widely used reference is the daily 200 SMA, about ten months of prices.
Calculation: compare the close with the 200 SMA, sometimes adding its slope. Close 145 and 200 SMA at 150 → the filter is “closed”: no buying. Close 155 → filter “open”: your strategy’s buy signals are allowed.
Reading it: the filter splits the chart into two regimes. Above the long average, you look for buys; below, you stay out (or only take shorts, if the strategy allows). Most heavy losses for buyers happen in the second regime.
In a trading plan, the rule reads “signal AND filter”: the filter creates no trades, it removes some. Plan for the warm-up history: with a daily 200 SMA, no decision is possible before about 200 sessions of data.
Pitfalls: the filter reacts late to recoveries; around the average, price can open and close it several times (a 1 to 2% margin helps); and testing dozens of periods to keep the best one leads to overfitting. Its real benefit is often a smaller drawdown, not a higher return.

Examples

Key terms

Trend filter
Condition that only allows trades in the underlying direction
SMA 200
Average of the last 200 closes, a long-term reference
Counter-trend
Trade taken against the underlying trend
Warm-up period
Bars needed before the indicators are computed
Take the mission on Doji Academy

← Back to the index