Inverted Fair Value Gap Strategy: Trade the Flip Retest

Inverted Fair Value Gap Strategy: Trade the Flip Retest

A failed zone can be more useful than a fresh one. An inverted fair value gap strategy trades exactly that: a gap that once stopped buyers, broke, and now has to prove it can hold as support.

Most traders mark a fair value gap and then forget it once price runs through. That is the moment this strategy starts paying attention. A broken gap tells you which side lost control of that price area.

This guide builds a long-only flip-retest strategy on liquid spot pairs. For the indicator itself, read our Inverted Fair Value Gap guide.

The settings below are research starting points. They are not backtested recommendations or claimed results.

What Is an Inverted Fair Value Gap Strategy?

An inverted fair value gap strategy trades the retest of a gap whose role has flipped. A fair value gap (FVG) is a three-candle price imbalance. The middle candle moves so fast that the first and third candles do not overlap.

A bearish FVG forms on a sharp drop. It often acts as resistance when price comes back up. If price instead closes straight through it, the gap is now inverted. The old resistance zone becomes possible support.

The strategy waits for that inversion. Then it waits again, for price to pull back into the zone. It buys only if the zone holds.

Why Wait for the Retest?

The break itself is a chase. Price has just moved hard, and buying there means a wide stop.

The retest is calmer. Price returns to a known area with a clear line for failure. If the zone gives way a second time, the idea is wrong and the exit is close by.

When Does the Flip Actually Hold?

Not every inversion means anything. Three things separate a useful flip from noise.

A decisive break. Price should close through the far edge of the gap, not wick through it. A close shows sellers could not defend the zone for a whole candle.

A trend on the same side. A bullish flip in a falling market often fails. Price breaks up, then rolls over with the larger trend.

A gap with some size. Tiny gaps form constantly on low timeframes. They rarely mark a real shift in control. Larger gaps after strong moves carry more information.

A Worked Example

Say Bitcoin drops from $62,000 to $60,500 in three one-hour candles. That leaves a bearish FVG between $61,200 and $61,600.

Two days later, price rallies and closes at $61,900. It has closed above the top of the gap. The zone is now a bullish inverted gap.

Next, price drifts back to $61,400, inside the old gap. A candle closes there and the zone holds. That close is the entry signal. A close back below $61,200 would mean the flip has failed.

The flip, the retest, the entry: one worked exampleIllustration: a bearish gap on one-hour candles, a close above it, then a close back insidethe zone.$60,500$61,000$61,500$62,000$62,5001 Bearish gap forms2 Closes above3 Close inside: entryDashed line, $61,200: a close below it means the flip failedIllustration with made-up candles, not market data. Prices follow the worked example in the text.
Three steps: the gap forms, price closes above it, then a close back inside the zone is the entry. A close below $61,200 cancels it.

Set the Strategy Rules

Use one liquid spot pair on one exchange feed. Start with completed one-hour candles. Keep everything fixed for the first comparison.

ComponentIllustrative rule
SetupIFVG block flags a bullish inverted gap
TrendClose above the 50-period EMA
EntryClose back inside the inverted zone, after the break
Failure exitClose below the bottom of the zone
Protective stopOpen trade down 4%
Profit exitOpen trade up 6%
DirectionLong only

The trend filter does most of the sorting. It keeps the strategy from buying flips that run against the larger move.

The same rules on real Bitcoin candles: gap, flip, retest, signalBTC-USD 1-hour candles, 19 Oct – 22 Oct 2026 (UTC). Cyan line is the 50 EMA; shaded zone isthe bearish gap, then the inverted zone.$81,000$82,000$83,000$84,000$85,00019 Oct, 01:0020 Oct, 05:0021 Oct, 09:0022 Oct, 13:00GapData: Coinbase BTC-USD. 13 entry signals from 57 bearish gaps over 0.5 ATR, 1 Sep – 24 Nov. Counted, not a backtest.
Hover the dots to see each step on real candles. Over 1 Sep to 24 Nov, 13 entry signals met these rules.

