OPEN-SOURCE SCRIPT

FVG Finder [VM]

118
FVG Finder [VM]

Overview

The FVG Finder [VM] is a powerful Pine Script indicator designed for TradingView to identify and visualize Fair Value Gaps (FVG) on price charts. Fair Value Gaps are areas where price moves quickly, leaving gaps between candles that represent potential areas of interest for traders. This indicator highlights both bullish and bearish FVGs with customizable visual elements, including shaded zones, middle lines, and boundary lines, to assist traders in spotting key levels for potential reversals or continuations.
Created by Vlad_Mind (Telegram: @Dreamer528), this indicator is highly configurable and optimized for clarity and performance, with a maximum of 500 boxes and lines to ensure smooth operation on any chart.
Features

Bullish and Bearish FVG Detection: Automatically identifies bullish (green) and bearish (red) Fair Value Gaps based on specific candlestick patterns.
Customizable Display: Option to toggle FVG zones on or off via the input settings.
Dynamic Visualization:
Shaded Zones: Highlights FVG areas with semi-transparent boxes (green for bullish, red for bearish).
Middle Lines: Draws dashed lines at the midpoint of each FVG zone for reference.
Boundary Lines: Tracks the upper (bearish) or lower (bullish) boundaries of FVGs, updating dynamically as price interacts with these levels.


Automatic Cleanup: Removes FVGs when price fully closes the gap, keeping the chart clean and relevant.
Performance Optimized: Limits the number of displayed boxes and lines to 500, ensuring smooth performance even on large datasets.

How It Works
The indicator scans for FVGs based on the following conditions:

Bearish FVG: Occurs when three consecutive bearish candles create a gap where the low of the third candle is higher than the high of the first candle.
Bullish FVG: Occurs when three consecutive bullish candles create a gap where the high of the third candle is lower than the low of the first candle.

Once detected, the indicator:

Draws a shaded box representing the FVG zone.
Adds a dashed middle line at the midpoint of the gap.
Tracks the boundary of the gap with a line that updates as price approaches or crosses it.
Deletes the FVG zone when price fully closes the gap (i.e., when the high/low of a new candle surpasses the gap's boundary).

Settings

Show FVG: Toggle to enable or disable the display of FVG zones (default: enabled).

Visual Customization

Bullish FVG Colors:
Zone: Light green (80% transparency).
Middle Line: Green (50% transparency).
Boundary Line: Blue when price interacts with the gap.


Bearish FVG Colors:
Zone: Light red (80% transparency).
Middle Line: Red (50% transparency).
Boundary Line: Blue when price interacts with the gap.


Text Labels: Each FVG zone is labeled with "FVG" in white, with adjustable text size (small by default, tiny when price interacts with the gap).

Usage

Add the FVG Finder [VM] to your TradingView chart.
Adjust the Show FVG setting to enable or disable FVG zones as needed.
Use the highlighted zones to identify potential support/resistance levels, breakout opportunities, or areas where price may return to fill the gap.
Combine with other technical analysis tools (e.g., trendlines, volume, or indicators) to confirm trading decisions.

Notes

The indicator is designed to work on any timeframe and market, but its effectiveness may vary depending on volatility and trading style.
For best performance, avoid applying the indicator to extremely large historical datasets, as it is capped at 500 boxes and lines.
Contact Vlad_Mind (Telegram: @Dreamer528) for support or feedback.

Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial advice. Always conduct your own research and consult with a professional before making trading decisions.
Happy trading!

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.