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?
Does RSI repaint?
Is the live bar changing the same as repainting?
Which indicators actually repaint?
How can I tell if an indicator repaints?
Why is repainting dangerous for backtesting?
Does the ZigZag indicator repaint?
How do I avoid repainting in a strategy?
Published 25 February 2026. Educational content only — not investment advice.