Rift Fair Value Gap Fill Meter and Fill History
- Göstergeler
- Sürüm: 1.21
- Etkinleştirmeler: 10
Every fair value gap on your chart shows how much of it is already filled, and how often gaps on this symbol and timeframe were filled before.
Rift measures every fair value gap. Each gap carries a live fill meter, and the panel tells you what the gaps of this symbol and timeframe did in the past on your broker's own data: for example "89% of 64 gaps filled, median 4 bars". You see at a glance which gaps are fresh, which are half used, and how far price is from the next one, in the right unit for the symbol.
Main features
1. A fill meter on every gap. Each gap has a label with the share already filled, for example 41%, shown right of the newest candle at the level of its box (inverse gaps are labelled iFVG). It updates while the candle is still forming, so you see a gap being used in real time. You choose when a gap counts as filled: full fill, 50% midpoint, first touch, or a candle closing inside the gap.
2. Fill history from your own chart. The panel counts all chart timeframe gaps found in the scanned bars (default: the last 500 candles) and shows how many were later filled by your rule or closed through, and the median number of bars it took. The same rate is written in every new chart timeframe gap alert (for example "past gaps filled: 78%"), so each alert comes with context.
3. Three kinds of gaps on one chart, each with its own look. Gaps of the chart timeframe are filled boxes. Gaps of a higher timeframe (default H4) are gold outlines. Opening gaps (the day opens away from the previous close by at least the minimum size, charts below D1) are dotted outlines; those of the last 60 daily bars stay on the chart until they are filled. Higher timeframe and opening gaps are drawn as outlines, so they do not mix with the chart boxes into false colours.
4. Same day fill odds for opening gaps. Rift checks the last 250 closed daily bars (input) and shows how often an opening gap was filled on the same day, for example "80% filled same day (35 gaps)". It needs at least 10 past gaps, otherwise it says the sample is too small.
5. Inverse fair value gaps. When a candle closes through a gap, the gap becomes an inverse gap (dashed outline; on the chart timeframe it takes the opposite colour), also if it had already been filled. It disappears when a candle closes back through it.
6. Clear units for each type of symbol. Forex in pips (0.0001, 0.01 on yen pairs), gold with pip 0.10, silver with pip 0.01, indices, crypto and other CFDs in points ("pts", 1.0 of price). The unit in use is printed in the panel.
7. Six hidden buffers for your own expert advisor (see below), so the gaps can be used in automated rules without drawing anything.
How traders use it in a session
London or New York open, EURUSD M15: before the open you read a few rows. Nearest above and Nearest below give the distance in pips from the bid to the closest active gap on each side and how much of it is filled. Fill history tells you whether gaps on this pair and timeframe usually get filled, and how quickly. For example, a fresh gap 6 pips below, on a chart where most gaps were filled within a few bars, is a different situation from a gap 40 pips away.
Gold, H1 chart with H4 gaps: a chart gap that sits inside a gold H4 outline marks an area where two timeframes left a gap at the same price. Distances are in gold pips of 0.10, the pip size most gold traders use.
Index open, US30 M15: the dotted box shows today's opening gap, if there is one, until it is filled, and the panel shows how often an opening gap on this index was filled the same day. On indices with a daily session break this is a meaningful daily statistic; on forex most daily gaps are tiny jumps at the daily rollover and are usually filled the same day.
Away from the screen: switch on alerts for a new gap (chart timeframe, higher timeframe, opening gap) and for price entering a fresh chart or higher timeframe gap. Alerts can go to popup, sound, push notification and email.
What the panel shows
Timeframes: chart timeframe and the higher timeframe in use.
Fresh gaps: untouched chart timeframe gaps, bullish and bearish.
Higher TF: fresh and partly filled gaps of the higher timeframe, or "off" when the higher timeframe is not above the chart.
Partly filled: chart gaps that price has entered, and the number of inverse gaps.
Price inside: the newest active gap that contains the bid.
Nearest above and Nearest below: distance to the closest active gap on each side, its type and fill.
Fill history: share of past gaps filled and the median bars to fill.
Fill rule, Min size, Opening gaps or Gap fill odds, Units.
Every row has a tooltip, and every box on the chart has a tooltip with type, date, size and fill state. The panel size is measured from its own text, so the text stays inside the panel at higher Windows display scaling. On a short chart the panel becomes compact and keeps the first eight rows; the other four come back when the chart is tall enough. On a very short chart, use the minimize button. The minimize button keeps only a small tab and leaves all gaps on the chart; the choice is remembered for that chart. Fill labels sit in the free space right of the newest candle, past the end of every box, so they do not cover candles, the bid line, a box, the panel or each other. If there is no free place, for example with chart shift turned off, the label is hidden and its box and tooltip stay.
Inputs (grouped as in the indicator)
Detection: chart bars to scan (500, from 50 to 5000), minimum gap size in ATR (0.10, 0 means any, up to 5), ATR period (14, from 2 to 200), bullish gaps on or off, bearish gaps on or off.
Mitigation: when a gap is filled (full fill, 50% midpoint, first touch, candle closes inside), keep filled gaps on the chart (faded), show inverse gaps, expire unfilled gaps after N bars (0 means never, up to 100000).
Higher timeframe: timeframe (H4; current means off; it must be above the chart), bars to scan (300, from 50 to 3000).
Opening gaps: on or off (charts below D1), minimum opening gap in daily ATR (0.10, from 0.01 to 5), days used for the same day fill odds (250, from 20 to 2000), outline colour.
Display: maximum gaps on the chart (30 newest, from 1 to 200), fill labels on or off, colours.
Alerts: new gap, price enters a fresh gap, popup, sound, push, email.
Panel: position X and Y (12 and 24, from 0 to 5000).
Bars to scan must be at least the ATR period plus 10, and at least one direction must be on. Values outside the allowed range are refused at start with a clear message in the Experts log.
For expert advisor developers (hidden buffers)
Buffer 0: plus 1 on the third candle of every bullish chart gap and minus 1 on the third candle of every bearish chart gap in the scanned bars, 0 otherwise (empty before the scanned bars). Only closed candles are used, so a marked value does not change later.
Buffer 1: lower edge of the closest active gap above the bid, among the gaps drawn on the chart.
Buffer 2: upper edge of the closest active gap below the bid, among the gaps drawn on the chart.
Buffers 3 and 4: fill in percent of those two gaps (100 for an inverse gap).
Buffer 5: price inside a gap: plus 1 on the support side (a bullish gap, or the inverse of a bearish gap), minus 1 on the resistance side, 0 when the bid is in no gap.
Buffers 1 to 5 are written on the current bar; older bars keep the value they had while the indicator was running. Buffers 1 to 4 hold the empty value constant of MQL5 when there is no active gap on that side. With iCustom or IndicatorCreate, remember that MQL5 counts each input group line as a string parameter, so pass an empty string for each group.
Questions and answers
Does it repaint? A gap is detected only on closed candles, and the ATR of the size filter is computed on bars before the scanned window as well, so a gap marked once stays marked. What changes live, by design, is the fill meter, the distances and the state of a gap (filled, inverse).
Why do I see many inverse gaps? Most gaps get filled sooner or later, and a candle that closes through a gap turns it into an inverse gap. If you prefer a cleaner chart, switch inverse gaps off.
Why are the same day fill odds so high on forex? On most forex pairs the daily "gap" is a small jump at the daily rollover and is usually filled soon after. The statistic is most useful on indices with a session break and on Monday opens. On crypto that trades around the clock you will often read "none in the last 250 days".
Do I get a flood of alerts when I attach it or change timeframe? No. Alerts are armed only after the first full read of each source (chart, higher timeframe, opening gaps). Gaps that already exist when the indicator loads never trigger an alert.
Why did a gap disappear? It was filled (shown faded if you keep filled gaps), it expired (if you set an expiry), a candle closed back through its inverse, or it is older than the newest gaps allowed on the chart (30 by default).
Which symbols and timeframes? Any symbol and timeframe with enough history: forex, gold, silver, indices and crypto. Opening gaps are used on charts below D1.
Does it trade? No. It is an indicator: it never places, changes or closes orders. No external libraries, no web requests, no files.
Strategy Tester? Yes. In the tester the demo input presses the panel button by itself, so you can watch it work. Alerts are not sent in the tester.
Prop firm accounts? It sends no orders and shows no account data. The only thing it stores is one terminal global variable per chart that remembers whether you minimized the panel.
Push or email alerts do not arrive? If the terminal cannot send them, the Experts log shows one clear warning per channel and per chart that tells you which terminal setting to check.
Risk note
Trading involves a high risk of loss. Rift shows statistics from your broker's past and current prices. The past fill rate of gaps does not guarantee how future gaps will behave.
