Skip to main content
Cart Log in Sign up
Indicator

Fair Value Gap: three-candle imbalances with mitigation

Marks bullish and bearish three-candle gaps with boxes on a TradingView chart, and flags each one as mitigated when price returns to it.

Platform

License

Price

≈

Version

You own this product. Go to My products
Get the demo

  • Automatic, instant delivery once payment confirms
  • Free updates for every future version
  • 12 months of technical support
  • Refunds under a transparent policy
  • Pay with USDT, BTC, ETH and more
  • Free: no payment, download it right now

Risk warning: Trading financial markets carries a risk of losing capital, and past performance does not guarantee future results. Terms & conditions

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.

Works with every broker

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

Input parameters
ParameterDefaultDescription
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

  1. Unzip the download. It contains FairValueGap.pine and a short readme.
  2. Open FairValueGap.pine in a text editor such as Notepad and copy all of it.
  3. In TradingView open a chart and click the Pine Editor tab at the bottom of the screen.
  4. Create a new blank indicator, select all of the default code and paste over it.
  5. Click Add to chart.
  6. 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

  1. 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 review

FAQ

Which mitigation mode should I use?
It depends on your method. First touch is the strictest and removes gaps quickly. Full fill keeps a gap until it is completely filled. Midpoint sits between the two.
Do the gaps repaint?
Detection happens on closed bars only and does not change afterwards. Mitigation can be recorded on the current bar as price moves, because it happens the moment price reaches the gap.
Why so many gaps on a 1-minute chart?
Low timeframes have many small moves. Raise the minimum size multiple, for example to 0.5 or 1, or lower the number of open gaps.
How well do gap entries work?
We make no statistical claim. If you want to trade gaps, test the idea on historical data and a demo account first.

Related products

More Indicators and tools from the same family

Compare Compare now