OPEN-SOURCE SCRIPT

Day Trade Setup - FVG Finder

94
Day Trade Setup - FVG Finder

Day Trade Setup - FVG Finder is a Fair Value Gap detection tool designed to identify bullish and bearish price imbalances directly on the chart.

The indicator scans both the current chart timeframe and a user-selected higher timeframe, then displays active FVG zones as colored boxes with optional price labels. Zones remain visible until they are mitigated or, for chart-timeframe zones, expire after the selected lookback period.

How It Works

A bullish Fair Value Gap is detected when the low of the current candle is above the high from two candles earlier, creating an untraded price area between them.

A bearish Fair Value Gap is detected when the high of the current candle is below the low from two candles earlier.

The script measures the size of each gap in points and displays only the zones that meet the minimum gap-distance setting selected by the user.

All chart-timeframe FVG calculations are confirmed after the candle closes.

Main Features
Detects bullish and bearish Fair Value Gaps
Displays FVG zones directly on the chart
Adjustable minimum FVG gap size
Customizable bullish and bearish zone colors
Adjustable zone transparency
Automatic extension of active zones
Automatic removal when a zone is mitigated
Optional expiration of older chart-timeframe zones
Higher-timeframe FVG detection
Adjustable higher-timeframe gap threshold
Optional price labels for the upper and lower edges of each zone
Light and dark chart-theme support
Alerts for new and mitigated FVG zones
Current Timeframe FVG Zones

The indicator scans the active chart timeframe for three-candle price imbalances.

When a valid bullish or bearish FVG is detected, the zone is drawn from the originating candle area and extended to the right.

Chart-timeframe zones remain active until:

Price closes beyond the opposite boundary of the zone, or
The zone exceeds the selected historical bar limit

For a bullish FVG, the zone is considered mitigated when price closes below its lower boundary.

For a bearish FVG, the zone is considered mitigated when price closes above its upper boundary.

Higher-Timeframe FVG Zones

Users can enable Multi-Timeframe FVG detection and select a separate higher timeframe.

Higher-timeframe zones are calculated using completed higher-timeframe candles to reduce changes caused by an unfinished candle.

HTF zones are displayed on the current chart and continue extending until price closes beyond their mitigation boundary.

This allows traders to monitor broader price imbalances without switching between multiple charts.

FVG Gap Filter

The FVG GAP (Point) setting controls the minimum size required for a chart-timeframe imbalance to be displayed.

The HTF FVG GAP (Point) setting applies the same type of filter to higher-timeframe zones.

Increasing these values reduces the number of smaller gaps shown on the chart, while lowering them allows the indicator to display more zones.

The correct point value may vary depending on the symbol, broker, and minimum tick size.

Price Tags

Optional price tags can be displayed at the upper and lower boundaries of every FVG zone.

Users can choose to:

Match the tag color with the bullish or bearish zone
Automatically adjust the tag color for light or dark charts
Select custom background and text colors
Change the tag-text size

These labels help users read the exact zone boundaries without manually checking the price scale.

Alerts

The indicator provides alert conditions for:

New Bullish FVG
New Bearish FVG
Bullish FVG Mitigated
Bearish FVG Mitigated
New Bullish Higher-Timeframe FVG
New Bearish Higher-Timeframe FVG
Bullish Higher-Timeframe FVG Mitigated
Bearish Higher-Timeframe FVG Mitigated

After adding the indicator to the chart, users can create TradingView alerts for any of these conditions.

Suggested Use

FVG zones may be used as areas of interest for:

Pullbacks
Rebalancing of price imbalances
Support and resistance context
Trend-continuation setups
Liquidity and market-structure analysis
Multi-timeframe confluence

The indicator does not generate direct Buy or Sell entries. Traders should evaluate each zone together with market structure, trend direction, liquidity, volatility, trading session, and personal risk-management rules.

Limitations

Fair Value Gaps do not guarantee that price will return to a zone or react from it.

During volatile market conditions, multiple zones may form within a short period. Some zones may be mitigated immediately, while others may remain active for an extended time.

Mitigation is determined using candle closes beyond the selected zone boundary. Intrabar price movement alone does not remove a zone.

Higher-timeframe zones are based on completed higher-timeframe candles, so they appear only after the relevant candle has closed.

Historical zones may also be limited by TradingView drawing-object limits and the selected lookback settings.

Disclaimer

Day Trade Setup - FVG Finder is provided for technical analysis and educational purposes only.

It does not provide financial advice, investment advice, trade recommendations, or guaranteed trading results. Fair Value Gap zones are reference areas only and should not be used as standalone entry signals.

Users are responsible for independently evaluating market conditions and applying appropriate risk management before trading with real funds.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.