TrueTestHonest results, on the record.

Does my EA repaint or look ahead?

EA Trade TesterDemo labHow we testFor AI agents

Published · methods v2.5 · by TrueTest

An indicator repaints when a signal it showed on a past bar changes later. A backtest has look-ahead when a decision uses a price that was not known yet at that moment. Both make past results look far better than anything that can be traded, and both are easy to build by accident.

Check my indicator freeSee a full example first

Drop your .mq5/.mq4 code, a Python bot or an MT5 report on the home page. The first read takes seconds and needs no sign-up; the lab verdict is free too. Only the detailed technical report is paid (the full PDF report is GBP 49). The price shown is the total price: no VAT is added. TrueTest is not VAT-registered in the UK. We read your code as text and never run it as given; an outside AI service drafts the rule card only if you tick the box (see Security). Not financial advice.

What are the common causes?

How does our look-ahead probe work?

We cut the price data part-way and run the rules again on the shorter history. Every signal before the cut must be exactly the same as with the full history. A signal that changes when later data is removed was using the future, and the lab reports it.

How can I check an indicator myself?

  1. Run it in the MT5 Strategy Tester in visual mode, and note the signals as they appear bar by bar.
  2. At the end of the run, compare them with the signals now drawn on the same past bars.
  3. Any signal that moved, appeared or vanished is repainting.

Is every repainting indicator useless?

No: a repainting indicator can still be read on closed bars only, once its value is final. The problem is a backtest or an EA that trades on the first, unfinished value as if it were final.

Related pages

More guides: MT5 Strategy Tester report checker · Free forex EA tester online · Is my EA martingale or grid? How to tell · How to test a gold (XAUUSD) EA properly · How many backtests? Overfitting explained · EA costs: spread, commission and swap · TrueTest vs StrategyQuant, Forex Tester, MT5 · EA trading at the wrong hour? Server time · Can a scalping EA make money after costs? · Does my EA make money every year? · Will my EA pass a prop-firm challenge? · What to check before you buy an EA

Questions people ask

Does the MT5 tester catch look-ahead?

Not by itself. It runs the code as written; if the code reads a value that is not final yet, the tester uses it too.

Can a backtest be too good to be true?

Yes. A profit factor above 5 or more than +1 R a trade is a typical sign of look-ahead or missing costs; our checks flag implausible records.

Do you test indicators without an EA?

Yes: send the indicator code and the rule you use (for example, buy when the arrow appears). We test our rebuilt copy of that rule.

Is this financial advice?

No. It is about how tests can mislead. Not financial advice.