GapTracker finds opening gaps on any symbol and timeframe: bars whose open is at least a chosen number of points away from the previous bar's close. Each gap is classified as a daily gap (the first bar of a new trading day), a weekend or holiday gap (the first bar after a pause longer than a threshold, 36 hours by default) or, if you ask for it, a plain bar-to-bar gap inside the day.
For every gap the indicator then watches the following bars and records when the gap is filled, that is when price trades back to the previous close: a gap up is filled when a later low reaches the previous close, a gap down when a later high reaches it. The gap bar itself counts, so a gap that is closed within its first bar is reported as filled after 0 bars. You can stop waiting after a given number of bars.
The screenshot shows AAPL H1: the grey boxes are daily gaps that were filled later, the blue boxes are gaps up that are still open and therefore extend to the last bar.
![]()
When a new gap appears in real time the indicator can show a pop-up alert, send a push notification to the mobile terminal and play a sound. The message carries the symbol, timeframe, type, direction, size in points, previous close and open. Historical gaps found when the indicator is attached are not announced.
The file is rewritten whenever a gap appears or gets filled and holds one line per gap:
time, symbol, period, type, direction, prev_close, open, gap_points, filled, fill_time, bars_to_fill
It goes to MQL5\Files (or to the common Files folder) and is named GapTracker_<symbol>_<period>.csv unless you set a name. It is meant for research in a spreadsheet, for example how often the weekend gaps of your symbol fill within the first day, or how big a gap has to be before it stays open.
Two buffers are plotted as DRAW_NONE, so they appear in the Data Window and can be read with CopyBuffer:
The indicator deliberately has no input groups: a group header takes a parameter slot in iCustom and silently shifts every value an EA passes after it. Parameters are passed in the order of the inputs, for example:
int handle = iCustom(_Symbol, _Period, "GapTracker", 0, 50, 36, 5000); // scope, minimum points, weekend hours, bars to scan double gap[1], type[1]; CopyBuffer(handle, 0, 1, 1, gap); // gap size in points of the last closed bar, 0 = no gap CopyBuffer(handle, 1, 1, 1, type); // 1 daily, 2 weekend, 3 bar
Compiled with MetaTrader 5 build 6182, 0 errors and 0 warnings.
Trade Environment Check: account mode, symbol trading rules and open positions in one report
Script that reports what an EA has to cope with here: hedging or netting, trade permissions, filling modes, stop and freeze levels, volume rules, swaps and the positions already open on the symbol. Saves a report file you can attach to a Freelance order.
Extreme Price Filter
An indicator to reveal the the time candles breached an extreme price boundary
Order Watchdog - alerts on unknown magic, duplicates, no SL, stop outs (read-only)
Read-only watchdog for MT5: alerts on unknown magic numbers, duplicate positions after reconnects, missing SL, stop outs and what happened while it was off. Never trades.
Session Time Highlighter
Highlights the Asia, London and New York sessions and the London/New York overlap using real local time and daylight saving rules, so the session boxes are correct on any broker.