The same indicator on the same symbol and timeframe gives different values on two brokers, and the usual first guess is a bug in the code. Very often the code is fine and the history is different. An indicator can only be as good as the bars that it reads, and bar history is not the same everywhere: some brokers have holes in it, some have bars that were made up to fill the holes, and a few have bars with prices that cannot be real.
The indicator reads the bars that the terminal holds for the chart and looks for six defects. It does not request any other data, and it does not change anything:
A step in time longer than InpBreakMinutes (two hours by default) is called a session break, not a hole: weekends, holidays and the daily break of an index are not missing data. Breaks are counted separately and do not lower the score. Set the limit just above the longest break that is normal for your symbol.
The result is a score that is easy to compare between brokers: completeness (bars present divided by bars present plus bars missing in holes) multiplied by the clean share (bars without any defect divided by all bars analysed). A score of 99% or more is GOOD, below InpPoorScore it is POOR, and in between FAIR. Fewer than 100 bars give no verdict.
The calculation is incremental. On every call only the new bars and the bar that was still forming are judged, each bar is judged against the bar before it and never against a later bar, and all totals come from a table of running counts, so the history is never rescanned and nothing is sorted. The newest bar is judged while it forms, so its flags can change until it closes. A hole is decided once its bar exists and is counted exactly once.

Fig. 1. The last 90 bars of an M5 chart with one bar of each defect: BAD (silver), HOLE of six bars (white), FILLER (light gray), REPEAT (gray), NOTICKS (dark gray) and SPIKE (darkest gray, with the long wick in the chart). The panel counts the whole analysed history, not only the visible bars. Black and white screenshot, per the Code Base image guidelines.
| Input | Default | Purpose |
|---|---|---|
| InpMinMissing | 1 | Fewest missing bars in a row that count as a hole (1-100). Raise it to ignore single missing bars. |
| InpBreakMinutes | 120 | A step in time longer than this is a session break, not a hole (1-10080 minutes). It is raised so that it is never shorter than a hole of InpMinMissing bars. |
| InpUseFiller | true | Look for filler bars. |
| InpFillerTicks | 1 | Most ticks that a flat bar may have to be called a filler bar (0-10). |
| InpUseRepeat | true | Look for bars identical to the previous bar. |
| InpUseZeroVolume | true | Look for bars without ticks. Switch it off for symbols whose history carries no tick volume. |
| InpUseSpike | true | Look for price spikes. |
| InpSpikeAtr | 6.0 | Wick length that counts as a spike, in ATR (2-50). It also limits the range that one bar adds to the ATR, so one spike does not hide the next one. |
| InpAtrPeriod | 14 | Period of the ATR used for the spike test (2-100). The first bars of the analysis are used to build the ATR and are not tested for spikes. |
| InpHistoryBars | 50000 | Newest bars analysed when the indicator loads or is fully recalculated. 0 analyses all bars. New bars are added as they arrive. |
| InpWindowBars | 1000 | Bars in the recent window of panel line 3 and in the rolling clean share (50-20000). |
| InpGoodScore | 99.0 | Score from which the history is called GOOD, in percent. |
| InpPoorScore | 95.0 | Score below which the history is called POOR, in percent. It is kept at or below InpGoodScore . |
| InpShowPanel | true | Show the statistics panel. |
| InpTextColor | clrSilver | Panel text color. |
| InpFontSize | 8 | Panel font size (Consolas). The line height follows the size. |
| InpPanelX , InpPanelY | 8, 14 | Panel offset from the upper left corner of the chart, in pixels. |
Indicator Doctor: Find Out Why Your MT5 Indicator Shows Nothing on the Chart
finds out why an indicator shows nothing on the chart. It reads the buffers of every other indicator on the chart and gives each one a verdict: not calculated, all values empty, values only in the newest bars, all values zero, no values in the visible bars, or values outside the visible scale. A panel lists the problems first, gives one line of advice and prints a report line that can be pasted into a comment.
EzoO Trade Manager - break-even and trailing stop for open positions (manual or any EA)
Moves the stop loss of already open positions (manual or from any EA) to break-even and then trails it by points or ATR. Never opens or closes trades, only moves the SL in your favour.
Account Settings Sync - Bidirectional EA Settings Across Charts
Small MQL5 library that shares an EA's own runtime settings between charts of the same account, with edits from either chart, a file lock and per-field merge.
Swing Level Breaks Graded by Volume
Draws support and resistance from confirmed swing points and keeps each level live, with its price on the chart, until a close breaks it. Every break is graded on the spot: an arrow when volume surges, a diamond when the candle shows a rejection wick, a hollow circle when price slipped through without either.