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.
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.
| Component | Illustrative rule |
|---|---|
| Setup | IFVG block flags a bullish inverted gap |
| Trend | Close above the 50-period EMA |
| Entry | Close back inside the inverted zone, after the break |
| Failure exit | Close below the bottom of the zone |
| Protective stop | Open trade down 4% |
| Profit exit | Open trade up 6% |
| Direction | Long only |
The trend filter does most of the sorting. It keeps the strategy from buying flips that run against the larger move.
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.
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