XXUANTIFYInvite a friend

Commodity Trend Reactor Under the Microscope

Can one oscillator tell you both the trend and the moment it is overstretched? BigBeluga's Commodity Trend Reactor tries, by hanging a trailing line on price and a CCI in its own pane. We found two very different clocks in one script: a calm trail that holds for weeks on the daily chart, and a busy oscillator colour that changes every few bars. Knowing which is which is the whole trick.

A candlestick path shadowed by a stepped trailing line that hugs the lows, then jumps above the candles, with a CCI oscillator glowing between two threshold bands below
The idea in one picture: a trail that switches sides with the trend, and an oscillator that marks the extremes.

Key takeaways

The trail line is calm: about 16 switches a year, median run 18 days (BTC daily)

The CCI colour is busy: about 73 changes a year, median run under 3 days (BTC daily)

Top squares appear about four times as often above the 200-day average as below it (BTC daily)

No clear edge after any signal, on any of the four charts

Scorecard

Faithful

Reproduced 1:1: our run matched the original script exactly on all four charts.

Repainting

None. It reads only closed bars and no higher timeframe.

Calm

Trail line: about 16 switches a year on BTC daily, median run 18 bars; only 7% of runs are short.

Edge

Not clear on any chart. Upward trail flips on BTC daily lean slightly positive over 57 signals, but stay within chance.

What the author built

BigBeluga describes the script as a trend-following oscillator built on the Commodity Channel Index (CCI), a classic that measures how far price has strayed from its recent average. In their words, it adds a trailing stop that locks in the trend on the price chart, plus square markers where the CCI reaches extremes, meant as warnings of a possible reversal. The author suggests trading in the direction of the trail and treating the squares as mean-reversion alerts.

The code does this in four short steps. A 25-bar CCI sets the trend: crossing above +50 turns it bullish, crossing below -50 turns it bearish, and the state holds until the opposite crossing. While bullish, the trail line sits on the lowest low of the last 20 bars; while bearish, on the highest high. The CCI line itself is coloured lime above +50, orange below -50 and grey in between. And whenever the CCI goes beyond +200 or -200, a square is printed on both the oscillator and the price chart.

So the trend state has memory, while the CCI colour has none. That single design choice explains most of what we measured.

What we measured

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

Behaviour. On BTC daily the trail line switched about 16 times a year, with a median run of 18 bars; on ETH daily about 14 times a year, median 17 bars. The CCI colour on the same charts changed about 73 and 76 times a year, with median runs of 2 to 3 bars, and about 63% of those runs were short. On hourly charts the trail kept its rhythm in bars (median 17 on both coins), which works out to about 408 switches a year.

On daily charts the green trail agreed with the 200-day trend about 64% of the time on both coins, where chance would give about 50%. On hourly charts that agreement fell to about 51%: there the trail follows short swings, not the big trend.

The squares tell their own story. On BTC daily, top squares came about 6.3 times per 100 bars above the 200-day average and 1.6 times below it; bottom squares 3.8 times below and 1.3 above, and most often in wild markets. ETH daily looks the same. An extreme CCI reading mostly appears inside a strong move, in its direction.

BTC daily chart with the Commodity Trend Reactor trail line under and over the candles, marked where it turned up in September 2026 and down in October 2026
Watch the trail stay on one side of price for weeks before it switches; the two markers show its latest turns.

Reliability. The plots matched the original exactly on all four charts, and nothing repaints. The CCI line moves almost in lockstep with a 25-bar z-score (correlation 0.993 on BTC daily), as a CCI should; no classic matched the trail line.

Performance. After a trail flip, price did not move its way clearly more often than after any bar. On BTC daily, 58% of upward flips were followed by a rise over 10 days, against 54% for any day: 57 signals, not a clear difference. The median flip came 7 bars after the swing low, with roughly half the swing still ahead.

Where it shines, and where it is quieter

Where it shines

The daily trail: calm runs of 17 to 18 bars on both coins, and about 64% agreement with the 200-day trend. As a context tool it does what it says. Upward flips during a falling 200-day trend leaned better on both coins (68% vs 54% on BTC, 64% vs 49% on ETH), but on only 25 and 22 signals, so treat that as a lead, not a finding.

Where it is quieter

The CCI colour changes every two or three bars on every chart, so it suits reading momentum rather than holding a position. On hourly charts the trail matches the 200-day trend no better than chance (about 51%). And the squares mark strength more often than exhaustion: on daily charts they cluster with the trend, not against it.

Make it better

One measured change stands out: trade it where fees are zero. We took its own signals, unchanged, on the last 30% of each hourly chart, a stretch not used to pick the rule, and compared 0.1% fees plus slippage per side with slippage alone. On BTC hourly the result went from -19% to +0.1%; on ETH hourly from +1% to +25%. The deepest fall stayed the same (36% and 32%). That measurement does not come with a buy-and-hold figure for the same stretch, so read it as fees against no fees, not against holding the coin. The script switches often on the hourly chart, so costs decide the outcome; that is a rule of the market as much as a finding about this script, though here it helped more than it did for random signals.

A practical hint: on the daily chart, nine in ten winning moves after a signal stayed within 10% against the entry, so a stop just beyond that leaves the winners alone.

The bottom line

BigBeluga built a script with two tempos, and they are worth reading separately. The daily trail line is calm, faithful and non-repainting, a good map of which side of the market you are on. The CCI colour and the squares are fast, momentum-flavoured readings, and the squares tend to appear inside strong moves rather than at their ends. The author could build on this by offering the squares only against the trail's direction, or by letting users choose whether the background marks trail flips or CCI extremes.

For more on the CCI family, read our battle CCI versus Stochastic Z-Score; for another trailing boundary, see Evasive SuperTrend Under the Microscope. Everything new is on /latest/.

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

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