Why a Fixed Target Here?

Trend rules usually let winners run. This one is different. A flip retest is a reaction trade at one level. The edge, if any, sits in the first push away from the zone.

The 6% target and 4% stop give a reward-to-risk of 1.5. Test other pairs of numbers later. Change one side at a time.

Build the Strategy With Visual Blocks

Start with Data Watchers for your exchange, pair and one-hour timeframe. Supply the candle data the IFVG block needs.

The indicator-block documentation lists the IFVG, EMA and condition blocks. Drag the IFVG block onto the canvas and connect your candles to it. Check which outputs it exposes before you wire the next step.

Wire the Entry

Add an EMA block set to 50. Investopedia’s EMA guide explains how it weights recent candles. Compare the close with it. Close above the EMA means the trend filter passes.

Use the IFVG block’s bullish signal as the setup. Join it with the trend comparison using an AND condition block. Only when both are true can the entry fire.

Wire the Exits

Compare the close with the bottom of the inverted zone. A close below it fires the failure exit.

Add a last-profit block. Compare its output with -4 for the stop and with 6 for the target. Join all three exits with OR condition blocks.

Action Blocks express the buy and sell signals and their amounts. Confirm the amount units before testing.

Arrow Algo provides the no-code visual builder for these user-defined rules. If you choose deployment, your rules signal your own exchange account. The exchange decides whether to accept and execute.

The strategy wired as four block typesEntry needs the flip and the trend. Any one of three exits ends the trade.Data WatcherExchange, pairand 1-hourcandles1Indicator blocksIFVG bullishsignal and zonebottom; EMA setto 502Maths blocksClose > EMA, ANDwith IFVG. Lastprofit vs -4 and6, OR with close< zone bottom3Action blocksBuy signal onentry; sellsignal on anyexit4
The strategy as four block types: one entry condition, three exit conditions.

How Should You Benchmark the Strategy?

The key question is whether inversion adds anything. So build a second version that buys the retest of an ordinary bullish FVG instead. Our fair value gap trading strategy covers that setup. Keep every other rule the same.

Compare both versions with buy-and-hold over the same dates:

  • Net return after fees and slippage
  • Maximum drawdown
  • Number of completed trades
  • Average profit per trade
  • Share of trades that hit the failure exit

If the inverted version wins on average trade, the flip is doing work. If the plain FVG version matches it, the extra waiting costs trades for nothing.

Test the Filter Too

Run one copy with the EMA filter removed. If results barely change, the filter is not helping on that market. If they collapse, the strategy depends on trend and will struggle in ranges.

Know Where It Struggles

Choppy ranges are the weak spot. Gaps form and invert in both directions. Many retests fail, and each failure costs a small loss plus fees.

Fast markets cause a different problem. Price may never return to the zone after the break. The strategy then misses the move entirely. That is a cost of waiting, not a bug.

Fewer than 30 trades says very little. Investopedia’s guide to backtesting explains why sample size matters. Add pairs or a longer window before trusting a result.

What Should You Take Into Your Next Backtest?

  • An inverted gap is a fair value gap that price closed through, flipping its role.
  • Trade the retest, not the break. The retest gives a nearby line for failure.
  • Require a close through the gap and a trend on the same side.
  • Exit on a close back below the zone, a 4% stop or a 6% target.
  • Benchmark against a plain FVG retest with identical rules.

If the plain gap version does just as well, that is a useful answer. It means the simpler setup was enough.

Disclaimer: This content is for educational purposes only and does not constitute financial advice. Trading involves significant risk and you should only trade with capital you can afford to lose. Past performance is not indicative of future results. Always conduct your own research before making any trading decisions.

Ready to build your own automated trading strategies without writing a single line of code? Start for free at Arrow Algo and join thousands of traders who've made the switch to systematic trading.

See Arrow Algo first on Google. Add us as a preferred source and our articles show up more in your Top Stories.

Add as a preferred source on Google