XXUANTIFYInvite a friend

Can a Higher-Timeframe Indicator Avoid Repainting?

Borrowing a line from a higher timeframe is a common way for a script to end up showing a different past from the one it showed live. Yet a popular multi-timeframe Supertrend we measured shows no sign of repainting at all, and it gets there with one small choice in its code.

Candlesticks with a solid stepped trailing-stop line that stays in place, while a thinner line behind it leaves faint ghost copies of its earlier path
Two lines over the same candles: one stays where it was drawn, the other keeps rewriting its past.

Key takeaways

About 32% of measured scripts carry some repainting risk (chart below)

About 8% read a higher timeframe while its bar is still forming

The most-liked scripts carry that risk more often: about 43%, against about one in four little-known ones

LonesomeTheBlue's Supertrend Multi Time Frame shows no repainting and matches the original exactly on all four charts

The pattern

Repainting means a script shows something on history that it did not show live. On a finished chart every arrow looks well placed, but the trader watching in real time saw something else. Across thousands of scripts, measured on BTC and ETH perpetuals on daily and hourly charts, about 32% show some risk of it. The other 68% show no sign: what they draw on a closed bar stays.

The risk comes in four kinds. About 16% redraw earlier drawings once newer bars arrive, so the past looks better in hindsight. About 5% have code that can see values from the future of the bar they draw on, which is called look-ahead. About 4% show something live that is gone on history.

And about 8% do what this article is about: they read a higher timeframe, say a weekly line on a daily chart, while that week is still forming. Until the week closes, the live value can change with every tick. On history you only ever see the closed week, so the past looks steadier than the live chart ever was.

A second cut adds a twist. Sorted by likes, the most-liked scripts carry repainting risk more often (about 43%) than well-liked ones (34%) and little-known ones (about one in four). Reproduction barely changes: about nine in ten in each group are reproduced exactly from their own code. Popularity says little about whether the past on your chart is the past you would have seen.

Horizontal bar chart: 68% of measured scripts show no sign of repainting, 32% some risk; 16% redraw the past, 8% read a live higher timeframe, 5% look ahead, 4% draw live only
The highlighted bar: reading a higher timeframe while its bar is still open, about 8% of measured scripts.

One script that gets it right

BTC daily candles with LonesomeTheBlue's two Supertrend lines, the thick weekly line moving in steps, with a sell arrow in June 2026 and a buy arrow in August 2026

Supertrend Multi Time Frame - Auto HTF by LonesomeTheBlue, published in 2019, draws two Supertrend lines: one on the chart's own timeframe and a thicker one from the next timeframe up, which it picks by itself (weekly on a daily chart, four-hour on an hourly one). As the author describes it, the bar colours show when both lines agree and turn white when price moves against the main trend.

What makes it robust is how it fetches the higher line. The code calculates the Supertrend on the higher timeframe but hands back the value of the previous, already closed bar of that timeframe. So on a daily chart the weekly line moves only once a week has ended. We found no repainting, and the reproduction matched the original exactly on all four charts.

It is calm, too. On BTC daily, September 2019 to October 2026, its buy and sell arrows came about 1.3 and 1.1 times a year, and none was reversed within three bars. After the nine buy arrows price rose over ten bars in about 89% of cases, against 54% after any bar, but nine signals are an anecdote: the gap is not marked clear.

What it means for you

Check how a higher timeframe is read

A line from a bigger timeframe is only steady live if it uses the last closed bar of that timeframe. If you can't tell, have the script measured.

Judge the past by what was live

When arrows look perfect on history, watch them on a few live bars before trusting them. Repainting flatters hindsight, not trading.

Expect fewer, later signals

Waiting for the closed higher bar costs time: a weekly line moves at most once a week. That delay is the price of a past that stays put.

The bottom line

Repainting is common, and likes are no guide to it. For the higher-timeframe kind the remedy is simple: take the last finished bar, not the one still forming. LonesomeTheBlue's script shows that a popular multi-timeframe tool can do exactly that and stay faithful on every chart we measured. Its arrows are rare, though, so on BTC daily there are too few to judge their edge. An alert for the moment both lines agree, the state its bar colours already show, would give traders a more frequent signal to test.

For the next step in this series, read what happens after a buy signal, or browse the latest measurements and the FAQ on how we test.

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