XXUANTIFYInvite a friend

TRIX Histogram Under the Microscope

When momentum turns, how do you see it without reacting to every wiggle? JustUncleL's TRIX Histogram R2.1 answers with a triple-smoothed rate of change, drawn as coloured bars around a zero line, with a signal line for the faster turns. We found a faithful, non-repainting script whose daily colours follow the market's direction and hold for days at a time. Its turns are honest but late, and its signals carry no clear edge on their own.

Glowing histogram bars rising and falling around a bright zero line, with a dotted orange signal line crossing them
Histogram, zero line and signal line: the three things this script draws.

Key takeaways

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

About 5 zero crossings a year each way on BTC daily, only 4% reversed within three bars

Daily colour agrees with the market's direction about 71% of the time on BTC (chance: 51%)

On the daily charts, no signal differs clearly from the odds after any bar

Scorecard

Faithful

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

Repainting

None. No higher-timeframe calls, no look-ahead; a closed bar stays as drawn.

Calm

About 4.9 zero crossings up per year on BTC daily, a median 74.5 bars apart; the histogram stays on one side of zero a median 24 bars.

Edge

Not clear on the daily charts; on the hourly charts two long signals did clearly worse than any bar.

What the author built

JustUncleL describes the script as a standard TRIX, the momentum oscillator, shown as a coloured histogram by default. The options, in the author's account: show TRIX as a line instead, add a signal line with a difference area to make its crossings stand out, and colour the candles on zero and signal crossings. The author credits an earlier "TRIX MA" script by munkeefonix as a starting point.

The code does just that, and simply. It smooths the closing price three times with a 12-bar exponential moving average (an average that weighs recent bars more), then measures how much that smoothed line changed from the bar before, scaled up so the numbers are easy to read. That is TRIX. An 8-bar average of TRIX becomes the orange signal line, and the gap between the two, doubled, is drawn as a grey area.

The bar colour carries extra information: bright green when TRIX is above zero and has risen for three bars, dark green when above zero otherwise, maroon when below zero and falling for three bars, red otherwise. Four alerts fire on crossings of zero and of the signal line. The bar-colouring and cross markers are switched off by default.

What we measured

We measured the script with JustUncleL's default settings (TRIX 12, signal 8) on BTC and ETH, daily from late 2019 to October 2026 and hourly from January 2025 to October 2026.

Behaviour. The zero line is the slow layer. On BTC daily, TRIX crossed up through zero 4.9 times a year and down 4.8 times, with a median of about 75 bars between crossings; ETH daily was almost identical at 4.9 each way. Only about 4% of BTC daily zero crossings reversed within three bars (4.5% on ETH). The signal line is the fast layer: about 9 crossings a year each way on BTC daily, 10 on ETH. The four histogram colours switch about 35 times a year on BTC daily, with a median run of 8 bars.

BTC daily candles with the TRIX histogram, orange signal line and markers on a zero cross down, a zero cross up and a signal cross down
Look at how the histogram stays on one side of zero for weeks, while the signal line crosses far more often.

On the daily charts the colour reads the trend well: on BTC daily the histogram agreed with the market's direction about 71% of the time, against 51% by chance; on ETH daily 67% against 50%. The price of that smoothing is lateness: a BTC daily zero crossing up came a median 9.5 bars after the price had turned.

Reliability. Every plotted value matched the original exactly on all four charts, and nothing repaints. The histogram moves much like a 25-bar rate of change (correlation 0.94 on BTC daily), but it is not the same line, and the difference area is its own.

Performance. After a BTC daily zero crossing up, price was higher ten bars later 57% of the time, against 54% after any bar. That gap is not clear, and it rests on 35 signals. On neither daily chart did any signal differ clearly from the odds after any bar.

Where it shines, and where it is quieter

Where it shines

On the daily charts, as a calm momentum backdrop. The histogram tracks the market's direction (71% agreement on BTC daily, 67% on ETH daily), zero crossings come about 5 times a year each way, and only about 4% flip back within three bars. Its rhythm changes little between calm and wild markets on BTC daily.

Where it is quieter

On the hourly charts the same settings give about 136 zero crossings a year on BTC and 145 on ETH, and the colour agrees with the direction only 52% of the time. There, a BTC zero crossing up was followed by a rise five hours later 42% of the time against 51% for any bar, and an ETH signal cross up 45% against 51%: clearly worse than the market's own odds.

Make it better

No measured change passed our test for this script, but one hint helps use it well. Leave room for a stop: on the daily chart, its winning moves seldom went more than 13% against the entry first (nine in ten stayed within that), so a stop just beyond that distance leaves the winners alone. That is a property of daily crypto swings as much as of this script. As with any closing-price indicator, act on a closed bar: the last, unfinished bar can still change colour before it closes.

The bottom line

JustUncleL's TRIX Histogram is a clean, faithful version of a classic momentum idea. On the daily charts it is a calm backdrop that follows the market's direction and rarely flip-flops; it is not a timing tool, and its crossings alone carried no clear edge. On the hourly charts the default length is short for crypto's noise. The author could build on this with an optional trend filter or a longer default for intraday charts, and a note in the description on which timeframes it suits.

For another calm momentum reading, see Parabolic RSI Under the Microscope or RedK TPX Under the Microscope, or browse /latest/.

These measurements use 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