XXUANTIFYInvite a friend

SuperTrend AI Under the Microscope

Which SuperTrend multiplier should you use? LuxAlgo's SuperTrend AI (Clustering) avoids choosing one: it runs nine versions side by side and lets their recent results pick the setting. We measured it with its default settings. Our own rebuild matches the original line for line, and it never repaints. On daily charts it holds a trend for weeks at a time. On hourly charts its flips to green were followed by falling prices more often than an ordinary hour was.

Faint trailing-stop step lines fanned around a candle path, with one bold step line chosen from the best group and flipping from below to above the price
Nine SuperTrends, three groups, one line on the chart: the idea behind the script.

Key takeaways

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

Calm on BTC daily: 13.2 flips a year, median run of 19 bars

Green state agrees with the 200-day trend 77% of the time on BTC daily

On BTC hourly, up-flips led to higher prices 10 bars later only 42% of the time (any bar: 51%)

Scorecard

Faithful

Reproduced 1:1: every plotted value matches the original on BTC and ETH, daily and hourly.

Repainting

None. Past flips and labels stay where they were drawn.

Calm

About 13 flips a year on the daily charts, median run 19 bars; on hourly charts about 210–220 a year.

Edge

Daily: no clear difference from any bar. Hourly: up-flips were clearly followed by weaker prices than any bar.

What the author built

A classic SuperTrend is a trailing stop set a fixed number of ATRs (average true range, the typical bar size) away from price. It flips side when price closes through it. Its one big question is the multiplier: small numbers react fast, large ones ride trends longer. LuxAlgo describes SuperTrend AI as a way to let the market answer that question with k-means clustering, an unsupervised machine-learning method that sorts numbers into groups. In the author's account, the best setting at any moment is the average of the best-performing group, not one single winner. The trailing stop can be read like a regular SuperTrend, and the score on each flip label is meant as a hint of trend strength.

The code does this in a compact way. It runs nine SuperTrends with multipliers from 1 to 5 in steps of 0.5, all on a 10-bar ATR. For each one it keeps a smoothed score: the price change, counted as a gain when price sat on the right side of that line. On each bar, k-means sorts the nine scores into a top, a middle and a bottom group. The multipliers in the top group are averaged, and that number drives the SuperTrend you see. A second, softer line follows it. That line is an adaptive average whose speed rises with the top group's score.

What we measured

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

Behaviour. On BTC daily the trailing stop flipped 13.2 times a year. The median run lasted 19 bars, and only about 4% of runs were very short. ETH daily was almost the same: 12.9 flips a year, also a median run of 19 bars. On BTC daily the green state agreed with the 200-day trend 77% of the time, against 51% by chance. Flips come after the turn, not at it. On BTC daily, up-flips arrived a median of 8 bars after the low, with about 36% of the swing still ahead. On the hourly charts the pace is much faster: 221 flips a year on BTC and 208 on ETH, with a median run of 17 hours.

BTC daily candles over the last year with the SuperTrend AI trailing stop and its adaptive average, a flip to red marked on 2 August 2026 and a flip to green on 20 August 2026
Look at how long each colour holds on the daily chart, and at the two August 2026 flips.

Reliability. Our rebuild matched the original exactly on all four charts. The script reads no higher timeframe and no future bars, so it shows no repainting. Its trailing stop moves broadly like a 50-bar EMA on BTC daily (correlation 0.83), but it does not reduce to one. This is its own idea, not a classic in disguise.

After its signals. On the daily charts, prices after a flip were not clearly different from prices after any bar. On BTC daily, up-flips led to higher prices 10 bars later 51% of the time, against 54% for any bar (47 flips). The hourly charts tell a different story. On BTC hourly, up-flips were followed by higher prices 10 bars later only 42% of the time, against 51% for any hour (197 flips). That is a clear gap. On ETH hourly the 5-bar figure was 43% against 51% (185 flips). Down-flips showed no consistent lean across the charts.

Where it shines, and where it is quieter

Where it shines

On BTC and ETH daily it is a calm trend map. It flips about once a month, its runs last weeks, and its colour mostly agrees with the long-term trend. It is reproduced exactly and never redraws, so what you see on a past bar is what it showed live. The clustering is a real idea of its own, not a renamed moving average.

Where it is quieter

As a timing tool it adds little on the daily charts: prices after its flips looked much like prices after any day. On the hourly charts it changes side about 200 times a year. Its green flips there tended to arrive near short-term highs, since prices after them fell more often than after an ordinary hour. In hourly use it fits better as a trend backdrop than as an entry trigger. Several regime splits on BTC daily rest on only 5 to 21 flips, too few to read much into.

The bottom line

LuxAlgo built something unusual: a SuperTrend that picks its own multiplier from how its siblings have done. It is a faithful, non-repainting tool, and on daily charts it gives a calm, trend-following view that lines up with the long-term trend. Read it as a map of the trend, not a signal to act on, and be most careful with green flips on hourly charts. One way the script could grow: an option to confirm a flip with a higher-timeframe state or a minimum performance score, so that weak hourly flips stay off the chart.

For the classic it builds on, read our earlier piece on KivancOzbilgic's Supertrend. For more measured scripts, browse the latest reports.

These results come from the authors' 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