indicator · on price · open source

Fair Value Gap (Bullish) indicator

Fair Value Gap (Bullish) is a free open-source indicator by @deepwick. Bullish Fair Value Gap — a 3-candle pattern where the wick of bar[2] sits above the wick of… Deepwick Script runs a subset of Pine Script.

Deepwick · @deepwickv1Updated 3 Nov 2026▲ 0 users
Running…
Loading chart…

What Fair Value Gap (Bullish) does

Bullish Fair Value Gap — a 3-candle pattern where the wick of bar[2] sits above the wick of bar[0] with no overlap, leaving an imbalance institutions tend to revisit.

  • Green zone = top of bar[2] high to bottom of bar[0] low.
  • Optional minGapPct filter ignores tiny gaps (in % of price).
  • Pairs with a discount filter for long entries.
  • A bullish FVG + bullish OB confluence is the cleanest demand read on the chart.
  • Gaps on high-volatility sessions tend to get filled faster than gaps on quiet ones.
  • The default minGapPct of 0.1% filters out micro-gaps on most instruments; lower to 0% to see every imbalance.
  • Stacked bullish FVGs without overlap are the strongest demand imbalance reads.
  • Default extendBars of 30 keeps the zone live long enough for a typical retest.

Source code

Deepwick Script, a subset of Pine Script · read-only

//@version=6
indicator("Fair Value Gap (Bullish)", overlay=true)
minGapPct = input.float(0.1, "Min Gap %", minval=0, maxval=5, step=0.05)
extendBars = input.int(30, "Extend Bars", minval=5, maxval=200)
fvgColor = input.string("color.green", "FVG Color")
transparency = input.int(88, "Fill Transparency", minval=50, maxval=99)
alertNew = input.bool(true, "Alert on New FVG")
alertWide = input.bool(false, "Alert on Wide FVG")
alertFilled = input.bool(false, "Alert on FVG Filled")
showMarker = input.bool(false, "Show FVG Marker")
lineWidth = input.int(2, "FVG Line Width", minval=1, maxval=5)
gapBull = low[0] > high[2]
gapPct = (low[0] - high[2]) / close * 100
gapBull := gapBull and gapPct >= minGapPct
var float fvgBullTop = na
var float fvgBullBot = na
var int fvgBullAge = 9999
if gapBull
    fvgBullTop := low[0]
    fvgBullBot := high[2]
    fvgBullAge := 0
fvgBullAge += 1
if fvgBullAge > extendBars
    fvgBullTop := na
    fvgBullBot := na
p_Bull_FVG_Top = plot(fvgBullTop, "Bull FVG Top", color=fvgColor, style=plot.style_linebr)
p_Bull_FVG_Bot = plot(fvgBullBot, "Bull FVG Bot", color=fvgColor, style=plot.style_linebr)
fill(p_Bull_FVG_Top, p_Bull_FVG_Bot, color=color.new(fvgColor, transparency))
alertcondition(gapBull, "Bullish FVG", "Bullish fair value gap printed")
alertcondition(gapBull and gapPct > minGapPct * 3, "Wide Bullish FVG", "Bullish FVG much wider than threshold — high-conviction demand")
alertcondition(not na(fvgBullTop) and low <= fvgBullTop and low >= fvgBullBot, "Bull FVG filled", "Price filled the bullish FVG")

Comments

No comments yet.

Sign in to comment.