Meet the Maker: Multi-Length Stochastic by LuxAlgo
LuxAlgo is one of the most prolific makers of open indicators, and their scripts tend to take a familiar tool and ask a new question of it. Multi-Length Stochastic Average, published in September 2021, asks a neat one: why measure where price sits in its recent range over a single lookback, when you can measure it over many at once and average the answers? We measured the result, and it turns out to be faithful, calm and refreshingly honest about what it is.
Key takeaways
Reproduced exactly on all four charts (BTC and ETH, daily and hourly), with no repainting
About 29 colour switches a year on BTC daily, each colour lasting a median of 11 bars
On BTC daily a green turn came with about 60% of the swing still ahead (69 swings)
No colour switch showed a clear edge over the market's own odds on any chart
The idea
A classic stochastic oscillator answers one question: where is today's price inside the highest high and lowest low of the last so-many bars? Zero means at the bottom of that range, 100 means at the top. The catch is the "so-many": a short lookback reacts fast but jitters, a long one is steady but slow.
LuxAlgo's answer, as they describe it, is to stop choosing. The script computes a stochastic for every lookback from 4 bars up to the length setting (14 by default) and averages them all into one line. The author's point is that such a "multi-length" view carries short-term and longer-term information at the same time, and that the line only reads 0 or 100 when price sits at the extreme of every one of those ranges together.
Around that core, the author adds two smoothing steps, both a 10-bar simple average by default: one on the price going in, one on the oscillator coming out. A triangular or least-squares average can replace either, or the smoothing can be switched off; the author notes that the least-squares option can overshoot on the output.
On the chart, the line turns green while it rises and red while it falls, the area beyond the 80 and 20 levels is shaded, and small circles mark where the line drops back under 80 or climbs back over 20. The author presents these as timing aids for trend direction and strength, with less noise than reading the raw slope, while acknowledging that pullbacks inside a trend can trip them.
Two markets, two speeds
We measured the script with its author's default settings on BTC and ETH perpetuals, on daily and hourly charts: daily from September 2019 (BTC) and November 2019 (ETH) to mid-October 2026, hourly from January 2025 to mid-October 2026. First the reliability: our version matched the original script exactly on all four charts, and its code never redraws a past value.
The most striking result is how steady its rhythm is. On BTC daily the colour switched about 29 times a year; on ETH daily about 27. On both, the median colour run lasted 11 bars, and on the hourly charts it was 11 bars again, which there means 11 hours and roughly 700 switches a year. Short, one-or-two-bar flickers were rare: about 13% of runs on BTC daily and about 10% on ETH daily. The pace barely moved with the market either: on BTC daily it switched about 8 times per 100 bars in calm, normal and wild volatility alike.
Is it a stochastic in disguise? Not quite. Its closest classic on BTC daily is a smoothed 20-bar stochastic, with a correlation of 0.89 and a lag of about five bars (0.88 on ETH daily), close in spirit but its own line.
The timing was the second surprise. On BTC daily, when the line turned green near a swing low, the median turn came 8 bars after the low with about 60% of the upswing still ahead (69 swings); that puts it ahead of about 95% of comparable colour-switching scripts we measured. On ETH daily the figure was about 59% (58 swings). Red turns came later in the move: about 40% of the downswing still ahead on BTC daily, about 46% on ETH daily.
What did not show up is an edge. Ten days after a green turn on BTC daily, price was higher 50% of the time against 54% after any day (103 signals); on ETH daily 54% against 54% (94 signals). The hourly charts, with over 600 signals each, were just as even. This is a reading of momentum swings, not a forecast.
The bottom line
Multi-Length Stochastic Average is a careful piece of work: an exact, non-repainting oscillator with its own idea and a steady swing rhythm that holds across both coins and both timeframes. It suits the role of a momentum-phase gauge, with its green turn arriving early in upswings on the daily charts; it does not, on its own, tilt the odds of what comes next. A filter that tells trending from ranging markets, or a stop just beyond typical adverse moves (on the daily charts, nine in ten winning moves stayed within about 11% against the entry), are natural next steps, not tested improvements.
For more LuxAlgo, see our look at Evasive SuperTrend and Moving Average Converging, or browse the latest reports.
These measurements use the author's default settings on BTC and ETH; 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