An Indicator That Splits FVGs and Order Blocks Into “Live” Boxes and “Frozen” Boxes
“FVG and Order Blocks Detector” is an indicator that automatically plots Fair Value Gaps (FVGs) and order blocks on your TradingView chart. In the chart’s status line it shows up as “IOB Zones.” Both concepts are staples of price action and Smart Money Concepts (SMC) trading, so most of you have probably at least heard the terms.
There’s no shortage of FVG and order block scripts out there, but what “FVG and Order Blocks Detector” really focuses on is keeping your chart clean. Zones that price hasn’t mitigated yet keep extending into the empty space on the right, and the moment one gets mitigated, it freezes on that candle and fades out. Each zone type also has a cap, and the oldest ones get dropped first.

For this review, I ran it on BTCUSDT across seven timeframes, from the 1-minute up to the weekly, to see how the zones show up and how much each setting actually changes. Some parts work great right out of the box, while others need a bit of care when you pick your settings, so I’ll cover both.
First, let’s look at how it appears on the chart. Boxes that reach into the empty space on the right are still live zones, while darker boxes that stop partway are zones that have already done their job Figure 1. Once you get that distinction down, the label text tells you everything else.
Default view of “FVG and Order Blocks Detector”
Unused zones keep extending to the right, while mitigated zones stop on that candle and fade.
Vowars DE ver.3.12.36
Here’s what “FVG and Order Blocks Detector” draws.
| Zone | Formed when | Label | Mitigated when (default) |
|---|---|---|---|
| Bullish FVG | The 3rd candle’s low is above the 1st candle’s high | FVG | A low breaks below the bottom of the zone |
| Bearish FVG | The 3rd candle’s high is below the 1st candle’s low | FVG | A high breaks above the top of the zone |
| Bullish order block | A strong candle closes above a swing high | BULLISH ORDER BLOCK | A low (wick) breaks below the bottom of the block |
| Bearish order block | A strong candle closes below a swing low | BEARISH ORDER BLOCK | A high (wick) breaks above the top of the block |
It doesn’t print buy/sell arrows or entry signals. Think of it as a tool that neatly maps out “where to watch for a reaction when price comes back” and you’ll use it the right way.
Reading Live Zones From Box Length and Color
With the default color scheme (Color Theme set to “Gray Classic”), FVGs and order blocks are both drawn in the same gray. You tell them apart by the label in the middle of each box, not by color. That might sound awkward, but the labels are bold and sit dead center, so after a while I never had to think about it.
Unmitigated zones are drawn in light gray and extend 15 bars past the latest candle. Once price mitigates a zone, the right edge of the box freezes on that candle and it turns dark gray Figure 2. Since mitigated zones stay on the chart, you can scroll back later and see how long each one actually held.
When a box is narrower than roughly 25 bars, its label automatically drops to the smallest size. Zones that got mitigated quickly end up with tiny text, so a cluster of small “FVG” labels means a lot of gaps got filled fast in that area.
Another thing I noticed is how overlaps look. When two unmitigated zones sit on the same price range, the semi-transparent gray layers stack and that area looks brighter. On the daily chart, bands where an FVG and an order block overlapped really stood out. It’s a handy visual cue when you’re hunting for confluence.

