You load a new indicator and scroll back through the chart. Every arrow sits on a swing high or a swing low. It looks like the best signal you have ever seen. You run it live for a week and the arrows come late, move, or vanish. Then you restart the terminal, scroll back, and the history looks perfect again.
That indicator is repainting. It is one of the most common reasons an EA or a manual system that “worked on the chart” fails with real money. This post explains what repainting is, how to spot it, and how to test an indicator properly on your VPS.
What Repainting Means
An indicator repaints when the value it shows for a past bar changes after that bar has closed. The history you see is not what the indicator showed at the time. It is what the indicator worked out later, with the benefit of bars that came afterwards.
Live, you only ever have the information available up to the current tick. An indicator that needs future bars to decide where its signal goes cannot give you that signal at the moment it appears on history.
📊 Key Stat: The current bar (bar 0) is still forming. Any indicator value calculated from it can change on every tick until the bar closes. Only values on closed bars can be final, and a repainting indicator changes even those.
The Common Types
Signals on the forming bar
Many indicators, including standard ones like moving averages and RSI, update on the current bar as price moves. A crossover can appear mid-bar and disappear before the close. This is not true repainting, because once the bar closes the value is final, but it fools anyone, or any EA, that acts on bar 0.
Indicators that need future bars
Some indicators can only confirm a point after more bars have formed:
- Fractals mark a high or low only once the bars after it are known, so the arrow appears a couple of bars late, on a bar in the past.
- ZigZag redraws its most recent leg as new highs or lows form. The last line on the chart is never final.
These are useful tools, but their signals are late by design. On history they look as if they appeared at the turn.
Multi-timeframe indicators
An indicator on an M15 chart that shows H4 values changes all of those M15 bars until the H4 bar closes. On history, every M15 bar shows the final H4 value. Live, it showed whatever the H4 bar looked like at that moment.
Indicators that rewrite history
Some custom indicators recalculate their whole history on every tick using the latest data. Arrows move or disappear. These are the most misleading, and are common among indicators sold with “no loss” screenshots.

Why It Hurts EAs and Backtests
An EA that reads a repainting indicator acts on what the indicator shows at that tick. That is often different from what the chart shows later, so:
- The EA trades signals you never see on the chart afterwards, and misses ones that appear later on history.
- Backtests can look far better than live. The Strategy Tester replays bars and the indicator calculates as it goes, which can expose repainting. But some indicators still behave differently in the tester. Visual mode helps you see it. See why your backtest does not match live results.
- Restarts hide the evidence. When the terminal restarts, the indicator recalculates all of history, and the chart looks perfect again. See EA restart state: what your EA remembers.
⚠️ Warning: Judging an indicator by scrolling back through history tells you almost nothing about how it trades. Only signals recorded at the time they appeared count.
How to Test an Indicator on Your VPS
A VPS is ideal for this, because the test needs the terminal running without interruption.
- Use a demo account in its own terminal. See forward testing an EA on a VPS.
- Take a screenshot when each signal appears. Note the time and the bar. Many indicators have an alert option, which gives you a time stamped record. See MT4 and MT5 push notifications on a VPS.
- Come back a few hours later, or after several more bars, and compare the same bars. Did any arrow move, disappear or appear on a bar that had already closed?
- Restart the terminal and compare again. Changes after a restart are a strong sign the indicator recalculates history.
- Run it in the Strategy Tester in visual mode and watch the signals bar by bar.

💡 Tip: Put the indicator on two charts of the same symbol and timeframe. Leave one running all day and attach the other fresh in the evening. Any difference in the signals on closed bars is repainting.
Making an EA Use Indicators Safely
If you build or commission an EA, these choices remove most of the problem:
- Read closed bars only. Use the value on bar 1 (the last closed bar) rather than bar 0. The signal comes one bar later, but it does not change.
- Act once per new bar, not on every tick, for bar based strategies.
- For multi-timeframe values, use the last closed bar of the higher timeframe.
- Avoid indicators that need future bars for entries, or treat their signals as confirmed only after the bars they need have closed.
If you buy an EA that uses a custom indicator, ask the vendor whether it repaints and whether it acts on closed bars.
✅ Best Practice: Forward test any new indicator or signal EA on a demo account on your VPS for several weeks. Record live signals and compare them with what history shows at the end. The gap between the two is the honest measure of the indicator.
Is It the Indicator or the VPS?
Repainting is in the indicator’s code. A VPS cannot cause it or fix it. What a VPS does change is that your terminal runs without breaks, so you see the indicator’s real live behaviour. On a home PC that sleeps, restarts or loses its connection, the terminal recalculates history each time it comes back, which hides repainting even more.
If your EA also misses signals because the terminal falls behind, check CPU use. Heavy indicators recalculating history on every tick can push a VPS to 100%. See trading VPS CPU at 100 percent: how to fix it.
Recommended FXVPS Plan
- Core ($29/mo, 2GB RAM, 1 vCPU): one or two terminals, enough for a live terminal and a demo test.
- Pro ($39/mo, 4GB RAM, 2 vCPU): several terminals, or heavier custom indicators.
- Scaling ($79/mo, 8GB RAM, 4 vCPU): many charts and indicators, or regular backtesting.
See the pricing page, or start with the $2.99 7-day trial.
Why FXVPS for Testing Indicators and EAs
- 24/7 uptime, so forward tests run without the restarts that hide repainting.
- Room for test terminals beside your live ones.
- Servers near your broker in London, New York, Tokyo, Hong Kong and over 15 locations.
Frequently Asked Questions
What is a repainting indicator?
One that changes its values or signals on bars that have already closed. History shows where the signal ended up, not where it was when it appeared.
Do moving averages repaint?
No. A standard moving average changes on the forming bar but is fixed once the bar closes. Acting on the forming bar can still fool you.
Why does my chart look perfect again after a restart?
The terminal recalculates every indicator from the start of history when it loads. A repainting indicator redraws its signals in the “perfect” places.
How can I tell if an indicator repaints?
Record signals as they appear, with screenshots or alerts, and compare them with the same bars later. Any change on a closed bar is repainting.
Can a VPS stop an indicator repainting?
No. Repainting is in the indicator’s code. A VPS keeps the terminal running so you can see its real live behaviour.