How to Catch 3 Types of Indicator Repainting in MT5 (Before Risking Real Money)

How to Catch 3 Types of Indicator Repainting in MT5 (Before Risking Real Money)

24 November 2026, 14:01
Naim El Hajj
0
7

If you have ever tested a custom MT5 indicator that looked 90% accurate on a static historical chart — only to watch signals disappear, move backward, or fail in live trading — you ran into repainting.

Static chart inspection cannot prove an indicator does not repaint, because once past bars are recalculated, the erased arrows are gone. The only reliable way to verify an indicator is to snapshot its closed-bar buffer values and chart objects on every bar close and re-check them on later bars.

The 3 Repainting Failure Modes

  • 1. Vanished Signals ( VANISHED ): An arrow or buffer signal appears on bar 1 close, then gets deleted a few bars later when price moves against it.
  • 2. Late Signals ( LATE_APPEAR ): No signal existed when bar 1 closed, but 2–5 bars later an arrow is plotted retroactively at an earlier swing high or low.
  • 3. Shifted Values ( SHIFTED_VALUE ): Oscillator or line values on already-closed bars quietly change as new bars arrive.

Why Closed-Bar Backtesting Matters Just as Much

Even a non-repainting indicator can mislead if evaluated visually. Real execution only happens after a bar closes ( bar 1 close → next bar open ), with realistic Stop Loss and Take Profit rules (such as ATR-based stops and fixed R-multiples) and statistical sample checks ( Win Rate , Profit Factor , Expectancy , and t-statistic ).

Automating the 60-Second Audit

Instead of writing custom test EAs for every indicator you download, I built Panoptic Indicator Auditor (MT5). Drop it onto a chart with any compatible custom indicator (or run it in Strategy Tester via iCustom ) and it:

  • Snapshots closed bars and flags every VANISHED , LATE_APPEAR , or SHIFTED_VALUE event with a compact X marker and a clear PASS / FAIL verdict.
  • Runs a strict closed-bar backtest (supporting ARROWS , 2-LINE , THRESH , OBJECTS , and PRICE-X modes).
  • Exports every trade and repaint event to CSV for review.

Note: Built for custom .mq5 / .ex5 and CodeBase indicators that allow buffer/chart access; third-party Market demos with DRM locks that block iCustom() are reported cleanly without crashing.

Files: