Agimat FX® MetaTrader 5 · Non‑repaint

Home  /  Guides

What is a non-repaint indicator?

Three different behaviours get called “repainting” and they are not equally bad. Here is what the word actually means, why it quietly ruins backtests, and how to test any indicator yourself in about ten minutes.

Last updated 2026-10-14

A non-repaint indicator is one whose output never changes after a bar has closed. What you saw at 10:15 is still there tomorrow, in the same place. A repainting indicator rewrites its own history — which is why its chart looks so much better than its results.

This page explains what repainting actually is, why it quietly destroys backtests, and how to test any indicator yourself in about ten minutes. Including mine.

Three different things get called “repainting”

Most arguments about this are people talking past each other, because the word covers three behaviours that are not equally bad.

1. Recalculating on the forming bar — normal

While the current bar is still open, its high, low and close are still moving, so any indicator reading them is still moving too. An arrow that flickers on the live bar and settles when it closes is not repainting. It is doing arithmetic on data that has not finished arriving.

This is the behaviour people most often mistake for cheating. It isn't.

2. True repainting — the real problem

The value for a closed bar changes later. The signal was there yesterday and is gone today, or it has moved two bars left. Anything built on swing highs and lows that are only confirmed in hindsight — ZigZag being the classic — behaves this way by design, because a swing point is not knowable until price has moved away from it.

Used as a drawing tool that is fine. Sold as an entry signal it is not, because the version of the chart you are shown never existed while it was tradeable.

3. Backpainting — the dishonest one

The signal is calculated late but drawn at the earlier bar where it would have been perfect. The chart is immaculate: every arrow sits at the exact turn. In live trading the arrow appears three bars after that turn, by which time the move is gone.

This is the behaviour that sells screenshots, and it is the hardest to catch, because nothing ever changes once it is drawn. It was simply never available at the time it claims.

Why it wrecks a backtest

A backtest is an attempt to answer one question: if I had been sitting there, what could I have done? Every form of repainting answers a different question — what could I have done if I had known how it turned out?

The damage is not a small bias. A signal that knows where the swing ended is close to a perfect entry, so the curve looks extraordinary rather than merely good. If you have ever tested a system that produced an almost unbroken equity line in the tester and bled money live, this is the most likely explanation.

How to test any indicator yourself

You do not need the source code and you do not need to take anyone's word for it.

The screenshot test — catches true repainting

  1. Load the indicator on a live chart and let a few signals print.
  2. Screenshot the chart, including the time axis, and note the time.
  3. Come back several hours later, or the next day, on the same chart and timeframe.
  4. Compare the two images bar by bar.

Any arrow on an already-closed bar that has moved, vanished or newly appeared is repainting. Ignore whatever is happening on the rightmost, still-forming bar.

The forward-walk test — catches backpainting

This is the one that catches the dishonest case, and almost nobody does it.

  1. Watch the chart live and write down the exact time you first saw each signal appear — not the bar it is sitting on.
  2. Later, compare what you wrote down against where the arrows now sit.

If an arrow sits on the 10:00 bar but you first saw it at 10:45, it is backpainted. The chart will never tell you this, because the arrow does not move. Only your own timestamps reveal it.

The visual-mode test — fastest

In MetaTrader 5, run the indicator through the Strategy Tester in visual mode and step forward bar by bar. Signals that appear and later vanish are repainting in front of you. It is quick, though it is less reliable for backpainting than the forward-walk above.

If you have the source

With an .mq5 file you can look directly. In series indexing, index 0 is the newest bar and higher indices are older — so a value written for bar i that is computed from bar i-1 is reading a bar that had not formed yet. Signals derived from a confirmed swing point, or from any buffer that is itself revised later, carry the same problem.

You cannot do this with a compiled .ex4 or .ex5 — which is most of what is sold. That is exactly why the behavioural tests above matter more than reading code.

What a non-repaint claim should actually mean

When someone says non-repaint, hold them to three things:

The first is the easy one to satisfy and the only one most products are actually claiming. The second is where the trouble lives.

Where Agimat FX stands

Agimat FX Gold for MetaTrader 5 is non-repaint in the strict sense: the arrow prints at the close of the bar and stays where it printed. No revision of closed bars, no drawing back to a prettier place.

That is a claim, and the point of this whole page is that claims are worth nothing. So here is the audit.

The audit

Every bar of XAUUSD H1 between January 2023 and October 2026 was replayed one bar at a time. At the moment each bar closed, all four indicator buffers were recorded. The same bar was then read again fifty bars later, and the two readings compared.

bars compared   22,111
values checked  88,444
signals printed 1,097  (725 buy / 372 sell)
values changed  0

Both halves of that matter. Every signal held its exact value fifty bars on, which is the first criterion above. And every bar that was empty when it closed was still empty fifty bars later, which is the second — nothing was drawn back into history after the fact. That second number is the one that counts, because backdating is the easy mistake to make and the hard one to see.

The comparison is published raw rather than summarised: 30,352 rows, each with the value at the bar's close, the value fifty bars later, and whether it changed. Open it and sort the last column.

This says nothing about whether the signals make money. It is a test of honesty, not of profitability. It shows the indicator tells the truth about its own history — no more than that. Those are separate questions and they deserve to stay separate.

Do not take the audit on trust either. It is the visual-mode and forward-walk logic described above, done mechanically across 22,000 bars instead of by hand across a few dozen.

The same test on an indicator that repaints

A result of zero means little until you have seen what a failure looks like. So the identical test — same probe, same symbol, same timeframe, same 22,111 bars — was run on ZigZag, the swing indicator that ships with every copy of MetaTrader 5.

bars compared                 22,111
bars changed                  5,296  (24%)
points drawn at a bar’s close  6,516
of those, gone fifty bars later 5,255

Four out of five turning points ZigZag showed live were erased afterwards. And 41 points on the finished chart were not there when their bar closed — they were drawn in later.

That is not a defect. ZigZag is a drawing tool and is meant to work this way, as described above. It is here because it shows what the number looks like when an indicator does revise its history. Any arrow indicator built on the same swing logic will fail in the same way, and whether yours is one of them is exactly what the probe will tell you.

The ZigZag result is published raw as well: 66,333 rows. Buffer 0 is the line it draws; the figures above are for that buffer.

Run it yourself, on any indicator

The probe is not specific to Agimat. It reads whatever indicator you point it at, so you can run this exact test on something you already own — a competitor’s product, or one of the copies being sold under my name.

Drop the probe into MQL5\Experts\IndiProbe\, refresh the Navigator, and point IndiName in the config at whichever indicator you want to test. Then run the tester from a command line:

terminal64.exe /config:<path>\agimat-repaint.ini

It records every buffer the moment each bar closes, re-reads the same bar fifty bars later, and prints the comparison. A line reading CHANGED=0 means nothing was revised. Anything else is the indicator rewriting its own history, and the CSV will tell you exactly which bars.

When Agimat FX is released, run the forward-walk test on it yourself as well. That is the test I would want someone to run on my own work, and an indicator worth buying will survive it.