Ballast Fair Value Gaps MT4
- Indicatori
- Versione: 1.0
- Attivazioni: 5
Fair value gaps that test themselves. Ballast Fair Value Gaps marks every 3-bar imbalance (a gap between the high of one bar and the low of the bar two bars later) from closed bars, shows which gaps are still open, which were retested and which were filled, alerts you when price comes back into a gap, and its panel checks every past retest on your chart: did price hold or break through, and did gaps hold more often than random zones of the same size?
FVG trading assumes that price reacts when it comes back to a gap. Most gaps do get filled (in our study 91-99% of them, typically within 5-9 bars), but that alone says little: price comes back to almost any nearby level. So the panel compares gaps with random zones, the same gaps moved 3 ATR up and down, tested the same way. In our own study with default settings (8 markets and timeframes, 3,155 retests) gaps held 60.4% of retests and random zones 59.1%: 1.3 points better, which is within chance. With a smaller move (0.5 ATR) gaps did better in 7 of 8 markets (64.1% against 58.1%): a small bounce is more common at a gap than at a random zone, a 1 ATR move is not. On your symbol it may be better or worse, and the panel tells you which, with a luck check and the most recent retests shown on their own.
On the chart
- Gaps from closed bars: bullish when the low of a bar is above the high of the bar two bars earlier, bearish the other way round; minimum height 0.3 ATR (input). A gap appears when its third bar closes and never moves or disappears afterwards (no repaint).
- Open, retested, filled: the open gaps nearest the price are drawn to the right edge (bright box = not retested yet, dim box = retested). A gap is filled when price trades through its far edge; recently filled gaps are drawn as grey outlines up to that bar.
- Retest dots on the first retest of each gap: green = held (price moved 1 ATR away first), red = broke (1 ATR beyond the far edge first), grey = still open. A retest can appear while a bar forms and never disappears. Checked tick by tick in the Strategy Tester (see Tested).
- Test panel: retests, held, broke and held % for all gaps, bullish gaps, bearish gaps and random zones; the recent part on its own; the difference gaps minus random with a z value and a verdict: too few retests, no better than random, luck? (z below 2), faded (not better recently) or edge. Plus how many gaps were retested and filled and the median number of bars to fill.
- Alerts when price first comes back into a gap, and if you want when a new gap forms: pop-up, sound, push to your phone, e-mail. The retest message includes how gaps did on this chart.
- MetaTrader 4 buffers for an EA: 0-5 = dots (bullish held, broke, open; bearish held, broke, open), 10 = new gap, 11/12 = its top/bottom, 13 = first retest, 14/15 = nearest open bullish gap top/bottom, 16/17 = nearest open bearish gap top/bottom, 18/19 = results, 20 = ATR.
How to use
- Attach it to a chart. The panel tests the gaps of the last 5,000 bars (input); more history needs a higher "Max bars in chart" in the terminal settings.
- Use gaps for entries, stops and targets as you do now, and look at the panel before you trust them on a symbol and timeframe. Change the minimum gap or the test distance and the panel recalculates. If you try many settings and keep the best one, part of what you see is luck: the Recent column and the random zones are there to catch that.
- Free demo: run it in the Strategy Tester in visual mode on any symbol before you buy.
Tested
- MetaTrader 4 Strategy Tester, 4 cases (EURUSD H1, GOLD H1, EURUSD M15, EURUSD D1, with different settings): the gap and retest buffers of 12,580 bars recorded on the first and last tick of every bar: 0 changed. An independent recalculation of all gaps, 3,674 retests, the buffers and the panel numbers: identical. Market-style check on 8 cases: 0 errors, gaps in every case.
Good to know
- Held and broke are measured with the bars of this chart: when one bar reaches both levels, it counts as broke, and the retest bar itself can only count as broke.
- Retests close in time are related, so treat the z value as a guide, not as proof. Past results do not guarantee future results. This is an indicator: it does not trade.
Inputs
- ATR period: 14
- Minimum gap height (x ATR): 0.3
- A gap stays open at most N bars: 500
- Held = price moves this far away before this far through (x ATR): 1.0
- Wait at most N bars for the result: 100
- Random zones: each gap shifted up and down by (x ATR): 3.0
- Test gaps of the last N bars: 5000
- Recent part shown separately (% of the bars): 30
- Panel, open and filled gaps drawn, dots, colours, font size, panel corner
- Alerts: new gap, retest; pop-up, sound, push, e-mail
Works well with
- Ballast Support Resistance Zones MT4: support and resistance zones tested against random lines
- Ballast Trend Signals MT4: trend line with arrows that trade-test themselves
- Ballast Candle Patterns MT4: free: candle patterns tested against the same trade taken later
- Ballast RSI Divergence MT4: RSI divergence with the same fair trade test
- Blog: Fair value gaps and RSI divergence vs a fair control: the full study behind this indicator, market by market
