XXUANTIFYInvite a friend

Does your indicator show a past it never showed live?

About one in three scripts we measured can show something on history that it did not show in real time. So a clean-looking chart can look better than the trades it would really have given. One popular script shows what the other side looks like: LonesomeTheBlue's Point and Figure (PnF) Chart. Its author describes it as live and non-repainting, and our measurement agrees.

Glowing columns of X and O marks fixed on a candle chart, with faint ghost copies of a price line redrawing behind them
Fixed X and O columns in front, a redrawn ghost line behind: the two sides of repainting.

Key takeaways

About one in three scripts (32%) carries some repaint risk, across thousands measured

Redrawing earlier drawings is the most common kind, at 16%

The PnF Chart shows no sign of repainting on BTC and ETH, daily and hourly

Its trend colour holds for a median 20 bars on BTC daily, with about 13 flips a year

The pattern

To repaint means that an indicator shows something on past bars that it did not show while those bars were live. On a finished chart every arrow can look perfectly timed, because the script has already redrawn it with knowledge it did not have at the time. A trader who tests it by scrolling back through history is testing a past that never happened.

We checked thousands of scripts for this, with their authors' default settings, on BTC and ETH perpetual futures, on daily and hourly charts. About one in three (32%) shows at least one kind of repaint risk. We see four kinds, and one script can have more than one:

  • Redraws the past (16%). Earlier drawings move or change once newer bars arrive, so history looks sharper than it was live.
  • Reads a higher timeframe that is still forming (8%). The script reads, say, a weekly value while the week is still open, so live values can change until that bar closes.
  • Looks ahead (5%). The code can see values from after the bar it draws on.
  • Exists only live (4%). Part of what it shows in real time is gone from history.
Horizontal bars: any repaint risk 32%, redraws earlier drawings 16%, higher timeframe still forming 8%, looks ahead 5%, only live 4%
Look at the top bar: about one in three scripts carries at least one kind of repaint risk.

Repainting is not always a mistake. A swing high, for example, can only be confirmed after a few bars. But the reader should know when it happens. A chart that looks perfect on history is the reason to ask, not the proof.

BTC daily candles with LonesomeTheBlue's Point and Figure columns drawn as a green and red shaded area over the past year

One script that gets it right

LonesomeTheBlue's Point and Figure (PnF) Chart builds classic X and O columns right on a time chart. A new box is added only when price moves a full box size (by default based on the 20-bar ATR, the average true range). The column only reverses after a three-box move the other way. The code works bar by bar from the current high or low and values it has already stored. It does not request a higher timeframe, does not look ahead, and has no live-only branch. Our check found no repaint risk on any of the four charts. The lines match the original script within a pixel on 99% or more of the bars.

It is also calm. On BTC daily (September 2019 to October 2026) the trend colour flips about 13 times a year and holds for a median of 20 bars. Only about 15% of its runs are short. On BTC hourly (January 2025 to October 2026) it flips about 306 times a year, so the hourly chart is the busy one.

What it does not show is a forecast. None of its signals moved price clearly differently from the market's own odds on BTC daily or BTC hourly.

What it means for you

Distrust a perfect-looking past

Arrows that catch every top on history are the moment to ask whether the script repaints, not the reason to trust it.

Check what was really measured

Look for repaint risk in a script's report before you study its history. A "non-repainting" label is a claim; a measurement can confirm it.

Use a clean script for what it is

The PnF Chart is a steady map of trend columns, not a timing signal. A hint, not a tested change: on BTC daily its winning trades seldom went more than 11% against the entry, so a stop just beyond that leaves the winners alone.

The bottom line

Repainting is common: about one in three scripts carries some risk, so a beautiful history is a question, not an answer. LonesomeTheBlue's PnF Chart shows the clean way. What it draws on a closed bar stays, it matches its original closely, and its trend states last. Its signals did not stand apart from the market's own odds, so it suits filtering noise and reading structure better than timing entries. The author could build on that solid base with a stop level drawn on the chart, so the structure and the risk sit side by side.

Read more about how fast colour flips change a chart in our look at whipsaw and colour switching, or see what has just been measured on /latest/.

Everything here was measured with the authors' 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