indicator · on price · open source
Fair Value Gap (Bearish) indicator
Fair Value Gap (Bearish) is a free open-source indicator by @deepwick. Bearish Fair Value Gap — mirror of the bullish FVG. Deepwick Script runs a subset of Pine Script.
Running…
Loading chart…
What Fair Value Gap (Bearish) does
Bearish Fair Value Gap — mirror of the bullish FVG. Three-candle pattern where bar[0]'s wick sits above bar[2]'s wick with no overlap.
- Red zone = top of bar[0] high to bottom of bar[2] low.
minGapPctfilters out noise;extendBarscontrols zone lifetime.- Look for short entries on a retest into a premium zone.
- Bearish FVGs are supply zones that price often retraces into before continuing lower.
- The first retest of a fresh bearish FVG is the most common short entry in SMC.
- A bearish FVG formed during a high-volume session is the highest-quality supply zone.
- Stacked bearish FVGs without overlap are the strongest supply imbalance reads.
- After the bearish FVG is filled, look for a CHoCH as a confirmation of trend reversal.
Source code
Deepwick Script, a subset of Pine Script · read-only
//@version=6
indicator("Fair Value Gap (Bearish)", 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.red", "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)
gapBear = high[0] < low[2]
gapPct = (low[2] - high[0]) / close * 100
gapBear := gapBear and gapPct >= minGapPct
var float fvgBearTop = na
var float fvgBearBot = na
var int fvgBearAge = 9999
if gapBear
fvgBearTop := low[2]
fvgBearBot := high[0]
fvgBearAge := 0
fvgBearAge += 1
if fvgBearAge > extendBars
fvgBearTop := na
fvgBearBot := na
p_Bear_FVG_Top = plot(fvgBearTop, "Bear FVG Top", color=fvgColor, style=plot.style_linebr)
p_Bear_FVG_Bot = plot(fvgBearBot, "Bear FVG Bot", color=fvgColor, style=plot.style_linebr)
fill(p_Bear_FVG_Top, p_Bear_FVG_Bot, color=color.new(fvgColor, transparency))
alertcondition(gapBear, "Bearish FVG", "Bearish fair value gap printed")
alertcondition(gapBear and gapPct > minGapPct * 3, "Wide Bearish FVG", "Bearish FVG much wider than threshold — high-conviction supply")
alertcondition(not na(fvgBearTop) and high <= fvgBearTop and high >= fvgBearBot, "Bear FVG filled", "Price filled the bearish FVG")
No comments yet.
Sign in to comment.