How FVGs Are Detected and When They Count as Filled
The gap between three candles
An FVG is the gap left when the ranges of the 1st and 3rd candles in a three-candle sequence don’t overlap. For a bullish FVG, the 1st candle’s high becomes the bottom of the zone and the 3rd candle’s low becomes the top Figure 1. The middle candle is usually a big displacement candle.
An FVG is the gap between the 1st candle’s high and the 3rd candle’s low
When the ranges of the 1st and 3rd candles don’t overlap, the empty space between them becomes an FVG box.
Vowars DE ver.3.12.36
The box is drawn once the 3rd candle closes, and its left edge is placed back at the 1st candle Figure 3. On a live chart, that means a box suddenly appears starting two bars back the moment a candle closes, which takes a little getting used to.
Tiny gaps are filtered out by Minimum Gap Size (ATR multiple). The default is 0.1, so any gap smaller than 0.1× ATR (the average range over 14 bars) isn’t drawn. 0.1 is a very loose threshold, so on the 1-minute and 5-minute charts you’ll see a lot of small FVGs.
How Mitigation Mode changes what counts as filled
Whether an FVG counts as mitigated is decided by Mitigation Mode. You can choose between “Touch,” “50 Percent Fill,” and “Full Fill,” with Full Fill as the default.
- Full Fill: a bullish FVG is mitigated on the candle whose low breaks below the bottom of the zone, a bearish FVG on the candle whose high breaks above the top
- 50 Percent Fill: mitigated on the candle that reaches the midpoint of the zone
- Touch: mitigated on the candle that touches the zone (with a big caveat, covered below)
With Full Fill, the box keeps extending even when price pulls back halfway into the zone Figure 1. It only stops on the candle that breaks below the bottom Figure 2. On the exact same price action, 50 Percent Fill ends the zone on the candle that tags the midpoint, so the zone’s lifespan gets a lot shorter Figure 3.
With Full Fill, the zone lives until price breaks the bottom
With the default Full Fill, the box doesn’t stop just because price dips back into the FVG.
Vowars DE ver.3.12.36
Neither one is “correct.” If you consider a gap done once price retraces half of it, use 50 Percent Fill. If you keep watching it until it’s completely filled, stick with Full Fill. It’s that simple.
Touch mode mitigates FVGs the moment they form
This is something I only caught by tracing the behavior step by step. With Mitigation Mode set to Touch, any FVG detected on the chart’s own timeframe is marked as “touched” on the very candle that creates it. The 3rd candle’s low (or high, for a bearish FVG) becomes the edge of the zone, so that candle is technically touching the zone already.
What it looks like with Mitigation Mode set to Touch
With Touch, FVGs are marked as “touched” on the bar they form, so every one stops after three bars.
Vowars DE ver.3.12.36
As a result, every FVG stops after just three bars and is drawn in dark gray from the start Figure 1. Not a single box is left extending to the right Figure 3.
Even with Touch selected, zones don’t stop when price later comes back and taps them. The “FVG Bullish Filled” and “FVG Bearish Filled” alerts also fire on the same candle the FVG forms. If you want to know when price actually touches a zone, use 50 Percent Fill instead, or draw a horizontal line at the edge of the zone and set an alert on that.
A caveat when setting a higher timeframe in FVG Timeframe
If you change FVG Timeframe from blank to another timeframe (say, 4H), the indicator tries to plot higher-timeframe FVGs on your current chart. It only uses confirmed higher-timeframe bars, so nothing repaints after the bar closes.
The catch is that in this mode, it compares two adjacent higher-timeframe candles to find a gap. In other words, it looks for a true price gap where the previous candle’s high and the next candle’s low don’t touch. That’s a different condition from the three-candle FVG used on the chart’s own timeframe.
On 24/7 markets like Bitcoin, each candle opens right where the previous one closed, so this pattern almost never forms. When I set it to 4H on BTCUSDT, no higher-timeframe FVGs showed up at all. On instruments that gap between sessions, like index futures or individual stocks, you will see them from time to time.
If you want to see three-candle FVGs from a higher timeframe, the reliable way is to switch to the higher-timeframe chart, or put the HTF and LTF side by side in a multi-chart layout. How many charts you can open in one layout depends on your TradingView plan.
Order Blocks Only Come From Strong Breaks
In “FVG and Order Blocks Detector,” an order block only gets drawn after passing several filters, which is why you’ll see far fewer of them than FVGs. Let’s walk through the bullish case in three steps.
How an order block forms
When a strong candle closes above a swing high, the bearish candle with the lowest low in between becomes the block.
Vowars DE ver.3.12.36
1 A swing high gets confirmed
First, a candle that’s higher than the Swing Lookback bars (8 by default) on each side gets recorded as a swing high Figure 1. It isn’t confirmed until all 8 bars on the right have printed, so a high doesn’t count as a swing high until 8 bars after it forms. When a new swing high is confirmed, it replaces the previous one.
2 A strong candle closes above it
Next, it waits for a candle to break above that swing high. With Break Confirmation at its default of “Candle Close,” only a candle that closes above it counts. A candle that just wicks above doesn’t Figure 2.
On top of that, when Displacement Filter is on, the breakout candle’s full range (high to low) has to be at least 1.2× ATR. If price breaks out on a small candle, it doesn’t count as a break. The break only registers later, when a large-range candle closes above the high.
3 The lowest bearish candle in between becomes the block
Once the break is confirmed, it searches from the swing-high candle to the breakout candle for the bearish candle with the lowest low Figure 3. That candle’s high-to-low range becomes the block. If there’s no bearish candle in that span at all, it simply picks the candle with the lowest low.
Bearish blocks are the mirror image: when a strong candle closes below a swing low, the bullish candle with the highest high in between becomes the block.
If more than 70% of a new block’s range overlaps an unmitigated block in the same direction, the new one isn’t drawn. This keeps blocks from stacking up on the same price range, and it’s one of the reasons the chart stays so readable.
When blocks get mitigated, and how thick they should be
Order block mitigation is controlled by Mitigation Source. With the default “Wick,” a bullish block is mitigated as soon as a wick pierces its bottom. Switch to “Close,” and it isn’t mitigated until a candle closes below the bottom. On instruments that love to wick through and snap back, Close keeps your blocks alive longer.
Setting Block Body Mode to “Body Only (Open to Close)” limits the block to the candle’s body Figure 1. A thinner block gives you a tighter price area to work with, but since the bottom moves up by the length of the wick, even a shallow pullback is more likely to mitigate it Figure 3.
Block Body Mode set to “Body Only”
With Body Only, the block covers just the candle body (open to close) and leaves out the wicks.
Vowars DE ver.3.12.36
Flipping the labels with Naming Convention
Different schools name order blocks differently. Some call the bearish candle before a bullish break a “Bullish Order Block,” and others call it the opposite. Setting Naming Convention to “Reversed” swaps the “BULLISH” and “BEARISH” labels. Only the display changes; the detection and mitigation logic stays exactly the same.
With the Directional Colors theme, the colors swap along with the labels. Use it when you want the naming to match the course or content you usually follow.
What Seven Timeframes Taught Me About How Zones Show Up
I loaded it with default settings on BTCUSDT on the 1m, 5m, 15m, 1H, 4H, daily, and weekly charts and compared them. The character of the zones that stick around changes a lot depending on the timeframe.
| Timeframe | What the chart looks like | Best used for |
|---|---|---|
| 1m / 5m | Small FVGs form and get filled one after another, leaving clusters of small dark boxes | Mostly gauging momentum over the last few candles. Cut down the zone count in the settings for a cleaner view |
| 15m / 1H | A manageable number of order blocks and FVGs remain, and unmitigated zones are easy to track | Finding intraday pullback and rally levels to buy the dip or sell the rally |
| 4H / Daily | Wide zones can stay live for weeks, and overlapping bands stand out brightly | Mapping the key levels for swing trading |
| Weekly | Blocks formed years ago can still be sitting there unmitigated | Checking major long-term levels |
On the 1-minute chart, the last hour or so was packed with small overlapping FVG boxes, almost all of them with the smallest label size. The usual rule that lower timeframes mean more noise shows up right there on the chart.

