OPEN-SOURCE SCRIPT
Fair Value Gap [Dova Lazarus]

Fair Value Gap (FVG) indicator detects and visualizes price inefficiencies between three consecutive candles:
* Bullish FVG: current candle’s low > high of two candles ago
* Bearish FVG: current candle’s high < low of two candles ago
Includes automatic detection of mitigations:
* Partial mitigation: price enters but doesn’t fully fill the gap
* Full mitigation: price completely fills the gap
* Optional **50% mitigation** based on midpoint reach
**Display styles**:
* Box (filled rectangle)
* High & Low lines only
* Midpoint lines (optional, with customizable style and color)
Multi-timeframe support:
* Up to 5 higher timeframes (HTF), each with individual color, label, and visibility settings
* HTF gaps help identify key support/resistance and price magnet zones
Customization options:
* Separate colors for unmitigated and mitigated gaps
* Adjustable width and extension of boxes
* Optional deletion of mitigated gaps
* Label positioning, size, and visibility
All settings are grouped for clarity:
* FVG Appearance
* HTF FVGs
* Mitigation
* General Settings
* Bullish FVG: current candle’s low > high of two candles ago
* Bearish FVG: current candle’s high < low of two candles ago
Includes automatic detection of mitigations:
* Partial mitigation: price enters but doesn’t fully fill the gap
* Full mitigation: price completely fills the gap
* Optional **50% mitigation** based on midpoint reach
**Display styles**:
* Box (filled rectangle)
* High & Low lines only
* Midpoint lines (optional, with customizable style and color)
Multi-timeframe support:
* Up to 5 higher timeframes (HTF), each with individual color, label, and visibility settings
* HTF gaps help identify key support/resistance and price magnet zones
Customization options:
* Separate colors for unmitigated and mitigated gaps
* Adjustable width and extension of boxes
* Optional deletion of mitigated gaps
* Label positioning, size, and visibility
All settings are grouped for clarity:
* FVG Appearance
* HTF FVGs
* Mitigation
* General Settings
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。