XXUANTIFYInvite a friend

MACandles-LinearRegression Under the Microscope

Can a slow, smoothed view of price tell you when a sell-off has run its course? Trendoscope's MACandles-LinearRegression-Strategy tries exactly that. It buys when the momentum of smoothed candles stops falling, and only when a long-term trend filter agrees. We found a script that reproduces exactly, never repaints, and holds its states calmly. Its strongest result came on ETH hourly, where it finished ahead of buy-and-hold after costs. On the daily charts it trailed a market that simply went up.

Smoothed candlesticks of light above a histogram whose bars turn from red to orange as a straight regression line rises through them
The idea in one picture: momentum bars stop falling and turn, under candles smoothed into a calmer shape.

Key takeaways

Exact match with the original on all four charts, and no repainting

ETH hourly, 2025 to Oct 2026: +33.0% after 10 bp costs, against βˆ’27.6% for buy-and-hold (57 trades)

BTC daily, 2019 to Oct 2026: +526% after costs, against +685% for holding (16 trades)

No colour switch has a clear edge after its signal on any chart

Scorecard

Faithful

Reproduced 1:1: plots and trades match the original exactly on BTC and ETH, daily and hourly.

Repainting

None. It never redraws past bars and reads no future values.

Calm

About 26 regression colour switches a year on the daily charts, with a median run of 13–14 bars.

Edge

No clear edge after its signals on any chart. After 0.10% costs per side it beats buy-and-hold on ETH hourly and trails it on BTC hourly, BTC daily and ETH daily.

What the author built

Trendoscope describes the script as a combination of earlier work. The first part is "moving-average candles", which the author uses as a trend filter. The second is a linear-regression treatment of momentum that draws on Williams' VIX Fix and the squeeze-momentum idea. The author's stated aim is to time entries and exits on indexes, especially to catch market bottoms. They are open about its limits: the script uses no stop-loss and is marked as experimental.

Here is what the code does. It rebuilds every candle from 60-bar Hull moving averages of the open, high, low and close. That turns choppy bars into smooth ones. Momentum is the gap between this smoothed close and its own 20-bar EMA. A 20-bar linear regression of that momentum is drawn as a histogram, coloured by sign and direction (a linear regression fits the straightest line through recent values).

A long trade opens when the regression histogram turns from red to orange, meaning negative momentum has stopped falling. In the default "aggressive" mode, a turn to green also opens a trade. Either entry needs a Supertrend on 200-bar smoothed candles to point up. The trade closes when momentum stays stretched to the downside for two bars in a row. The script trades long only, puts the whole account in each trade, and has no stop.

What we measured

All figures use the author's default settings, with no tuning. The daily charts run from late 2019 to mid-October 2026, and the hourly charts from January 2025 to mid-October 2026.

Behaviour. The regression colour switches about 26 times a year on BTC and ETH daily (25.9 and 25.5). Its states last a median of 14 and 13 bars. On the hourly charts it switches about 673 times a year, with a median run of 12 bars. That means it switches often on hourly charts, but each state still lasts.

Reliability. Plots and trades match the original exactly on all four charts. There is no repainting and no look-ahead. Both lines correlate only loosely with ATR (about 0.6), so this is the author's own idea, not a classic in disguise.

After its signals. On BTC daily, price was higher 10 bars after the 34 upward regression switches 62% of the time. After any bar it was 54%, so the gap is not clear. The one clear gap anywhere is on BTC hourly, and it points the wrong way. After 223 downward switches, price fell over the next 10 bars only 41% of the time, against 49% after any bar.

ETH hourly chart with the MA-candle momentum histogram and its regression line, with markers on three recent colour switches
Look at how each colour state holds for hours before it flips. The markers show where momentum and its regression change colour.

After costs (10 bp per side, buy-and-hold beside it).

  • ETH hourly: +33.0% against βˆ’27.6% over 57 trades. Most of the gain came in 2026. Without its five best trades, the result is βˆ’41.9%.
  • BTC hourly: βˆ’43.2% against βˆ’13.6% over 62 trades.
  • BTC daily: +526% against +685% over 16 trades, a win rate of 69%. Its deepest closed drawdown was βˆ’60%, against βˆ’77% for holding.
  • ETH daily: +275% against +1,488% over 13 trades.

The daily results rest on very few trades.

Where it shines, and where it is quieter

Where it shines

  • Faithful and clean. It matches the original exactly and never redraws.
  • Robust to costs on BTC daily. It breaks even up to about 577 bp per side, so fees hardly matter for it.
  • ETH hourly in falling markets. When ETH was below its 200-day average, its 35 trades returned +33.9% after costs. Holding lost 31.6% in the same stretches.
  • Shallower drawdown than holding on BTC daily.

Where it is quieter

  • Strong bull runs. On both daily charts it sat out large parts of the rally and trailed buy-and-hold.
  • BTC hourly. It lost more than holding, and its downward switch has a clear edge in the wrong direction.
  • Concentrated gains. On ETH hourly, five trades carry the result.
  • Few trades on daily charts. 13 to 16 trades are an anecdote, not a verdict.

The bottom line

Trendoscope has built a careful, honest piece of work. It reproduces exactly, it never repaints, and its colour states hold instead of flickering. It suits the role of a slow long-only timer that waits for momentum to stop falling. On ETH hourly that patience paid off against the market over 2025–2026. On the daily charts it mainly gave up part of the rally in exchange for a smaller drawdown. Three changes could make it stronger: a protective stop, which the author already names as missing, a confirmation of the downward colour on hourly charts, and a rule that stays in longer during strong uptrends.

For the next read, compare it with two other calm trend scripts we measured: VAMA Ribbon by Duyck and Monotonic Trend Analysis by LonesomeTheBlue. Or browse the latest measurements and the FAQ on how we test.

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