On the weekly chart, by contrast, a bullish block from around 2020 was still unmitigated and extending all the way to today. Long-term zones are less about whether price will ever revisit them and more about reminding you where big buying came in.

Settings and How to Tune Them for Your Style
The settings in “FVG and Order Blocks Detector” are split into four groups: General, Zone Colors, Fair Value Gaps, and Order Blocks. Here are the defaults and some guidelines for tweaking them.
| Setting | Default | Suggested | Effect |
|---|---|---|---|
| Max Zones Per Type | 5 | 3–8 | How many bullish FVGs, bearish FVGs, bullish blocks and bearish blocks to keep, counted separately (1–30). Mitigated boxes count too; once over the limit, the oldest are removed |
| Hide Mitigated Zones | Off | Your preference | When on, mitigated zones are deleted instead of left on the chart |
| Label Text Size | Small | Small | Label text size. Automatically shrinks to the smallest size on boxes narrower than about 25 bars |
| Label Text Color | Near black (very dark navy) | Match your color scheme | Label text color. White is easier to read with Directional Colors on a dark background |
| Bold Labels | On | On | Draws labels in bold |
| Naming Convention | Standard | Whatever you’re used to | Reversed swaps the bullish and bearish block labels |
| Color Theme | Gray Classic | Your preference | Directional Colors color-codes zones by type and direction |
| Bullish FVG (Directional) | Green (semi-transparent) | Default | Bullish FVG color in Directional Colors |
| Bearish FVG (Directional) | Red (semi-transparent) | Default | Bearish FVG color in Directional Colors |
| Bullish OB (Directional) | Blue (semi-transparent) | Default | Bullish block color in Directional Colors |
| Bearish OB (Directional) | Red (semi-transparent) | Default | Bearish block color in Directional Colors |
| Show FVGs | On | On | Shows FVGs |
| FVG Timeframe | Blank (chart timeframe) | Blank | With a higher timeframe set, it looks for gaps between two adjacent HTF candles |
| Minimum Gap Size (ATR multiple) | 0.1 | 0.1–0.3 | Gaps smaller than this multiple of ATR(14) are ignored. Higher values mean fewer FVGs |
| Mitigation Mode | Full Fill | Full Fill / 50 Percent Fill | The rule for marking an FVG as mitigated |
| FVG Label Text | FVG | Your preference | Text shown on FVG labels |
| Show Order Blocks | On | On | Shows order blocks |
| Swing Lookback | 8 | 5–12 | Bars on each side used to confirm a swing high/low (3–50). Higher values keep only the major highs and lows |
| Break Confirmation | Candle Close | Candle Close | Wick counts a break even when only a wick pokes through |
| Displacement Filter | On (1.2) | On (1.0–1.5) | Minimum range of the breakout candle as a multiple of ATR(14). The multiplier is the box to the right |
| Block Body Mode | Full Candle (High to Low) | Full Candle | Body Only limits blocks to the candle body |
| Mitigation Source | Wick | Wick / Close | Whether blocks are mitigated by a wick or by a close |
| Bullish OB Label Text | BULLISH ORDER BLOCK | Your preference | Text shown on bullish block labels |
| Bearish OB Label Text | BEARISH ORDER BLOCK | Your preference | Text shown on bearish block labels |
The multiplier field for Displacement Filter has no label of its own; it’s just a number box to the right of the checkbox. If you’re looking for it in the settings panel, check next to the checkbox.
Starting points by trading style
No single set of values works on every market, so treat these as starting points. I tested on Bitcoin, but the same thinking applies to volatile markets like gold and stock indices.
| Style | Main timeframes | How to adjust |
|---|---|---|
| Scalping | 1m–5m | Raise Minimum Gap Size (ATR multiple) to 0.2–0.3 and lower Max Zones Per Type to about 3. Fewer tiny FVGs, so you can focus on the boxes that matter |
| Day trading | 15m–1H | Defaults are already clean enough. If you judge zones by pullback depth, set Mitigation Mode to 50 Percent Fill |
| Swing trading | 4H–Daily | Raise Swing Lookback to 10–12 so blocks only form from breaks of major highs and lows. In wicky markets, set Mitigation Source to Close |
Another nice thing about this indicator is that you see the effect of a change right away. Fewer boxes, longer-lasting zones: it all shows up on the chart immediately.
Directional Colors for color-coded zones
Set Color Theme to “Directional Colors” and bullish FVGs turn green, bullish blocks turn blue, and bearish zones are drawn in shades of red Figure 1. You can see at a glance which direction dominates, which is handy for reading market bias.
Color-coding by direction with Directional Colors
Setting Color Theme to Directional Colors gives bullish and bearish FVGs and order blocks their own colors.
Vowars DE ver.3.12.36
One catch: the default Label Text Color is nearly black. On a dark-background chart with Directional Colors, the labels blend into the background and are almost unreadable. In the figure, I changed Label Text Color to white. If you stay with Gray Classic, it’s dark text on light gray, so readability is fine.
Hiding mitigated boxes entirely
Turn on Hide Mitigated Zones and mitigated zones disappear without a trace Figure 1. All that remains are the unmitigated zones extending to the right Figure 2.
With Hide Mitigated Zones turned on
Mitigated zones disappear, leaving only the boxes still waiting for a reaction.
Vowars DE ver.3.12.36
You lose the ability to look back at how past zones played out, but it’s a great fit if you only want the levels that matter right now. Personally, I liked keeping it off while backtesting and turning it on during live trading.
Repainting and How the Alerts Fire
Confirmed signals don’t change, but drawings are placed back in time
“FVG and Order Blocks Detector” runs both FVG detection and the order block break check on bar close. Once a zone is drawn, it never moves or disappears later (except when old zones are dropped because of the Max Zones Per Type cap).
That said, drawings are placed back in time. An FVG is drawn from the 1st candle when the 3rd candle closes, and an order block is drawn from the block candle when the break is confirmed. Swing highs and lows also aren’t confirmed until Swing Lookback bars have printed on the right. Looking at historical data, it may seem like these zones were visible in real time, but in reality they appeared a bit later.
Mitigation is also evaluated on the still-forming bar. With Wick, the box stops as soon as a wick pierces it and stays that way through the close. With Close, it looks at the live bar’s current price, so a box can stop and then start extending again before the bar closes.
If you want to see exactly when zones appear, step through the chart bar by bar with TradingView’s Bar Replay. How far back you can go depends on your plan and the timeframe.
Eight alert conditions
There are eight alert conditions to choose from.
| Alert name | Fires on |
|---|---|
| FVG Bullish Created / FVG Bearish Created | The bar where a new bullish / bearish FVG forms |
| FVG Bullish Filled / FVG Bearish Filled | The bar where a bullish / bearish FVG gets mitigated |
| Upward-Break Order Block Created / Downward-Break Order Block Created | The bar where a block forms from an upside / downside break |
| Upward-Break Order Block Mitigated / Downward-Break Order Block Mitigated | The bar where a block gets mitigated |
The mitigation alerts can trigger on a bar that hasn’t closed yet. TradingView’s help center also notes that with triggers like “Once Per Bar,” an alert can fire mid-bar. If you want alerts to match what you see on the chart, “Once Per Bar Close” is the safe choice.
Also note that when Naming Convention is set to “Reversed,” the mitigation alerts get swapped. For example, “Upward-Break Order Block Mitigated” will fire when a block from a downside break (labeled BULLISH on the chart) is mitigated. The creation alerts don’t swap, so if you run Reversed, test your alerts once before relying on them.
Pairing It With Supertrend to Pick Which Side to Trade
“FVG and Order Blocks Detector” draws bullish and bearish zones at the same time, so it’s up to you to decide which side to focus on. Supertrend, which shows trend direction by the color of its line, makes that call much easier.
Using Supertrend to pick which zones to trade
While Supertrend is bullish, only the bullish zones below price are treated as buy-the-dip candidates.
Vowars DE ver.3.12.36
When Supertrend flips green, treat the market as bullish Figure 1, and look at the bullish blocks and FVGs sitting above the green line as buy-the-dip candidates Figure 2. Zones below the line are the next levels to watch if the uptrend stalls and rolls over Figure 3. Bearish zones can be set aside until Supertrend turns red.
A few other indicators that pair well with it:
- VWAP: for intraday trading, narrow it down to bullish zones below VWAP as discount pullbacks
- ADX: in choppy markets with low ADX, breakouts often don’t follow through, so it tells you when to temper expectations for blocks
- Donchian Channels: comparing new channel highs/lows with order block formation makes the strength of a breakout easier to read
What I Liked and What You’ll Have to Live With
Where it shines
- Box length and color separate live and mitigated zones, so the chart stays clean
- Per-type caps and overlap filtering keep zones from piling up
- Centered labels tell you the zone type without memorizing colors
- Three FVG mitigation modes, plus fine-grained control over order block conditions
- Detection runs on confirmed bars, so drawn zones never shift
- Eight alerts covering both zone creation and mitigation
What to live with
- Touch mitigates FVGs on the bar they form, so it can’t tell you when price taps a zone
- The HTF option looks for two-candle gaps, so it shows almost nothing on 24/7 crypto
- In Gray Classic, you can’t tell zone types by color and have to read the labels
- Swings need several bars to confirm, so blocks appear well after the high or low
- With Directional Colors, the default label color gets lost on dark backgrounds
FVGs and order blocks are just mechanically plotted areas where price is said to react. Price doesn’t always bounce when it reaches a zone; I saw plenty of cases where it sliced straight through and mitigated it. When price reaches a zone, check the candle structure and trend direction, decide where your stop goes, and only then enter. That order of operations doesn’t change.
For Traders Who Want FVGs and Order Blocks Without the Clutter
Image“FVG and Order Blocks Detector” takes the familiar ideas of FVGs and order blocks and presents them with one simple rule: an extending box is live, a frozen box is done. The zone caps and overlap filtering really do their job, and the fact that you can leave it on your chart all the time without it getting in the way was the biggest selling point for me.
If you’re just getting started, try it on the 15m or 1H chart with the default settings. Once you’re used to how the zones show up, adjusting Mitigation Mode and Swing Lookback to fit your style will make each setting click. Just keep the behavior of Touch and FVG Timeframe covered in this article in mind before you switch them on.









