- Product type
- Indicator
- Platforms
- TV
- Market / symbol
- Gold, FX majors, Indices, Crypto
- Experience level
- Intermediate
- Delivery
- File download from your dashboard
- Last update
- November 30, 2026
- Broker
- Any broker
- Product type
- Indicator
- Platforms
- TV
- Market / symbol
- Gold, FX majors, Indices, Crypto
- Experience level
- Intermediate
- Delivery
- File download from your dashboard
- Last update
- November 30, 2026
- Broker
- Any broker
Overview
A fair value gap (FVG) is where price moved so fast that a space was left between the wicks of the first and third candle. Many traders treat these areas as places price may come back to. This indicator finds them and keeps them on the chart until they are filled.
An ATR-based size filter drops tiny gaps that only clutter the chart. You also decide whether a gap is used up on the first touch, at its midpoint, or only when fully filled.
Not every gap leads to a reaction. It shows the areas; it does not set entries or stops.
- Bullish and bearish gaps, detected on closed bars only
- Gap size filter based on ATR
- Three mitigation modes: first touch, midpoint, full fill
- Delete or fade mitigated gaps, with a cap on open gaps
- Alerts for new gaps and for mitigated gaps
Made by
This tool is written by the TradeKit team. The source code is open and included in the download. It is free to use.
Strategy logic
Detecting a gap
- Bullish gap: the current bar’s Low is above the High two bars back. The gap is the space between them.
- Bearish gap: the current bar’s High is below the Low two bars back.
- The gap must be at least “multiple × ATR”. It is recorded only after the third bar closes, so it never appears and then vanishes.
Mitigation
- First touch: a bullish gap when Low reaches its top edge; a bearish gap when High reaches its bottom edge.
- Midpoint: when price reaches the middle of the gap.
- Full fill: when price reaches the far edge.
- Mitigation is checked before new gaps are added, so a gap is never mitigated on the bar that created it.
Display
- Open gaps extend to the right edge. When mitigated they are deleted, or stopped at that bar and faded.
Specifications
Requirements
- TradingView, the free plan is enough
- Any timeframe; raise the ATR filter on very low timeframes
- Up to 500 boxes on the chart; older ones are removed automatically
- Platforms
- TV
- Delivery
- Use case
- Scalping، Swing
- Market
- Gold، FX majors، Indices، Crypto
- Experience level
- Intermediate
Compatible brokers
Which brokers this product works with, and which it works best with.
No broker restriction: it works with any broker that offers the product's platform.
The broker choice is yours; TradeKit is not a broker. Check account terms before depositing. All brokers
Input parameters
| Parameter | Default | Description |
|---|---|---|
Bullish gapsShow bullish gaps |
true |
Show bullish gaps |
Bearish gapsShow bearish gaps |
true |
Show bearish gaps |
Minimum gap size (x ATR)Gaps smaller than this multiple of ATR are ignored (0 = keep all) |
0.25 |
Gaps smaller than this multiple of ATR are ignored (0 = keep all) |
ATR lengthBars used for the size-filter ATR |
14 |
Bars used for the size-filter ATR |
Mitigated whenWhen a gap counts as mitigated: First touch, Midpoint or Full fill |
Full fill |
When a gap counts as mitigated: First touch, Midpoint or Full fill |
Keep mitigated gaps (faded)Keep mitigated gaps on the chart, faded, instead of deleting them |
false |
Keep mitigated gaps on the chart, faded, instead of deleting them |
Max open gaps per sideMaximum open gaps per direction; the oldest is removed |
10 |
Maximum open gaps per direction; the oldest is removed |
Box transparencyGap box fill transparency |
80 |
Gap box fill transparency |
Show midpoint lineDraw a dotted line through the middle of each gap |
true |
Draw a dotted line through the middle of each gap |
Install guide
- Unzip the download. It contains
FairValueGap.pineand a short readme. - Open
FairValueGap.pinein a text editor such as Notepad and copy all of it. - In TradingView open a chart and click the Pine Editor tab at the bottom of the screen.
- Create a new blank indicator, select all of the default code and paste over it.
- Click Add to chart.
- Click Save to keep it in your scripts, so you can add it later from the Indicators menu.
Works on the free TradingView plan; your plan’s limit on indicators per chart still applies.
Changelog
-
v1.0.0 TV New November 30, 2026
- Published on TradeKit
Buyer reviews
No reviews yet.
Only verified buyers can review. Reviews are moderated before publishing.
Only verified buyers can review. Reviews are moderated before publishing.
Sign in to write a reviewFAQ
Which mitigation mode should I use?
Do the gaps repaint?
Why so many gaps on a 1-minute chart?
How well do gap entries work?
Related products
More Indicators and tools from the same family
Risk warning