XXUANTIFYInvite a friend

HalfTrend Under the Microscope

How do you follow a trend without being shaken out by every wobble? HalfTrend by everget answers with a stepped line that only ever ratchets one way until price clearly breaks it. We measured it with the author's default settings on BTC and ETH, on daily and hourly charts. What we found: a faithful, non-repainting trend map whose states hold for about two and a half weeks on the daily chart, and whose arrows almost never reverse within three bars.

A stepped line of light ratcheting up under rising candles, then stepping across and ratcheting down above falling candles, with dotted channel lines and two small arrows
The idea in one picture: a line that steps, holds, and only turns when price breaks it.

Key takeaways

Reproduced exactly on all four charts, with no repainting

Calm on BTC daily: 16.6 colour switches a year, median run 16 bars

Under 2% of arrows reversed within three bars on any chart

Busy on hourly charts: about 205 arrows a year each way

Scorecard

Faithful

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

Repainting

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

Calm

BTC daily: 16.6 switches a year, median run 16 bars. ETH daily: 15.1 a year, median 17 bars.

Edge

Not judged: this report carries behaviour and reliability, not a performance verdict on the arrows.

What the author built

everget describes HalfTrend as a trend indicator built on the average true range (ATR, a measure of how far price typically moves in one bar). In the author's words, paraphrased, it is a relative of SuperTrend that decides the trend by a different rule. The original script was published in January 2021 and is shared as open code.

Here is what the code does. While the trend is up, it keeps a floor: the highest recent low it has seen, which can rise but never fall. That floor is the HalfTrend line. The trend only turns down when two things happen on the same bar: the short average of highs (two bars by default, the "Amplitude" setting) drops below that floor, and the close falls below the previous bar's low. In a downtrend everything mirrors: a ceiling that can only fall, broken when the average of lows rises above it and the close clears the previous high.

Around the line it draws a channel one ATR(100) wide on each side (the "Channel Deviation" setting of 2 times half an ATR), and at each turn it places a Buy or Sell arrow half an ATR beyond the line. The line itself is its own construction: it is not a moving average in disguise, even if it tracks price about as closely as a short weighted average.

What we measured

BTC daily candles over the past year with the HalfTrend line in blue and red steps, its dotted ATR channel, and two marked arrows: a buy on 21 September and a sell on 8 October 2026
Look at how long each flat step lasts before the colour turns, and how the last buy and sell arrows sit just after a swing.

Behaviour. On BTC daily (September 2019 to October 2026) HalfTrend printed 8.2 buy and 8.2 sell arrows a year; on ETH daily (November 2019 to October 2026) 7.5 of each. The colour of the line switched 16.6 times a year on BTC with a median run of 16 bars, and 15.1 times a year on ETH with a median run of 17 bars. Only 1.7% of arrows on BTC daily and 1.9% on ETH daily were reversed within three bars, so flip-flops are rare.

The rhythm hardly changes with the market. On BTC daily the line switched colour 4.0 times per 100 bars in calm markets and 5.4 in wild ones. One thing does shift: sell arrows come more often when volatility is high, 3.25 per 100 bars in wild markets against 2.1 in calm ones on BTC daily, and 2.86 against 1.57 on ETH daily.

Timing. An arrow is a confirmation, not a forecast of the turn. On BTC daily the median buy arrow arrived 7 bars after the swing low, with about 56% of the swing still ahead (42 swings measured). Sell arrows arrived a median 6.5 bars after the high, with about 34% still ahead.

Hourly. On BTC and ETH hourly (January 2025 to October 2026) the same rule produced about 205 and 208 arrows a year each way, with median runs of 17 and 16 bars and about 1% reversed within three bars.

Reliability. Every plotted value matched the original script exactly on all four charts, and nothing in the code looks ahead or redraws the past.

Where it stood. At the last measured daily bar, 15 October 2026, the last arrow on both BTC and ETH was a sell on 8 October, while both coins traded above their 200-day average in a calm market.

Where it shines, and where it is quieter

Where it shines

On the daily charts it is a calm trend map: about 16 colour switches a year on BTC and 15 on ETH, states of 16 to 17 days, and under 2% of arrows reversed within three bars. Its rhythm stays similar in calm, normal and wild markets and above or below the 200-day average. It is reproduced exactly and does not repaint.

Where it is quieter

On hourly charts the same steps last about 16 to 17 hours, so it flips around 410 to 420 times a year on BTC and ETH: a lot of arrows to act on by hand. On the daily charts the arrows arrive a week or so after a turn, and sell arrows cluster in wild markets. The report carries no performance verdict, so the arrows are best read as changes of trend state, not as trade calls.

Make it better

These are hints for using HalfTrend well, not tested improvements: no measured change passed our test.

Leave room for a stop. On the ETH daily chart, nine in ten buy arrows that were ahead after ten days had gone no more than about 12% against the entry first; on BTC daily, about 6%. A stop placed just beyond that keeps most of those signals alive. That is more a rule of these markets than a finding about this one script.

Act on a closed bar. The turn depends on the close, so an arrow that appears mid-bar is only settled once the bar is done.

The bottom line

everget's HalfTrend does what a trend line should do on a daily chart: it holds its side for weeks, turns rarely, and almost never takes a turn back. It is reproduced exactly and does not repaint, which makes it a dependable map of trend state. The author could build on that by offering an optional confirmation filter for the hourly chart, where the same rule flips far more often. For a close relative built on ATR as well, read our look at the SuperTrend strategy as a daily trend map, 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