Why Indicators Repaint (and Which Ones Do)

The difference between a signal that changes as the bar forms and one that quietly rewrites history.

In short: Repainting is when an indicator's past signal changes after the fact; most standard indicators only update the current unclosed bar (which is normal), but some — those using future data, centred smoothing or higher-timeframe lookahead — genuinely rewrite history and mislead backtests.

What repainting actually is

Repainting means an indicator shows one thing in real time and a different thing when you look back later. The signal that appeared to fire yesterday is no longer there today, or has moved. This matters enormously because a strategy that looks flawless on a repainting indicator can be worthless live — you were reading signals that only existed in hindsight. Distinguishing genuine repainting from harmless real-time updating is one of the most important skills for evaluating any indicator or tool you did not build yourself.

The harmless kind: the live bar updating

Most 'repainting' complaints are actually the current, unclosed bar updating — which is completely normal. While a Nifty 15-minute candle is still forming, its close keeps changing, so any indicator based on close will wiggle too. RSI, MACD and moving averages all do this on the live bar. The moment the bar closes, their value for that bar is locked forever. This is not deceptive; it is just the indicator reflecting live price. The rule is simple: judge signals only on closed bars.

The harmful kind: using future data

Genuine, harmful repainting happens when an indicator's calculation for a past bar depends on data that only became available later. The classic example is a centred moving average or a ZigZag, which places pivots using bars that come after the pivot — so the pivot can only be 'known' in hindsight and shifts as new bars arrive. Any indicator that redraws a past level, arrow or line after the fact is using future information and cannot be traded as it appears historically.

Higher-timeframe lookahead

A subtler trap is multi-timeframe indicators that pull a higher-timeframe value onto a lower-timeframe chart. If a daily value is applied to every 5-minute bar of that day before the day has closed, the historical chart shows the final daily value on morning bars — data that was not available at the time. In backtests this looks prophetic. Live, those morning bars only had the incomplete daily value. Proper implementations offset the higher-timeframe data by one bar to avoid this lookahead.

How to test whether something repaints

You can check any indicator for repainting with a simple experiment. Note exactly where a signal appears on the live bar, then let several bars pass and look back at that same spot. If the signal is still in the identical position, the indicator does not repaint. If it has moved, disappeared or a new one has appeared on an old bar, it repaints. For strategies, always confirm signals only trigger on bar close, and be suspicious of any tool that promises to redraw perfect pivots.

Why it matters for backtests

Repainting quietly destroys backtest validity. Because the historical chart shows the corrected, hindsight version, a repainting indicator appears to catch every top and bottom, producing spectacular but fictitious results. Traders then risk real money on Nifty or Bank Nifty expecting those results and get very different outcomes. Whenever a backtest looks too good to be true, repainting or other lookahead is the first thing to rule out before believing the numbers.

Key takeaways

  • Repainting is when a past signal changes after the fact — not the live bar updating.
  • The live, unclosed bar updating is normal; judge signals only on closed bars.
  • Genuine repainting comes from future data, centred smoothing or higher-timeframe lookahead.
  • Test by noting a signal's position and checking if it moves after several bars pass.
  • Repainting makes backtests look far better than reality — rule it out first.

FAQ

What does it mean when an indicator repaints?
It means a signal the indicator showed in the past changes, moves or disappears when you look back later. You were seeing a signal that, in real time, did not actually exist in that form.
Does RSI repaint?
No. RSI is calculated on closed bars, so a completed bar's RSI value does not change. Only the current forming bar's RSI updates in real time, which is normal, not repainting.
Is the live bar changing the same as repainting?
No. While the current bar is still forming its close keeps moving, so close-based indicators wiggle. Once the bar closes the value locks. That is normal real-time updating, not harmful repainting.
Which indicators actually repaint?
Genuinely repainting tools include centred moving averages, ZigZag, some pivot and supply-demand tools, and poorly built multi-timeframe indicators that pull higher-timeframe data with lookahead.
How can I tell if an indicator repaints?
Note exactly where a signal appears on the live bar, wait several bars, then look back at that spot. If the signal has moved or vanished, the indicator repaints; if it is unchanged, it does not.
Why is repainting dangerous for backtesting?
Because the historical chart shows the hindsight-corrected version, a repainting indicator appears to catch every turn, producing fake-perfect results that collapse when traded live.
Does the ZigZag indicator repaint?
Yes. ZigZag confirms a pivot only after price has moved enough afterward, so its most recent leg can redraw as new bars arrive. It is useful for study but cannot be traded as it appears historically.
How do I avoid repainting in a strategy?
Take signals only on confirmed, closed bars, avoid indicators that redraw past levels, and for multi-timeframe tools ensure higher-timeframe data is offset so no future information leaks in.

Published 25 February 2026. Educational content only — not investment advice.

Educational content only — not investment advice.