XXUANTIFYInvite a friend

Moving Averages Proximity Oscillator Under the Microscope

Is price really trending, or just above one lucky moving average? LuxAlgo's Moving Averages Proximity Oscillator puts that question to ninety-one averages at once and counts how many price stands above. We found a calm, faithful trend gauge: on the daily charts its colour changes about eight times a year and agrees with the 200-day trend about three bars in four. What it does not do is call the next ten days.

A candlestick path with a fan of moving-average lines of many lengths beneath it, and below a column histogram that is teal where price is above most lines and red where it is below
Many averages, one vote: the columns turn teal when price stands above most of them.

Key takeaways

Calm on daily: about 8 colour changes a year on BTC and ETH, a median run of 37–39 bars

Trend-aligned: agrees with the 200-day trend 79% of the time on BTC daily, 76% on ETH daily

Reproduced 1:1 on all four charts, with no repainting

No clear edge after its colour changes on any chart, over 5 or 10 bars

Scorecard

Faithful

Reproduced 1:1: our run matches the original script exactly on BTC and ETH, daily and hourly.

Repainting

None: no higher-timeframe calls, no look-ahead, no live-only values.

Calm

Daily: 8.2 switches a year on BTC (median run 38.5 bars), 8.0 on ETH (37 bars). Hourly: about 240 a year.

Edge

Not clear on any chart: price after a colour change behaved like price after any bar. Daily samples are thin (27–29 per side).

What the author built

LuxAlgo describes the script as two readings in one pane. The first, "Price Above MA's", reports what share of simple moving averages, across a range of lengths, sits below the current price; the author presents it as a way to read the direction of the underlying trend, with longer length ranges giving longer-term readings. The second, the "Proximity Index", reports which of those averages sits closest to price; in the author's account, a rising value means price is drifting back toward slower averages, which they suggest can hint at a new trend forming.

The code is compact. On every bar it computes simple averages of every length from 10 to 100 (the defaults), ninety-one of them, from a running sum, so the loop stays cheap. It counts how many sit below the close and, in the same pass, remembers the length whose average is nearest to price. Both results are smoothed with a 9-bar simple average and, by default, scaled to 0–100. The count is drawn as columns around a midline at 50: teal above, red below. The proximity reading is a blue line, with guide lines at 20 and 80. That teal-or-red colour is the state we measured.

What we measured

We measured the script with LuxAlgo's default settings on BTC and ETH perpetual futures, 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 the daily charts the columns are unhurried. BTC changed colour 8.2 times a year, with a median run of 38.5 bars and a longest of 194; ETH changed 8.0 times a year, with a median run of 37 bars and a longest of 222. Very short runs are rare: 3.4% of BTC daily runs and 1.8% of ETH's. Across the scripts of this kind that we measured, the share of quickly reversed states for this one is lower than for about 84% of them. Teal states agreed with the 200-day trend on 79% of BTC daily bars and 76% of ETH daily bars, where chance would give about 51%. On the hourly charts the picture changes: about 240 switches a year, median runs of 25 bars (BTC) and 22 bars (ETH), and trend agreement of 53% and 52%, close to a coin toss.

ETH daily candles with the oscillator below; the columns turn teal on 15 July 2026 and stay teal until they turn red on 15 October 2026
Look at the long teal stretch between the two markers: one state held for about three months on ETH daily.

Reliability. Our run matched the original script exactly on all four charts, within a tolerance of one in a million. The script uses no higher timeframe and no look-ahead, so a closed bar's colour does not change afterwards. On BTC daily the count line moves much like a 30-period RSI (correlation 0.89), but the measurement rates it as its own line, not a classic in disguise.

Performance. After a colour change, price did not behave clearly differently from any bar on any chart, at 5 or 10 bars. The closest case is BTC daily: after a turn to teal, price was higher ten bars later 69% of the time against 54% for any bar, but that rests on 29 signals and the gap is not marked clear. The colour change also comes late, as you would expect from a smoothed count: about 10 bars after a swing low or high on BTC daily, with about half of the swing still ahead at the median.

Where it shines, and where it is quieter

Where it shines

On the daily charts it is a steady trend gauge. On BTC and ETH daily, colour states last a median 37–39 bars, short flips are rare (under 4% of runs), and teal lines up with the 200-day trend on 76–79% of bars. It is faithful and does not repaint, so what you see on a closed bar stays put.

Where it is quieter

On the hourly charts it switches about 240 times a year, and its colour agrees with the 200-day trend only about as often as chance would (52–53%). Its colour changes carry no clear edge over 5 or 10 bars on any chart, and the daily samples (27–29 per side) are too thin to say more. Like any smoothed count, it turns about ten bars after a swing on BTC daily.

The bottom line

LuxAlgo's Moving Averages Proximity Oscillator suits one role well: a calm, trustworthy answer to "is price broadly above or below its averages?" on daily charts. It is not a timing signal, and on hourly charts its colour is much busier. Read it on closed bars and treat a colour change as context for a decision, not as the decision. The author could build on this with a small buffer around the midline, so the colour waits for a clearer majority before it turns, and an alert that fires when the colour changes on a closed bar.

For another LuxAlgo design that averages many lengths, read our look at the Multi-Length Stochastic Average, or browse the newest measurements on /latest/.

All of this was measured with 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