What "repainting" actually means
Every indicator on TradingView is a calculation run on price data. Repainting happens when that calculation produces a different answer for a past bar than it did while that bar was live. On the chart, it looks like a buy arrow that appeared at the exact bottom of a move, even though, in real time, no arrow was there — or an arrow that appeared, then vanished when price turned against it.
Repainting is not always dishonest. Some tools are designed to redraw (for example, zig-zag lines and some pivot tools that need future bars to confirm a swing). The problem starts when a repainting tool is sold or used as a source of entry signals, because its history cannot be traded.
The three most common causes of repainting
1. Signals calculated on the live, unclosed candle
While a candle is still forming, its close is just the current price. An indicator that fires on the live bar can show a signal at 10:14 and remove it at 10:15 when the candle closes differently. This is the most common form, and it is why serious traders act only on closed-candle signals.
2. Looking into the future
Some scripts use functions that reference bars to the right of the current one, or confirm a swing high only after several later bars have printed — and then draw the signal back on the original bar. The arrow is placed at the perfect point, but it could only be drawn after the fact.
3. Higher-timeframe data requested incorrectly
Multi-timeframe indicators pull data from a higher timeframe (for example a 4-hour trend shown on a 15-minute chart). If that request is not written carefully, the indicator uses the 4-hour candle's final value on every 15-minute bar inside it — information that did not exist yet in real time.
Why non-repainting matters for your trading
- Honest backtests. Scrolling back through a repainting indicator shows a near-perfect record. A non-repainting one shows the wins and the losses you really would have seen.
- Reliable alerts. TradingView alerts fire in real time. If the indicator repaints, an alert can fire for a signal that later disappears from the chart, leaving you in a trade with no setup behind it.
- Consistent rules. You can only build a trading plan on signals that behave the same way in the past as they do live.
- Psychology. Watching signals appear and disappear destroys confidence and leads to second-guessing and over-trading.
How to test any indicator for repainting on TradingView
You do not need to read the code to check. Use these practical tests:
- Bar Replay. Open the chart, click Replay, pick a date in the past and play the bars forward one at a time. Note every signal at the moment it prints. When you reach the present, compare your notes with the chart. Any signal that moved or vanished is repainting.
- Live screenshot test. On a 1-minute or 5-minute chart, take a screenshot after each signal. Compare the screenshots with the same area of the chart an hour later.
- Alert log check. Create alerts for the indicator, let them run for a few sessions, then compare the alert log timestamps with the signals still on the chart.
- Refresh test. Reload the chart. Signals that shift position after a refresh are calculated from data that changed.
Even a non-repainting indicator updates on the candle that is still forming. That is normal. The rule is simple: treat a signal as confirmed only after its candle has closed.
How the AAT Indicator handles repainting
The Alpha Algo Trading (AAT) Indicator is built so that buy, sell and exit signals confirm on candle close. Once a candle has closed with a signal, that signal stays where it is. The engine also includes anti-repaint logic designed specifically to avoid signals that appear and then disappear.
Like every indicator, the most recent forming candle can still update until it closes. We recommend acting only on confirmed, closed-candle signals — and we encourage you to verify this yourself with Bar Replay. You can read more about the signal logic on How It Works.
Non-repainting is necessary, not sufficient
A non-repainting indicator tells you the truth about its past. It does not guarantee that the past will repeat. You still need position sizing, a stop-loss on every trade and the discipline to skip low-quality setups. Our guide on ATR stop-loss and multiple take-profit targets covers the risk side in detail.
If you want to try a non-repainting indicator built around these principles, see the AAT Indicator plans.