XXUANTIFYInvite a friend

Range Filtered Trend Signals Under the Microscope

Is the market trending, or just drifting sideways? AlgoAlpha's Range Filtered Trend Signals answers with colour: green or red bars when two separate trend filters agree, grey bars when they do not. We found a faithful, non-repainting script whose daily colours are calm, about nine switches a year, and that follows the long-term trend closely on daily charts. The colour says what kind of market you are in. It does not say where price goes next.

A candlestick path with a glowing smoothed line between two dotted bands, green candles breaking out above the upper band and a grey shaded stretch where candles drift inside the bands
Two filters, one verdict: coloured bars when they agree, a grey range when they do not.

Key takeaways

Calm on daily charts: about 9 colour switches a year on BTC and ETH, median run 14.5 and 20 bars

Follows the long-term trend: its colour matches the 200-day trend on about 88% of BTC daily bars

Grey is rare: only about 10% (BTC) to 13% (ETH) of daily bars are marked as ranging

No clear edge after its signals on any of the four charts

Scorecard

Faithful

Reproduced 1:1 with the original script on all four charts, plot for plot.

Repainting

None found: past colours and signals stay as they were drawn.

Calm

About 9 switches a year on BTC and ETH daily; median runs of 14.5 and 20 bars.

Edge

Not clear on any chart: after its signals price behaved much like after any bar.

What the author built

AlgoAlpha describes the script as a way to tell trending from ranging markets and to cut false signals. In their account, a Kalman filter smooths price, a Supertrend runs on that smoothed line, and a volatility-based range sets upper and lower boundaries: a break outside them confirms a trend, while price inside them reads as consolidation.

The code does that in three steps. First, it smooths the closing price with a simple Kalman filter, a recursive average that slowly updates its estimate as each new close arrives. Second, it runs a tight Supertrend (a trailing ATR line) on that smoothed line rather than on raw price; this sets the long-term direction. Third, it draws a band around the smoothed line, 1.2 times a 200-bar weighted average of each bar's high-low range. A close above the band flips the short-term trend up, a close below flips it down.

Bars turn green or red only when both views agree, and a small dot marks the bar where that agreement starts. When they disagree, bars turn grey and the band is shaded as a range. Alerts exist for each of these shifts.

What we measured

We measured the script with its author's default settings on BTC and ETH perpetuals, on daily and hourly charts. The daily history runs from September 2019 (BTC) and November 2019 (ETH) to October 2026; the hourly from January 2025 to October 2026.

Behaviour. On BTC daily the bar colour switched about 9 times a year, with a median run of 14.5 bars; only about 14% of runs were short. On ETH daily it was 8.9 switches a year with a median run of 20 bars. Green and red split the time nearly evenly (BTC: 46% green, 44% red; ETH: 47% green, 40% red), and grey filled the rest. The "trending" dot, where both filters start to agree, appeared about 4.5 times a year on each coin's daily chart. When a long-term bullish alert came, it was reversed by a short-term bearish one within three bars in about 3% of cases on BTC daily and never on ETH daily.

ETH daily chart with Range Filtered Trend Signals: bars turn red in May 2026 and green at the end of July 2026, with grey stretches in between
Look at how long each colour holds on ETH daily, and at the grey bars where the two filters disagree.

Reliability. Every plot matched the original script exactly on all four charts. We found no repainting and no look-ahead, and its lines are its own construction, not a classic indicator under a new name.

After its signals. We compared what price did 5 and 10 bars after each signal with what it did after any bar. On no chart was the gap clear. On the daily charts the samples are small (12 to 19 signals per type), so they settle nothing either way. On the hourly charts, with 87 to 147 signals per type, the results still sit within normal noise. The colour describes the market's state well; it is not a forecast.

Where it shines, and where it is quieter

Where it shines

On daily charts it is a steady trend map. When the 200-day trend was rising, BTC daily bars were green 88% of the time; when it was falling, only 13%. Overall its colour agreed with the 200-day trend on about 88% of BTC and 85% of ETH daily bars, against about 51% by chance. Colours hold for weeks, and reversals within three bars are rare.

Where it is quieter

On hourly charts the same rules switch colour about 266 (BTC) and 251 (ETH) times a year, and agreement with the long-term trend falls to about 53%, close to chance. Its signals also arrive after the turn: on BTC daily, the median short-term bearish alert came 9 bars after the swing high. That fits a trend filter, built to confirm rather than anticipate.

The bottom line

AlgoAlpha's Range Filtered Trend Signals does what a trend filter should do on a daily chart: it holds its colour, rarely flip-flops, follows the long-term trend closely, and draws exactly what the original script draws, without repainting. Use the colour as context, to know whether you are in a trend or a range, not as a timing signal. The grey state is the most original part, and the author could build on it: a quick reading of how long grey phases last before a trend resumes would help traders know when to wait.

For another calm trend line, read our look at the Evasive SuperTrend, or browse the newest reports on /latest/.

These measurements use the author's default settings on BTC and ETH, daily and hourly; your own settings or market may behave differently.

This article is education, not investment advice.

Every test here counts trading costs, runs on many markets and compares the result with just holding the same market. A result is a starting point, not a verdict. How we test

Newsletter

New tests, now and then.

Only for this newsletter; we send a mail to confirm first, and every mail has a link to stop. Privacy