Fair Value Gap

Aug 22, 2022

Static chart image
Price Action Based
FVG
Works on the following platforms:
tradingviewSymbolTradingView
For free use on the TradingView platform
ninjatraderNinjaTrader
For free use on the NinjaTrader platform
metatrader4MetaTrader 4
For free use on the MetaTrader 4 platform
metatrader5MetaTrader 5
For free use on the MetaTrader 5 platform
thinkorswimThinkorswim
For free use on the Thinkorswim platform

Fair value gaps (FVG) are essential tools for technical analysts, highlighting imbalances between market participants. This indicator displays fair value gaps alongside metrics like the percentage of filled gaps and their average duration before being filled.

Traders can receive alerts when an FVG is filled, enhancing their trading strategy with timely notifications.

How to Trade Fair Value Gaps?

indicator image

In trading, FVGs signal potential areas of support (bullish FVG) and resistance (bearish FVG). Once a gap is filled, indicating the closure of an imbalance, traders often anticipate a price reversal.

Those adopting a contrarian strategy may benefit from this approach, while trend-followers might utilize FVGs as actionable signals. This means going long when a bullish FVG is identified and short when spotting a bearish FVG.

Understanding Mitigation

indicator image

By default, the indicator displays only unmitigated FVGs. However, users have the option to track the mitigation level of already addressed FVGs, specifically the lower extremity of bullish and the upper extremity of bearish gaps.

With the "Dynamic" setting, users can monitor the progress of a mitigated FVG.

Setting the Right Threshold

indicator image

The height of the gap can reflect the level of imbalance between buyers and sellers. Traders can filter FVGs based on this gap height using the "Threshold %" setting, ensuring more precise trading indicators. The "Auto" function applies an automatic threshold, capturing only the more volatile FVGs.

Indicator Detection Rules

The script applies these criteria for identifying FVGs:

Bullish FVG

  • low > high(t-2)
  • close(t-1) > high(t-2)
  • (low - high(t-2)) / high(t-2) > threshold

Upper Bullish FVG = low Lower Bullish FVG = high(t-2)

Bearish FVG

  • high < low(t-2)
  • close(t-1) < low(t-2)
  • (low(t-2) - high) / high < -threshold

Upper Bearish FVG = low(t-2) Lower Bearish FVG = high

Adjustable Settings for Custom Strategies

  • Threshold %: Set the percentage threshold to filter FVGs by height.
  • Auto Threshold: Automatically uses the cumulative mean of FVG heights as a threshold.
  • Unmitigated Levels: Extend mitigation levels for unmitigated FVGs as set by the user.
  • Mitigation Levels: Reveal mitigation levels of addressed FVGs.
  • Timeframe: Select the data timeframe for detecting FVGs.

FAQ

How can I access the Fair Value Gap Indicator? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

What makes FVG a vital trading indicator? FVG highlights potential price reversals, serving both contrarian and trend-following trading strategies.

Can alerts be set for FVG instances? Yes, traders can enable alerts for when an FVG is filled, providing real-time insights.

Trading is risky and many will lose money in connection with trading activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other markets involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.

Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.

As a provider of technical analysis tools for charting platforms, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content or tool we provide.

Charts used on this site are by TradingView in which the majority of our tools are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com. TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.

This does not represent our full Disclaimer. Please read our full disclaimer.

© 2025 LuxAlgo Global, LLC.