Order blocks

Order Block Indicator for TradingView

An order block is the price zone where a strong move started, usually the last opposing candle or small range before price moved away fast. Traders watch it for a reaction when price comes back, and the useful questions are how much of the zone the return uses up and where the idea is proven wrong.

TradingView chart with IIF: a 12-hour bearish order block above price, tapped and 94.8% mitigated, and a 12-hour bullish order block below, pending at 0%
TradingView chart with IIF: a 12-hour bearish order block above price, tapped and 94.8% mitigated, and a 12-hour bullish order block below, pending at 0%.
In this guide

Key takeaways

  • An order block is the origin of a displacement move: usually the last opposing candle before price moved away fast. Without displacement and a break of structure, it is just a box.
  • A return to a block is not one event. Price can tap it, fill part or all of it, sweep beyond it and reclaim it, or break through it.
  • Mitigation is how much of the block a return has used. The fair value gaps inside the block measure it better than whether the box was touched.
  • Decide where a block is wrong before price returns, judge it on closes, and retire it when that level breaks.

What an order block is

An order block is the zone where a strong move began: the last down candle before a sharp rally, or the last up candle before a sharp drop, sometimes a small cluster of candles rather than one. A bullish block sits below price and is watched as possible support; a bearish block sits above price and is watched as possible resistance.

The usual reasoning is that large orders were filled in that zone, so price may react when it comes back. A chart cannot confirm that, so treat a block as a hypothesis: this is where the move may have started, this is where price may return, and this is where the idea is wrong.

If every candle before a push counted, the chart would fill with boxes. Most traders keep only blocks that pass a few checks:

  • Displacement. The move away is fast enough to leave a fair value gap, a three-candle pattern where the first and third candles do not overlap.
  • Structure. The move breaks a recent swing high or low, so the block sits at the start of a change in structure, not in the middle of a range.
  • Freshness. Price has not come back to it yet.
  • Invalidation. There is a clear price beyond which the idea is wrong.

Fresh, tapped, mitigated, swept or broken

A block changes once price returns to it, and tracking its state is what separates a zone worth watching from an old rectangle. Five states cover most cases:

  • Fresh. The block has formed and price has not come back.
  • Tapped. Price has traded back into the block. A tap says price arrived, not how much of the zone it used.
  • Partly or fully mitigated. The return has filled some or all of the inefficiency inside the block. A fully mitigated block has been used and should lose weight unless new structure forms.
  • Swept and reclaimed. Price closes beyond the block’s edge, then closes back inside. Stops resting beyond the edge were likely taken, and the zone held.
  • Broken. Price accepts beyond the block and the structure behind it. The block is retired, and the zone often flips: demand that was overpowered can act as supply later.

Measuring mitigation with the gaps inside the block

Order blocks and fair value gaps are not separate ideas. The displacement that creates a block usually leaves gaps, and on a lower timeframe a higher-timeframe block often contains several. When price returns, those internal gaps show how much of the block it actually used.

That is more useful than asking whether the box was touched. Price can tap the edge of a block without reaching the gaps that made it important. Price can also fill every internal gap and leave the box on the chart looking as valid as the day it formed.

The better question is how much of the block is still unresolved. Open internal gaps mean the block still has something to offer on a return; once they are all filled, the block has been used.

Where an order block is wrong

Many traders keep blocks on the chart long after the market has invalidated them. If a zone reacts later, it looks obvious in hindsight; if it fails, it is quietly ignored. Decide the invalidation before price returns. Common rules:

  • A close beyond the far edge of the block. A wick through the edge is not enough; it may be a sweep.
  • A break of the swing high or low that the block protects.
  • A sweep that never reclaims: price closes beyond the edge and keeps closing there.
  • A full fill followed by a weak reaction. The block was used and nothing came of it.

The exact rule depends on your timeframe and style, but two habits apply everywhere: decide on closes, not wicks, and never widen the box to save the idea.

A worked example on a real chart

The capture is a real TradingView chart with IIF loaded: the S&P 500 on the 15-minute chart, with order blocks detected on the 3-hour timeframe. The numbered steps match the markers. The Break, Exhaust and Sweep labels belong to blocks that are not drawn here; the steps follow the three that are.

S&P 500, 15 minutes: three bearish blocks at three different stages

S&P 500 15-minute TradingView chart with IIF: two bearish 3-hour order blocks labelled TAPPED at 57.9% and 43.4% mitigated, and a newer one below them labelled PENDING at 0% that price has not revisited
S&P 500, 15-minute chart with IIF and 3-hour (180-minute) order blocks. The numbers match the steps below.
  1. 1A sharp drop on the left leaves a bearish order block at its origin (labelled 180 OB, for 180 minutes). The first rally back trades into the lower part of the block and fails. The label changes to TAPPED and reads 57.9%: the gaps inside the block are a little more than half filled.
  2. 2The next leg down leaves a second bearish block. Price comes back into it once, the label reaches 43.4%, and the decline resumes. Neither block is fully used, so both stay active.
  3. 3A third bearish block forms lower down. Price falls away from it and has not been back, so it reads PENDING at 0%. At the right edge, price is rallying toward it.

Three boxes that look alike are at three different stages. The upper two have been tested and partly used; the lower one is untested, with all of its gaps open, and it is the one price is approaching. If price closes above its upper edge and keeps closing there, it has failed, whatever its percentage.

Common mistakes

Most bad order block reads come from one of these habits:

  • Marking every candle before a move. Without displacement and a break of structure, the box has nothing behind it.
  • Treating every touch the same. A first tap at the edge and a return that fills most of the block are different events.
  • Deciding on wicks. A wick through the far edge can be a sweep; wait for closes.
  • Keeping blocks forever. A fully mitigated or broken block is history, and leaving it on the chart invites hindsight.
  • Ignoring the higher timeframe. A block that points against the higher-timeframe structure has the trend working against it.

Step through an order block’s lifecycle

The simulator below takes one bearish order block through four states: fresh, after it forms at the top of a rally; tapped, as price trades back into it; mitigated, when the return fills it and price is rejected; and broken, when price closes above the swing high that protected it. It plays through on its own, and you can click any step to see it again.

The point to take from it: the rectangle looks much the same in every state. What changes is how much of it the return used, and whether the level that protects it still holds.

A fresh block at the top of a rally

The last up candle before a sharp drop marks a bearish order block: the zone sellers stepped in from. The fast drop left two smaller gaps inside it. Price has not come back yet.

How to mark order blocks by hand on TradingView

You need no indicator for this. The rectangle tool, a lower timeframe and a rule for closes are enough.

  1. 1

    Find the displacement

    Look for a move away from an area that was fast enough to leave a fair value gap and broke a recent swing high or low. No such move, no block.

  2. 2

    Mark the origin

    Draw a rectangle over the last opposing candle before the move, from its high to its low, and extend it to the right. Some traders use the candle body for a tighter zone; pick one rule and keep it.

  3. 3

    Set the invalidation first

    Before price returns, decide the price that proves the block wrong: usually a close beyond its far edge, or beyond the swing it protects.

  4. 4

    Track the return

    When price comes back, note how deep it goes: the edge, the middle or the whole block. On a lower timeframe, mark the fair value gaps inside the block and check which ones have filled.

  5. 5

    Retire or keep

    If price closes beyond the invalidation, delete the box or grey it out. If the gaps are filled and price has left, the block is used. Keep only fresh or partly used blocks.

Institutional Imbalance Framework

How IIF tracks an order block’s lifecycle

The Institutional Imbalance Framework runs the steps above with its Structural OrderBlock Mitigation Mechanism (SOMM). It detects blocks on a higher timeframe, by default three times your chart timeframe, from displacement candles that form fair value gaps. It drops blocks narrower than 0.6 times the higher-timeframe ATR and, by default, blocks with no internal gaps, since they have nothing to measure.

It then maps every lower-timeframe fair value gap inside each block and shows one mitigation percentage that updates as price fills them. A block is marked Mitigated only when every internal gap is filled and price closes outside the zone. If price breaches the block’s structural break level, a set distance beyond the zone, the block is retired as Broken. A new block that overlaps an active one is skipped by default, or can supersede it. Recent finished blocks can stay on the chart as history boxes.

  • Block labels: formation timeframe, live mitigation percentage and the volume the block formed on.
  • Block Sweep (label Sweep, on by default): a close beyond the edge, no further than a third of the block’s width, then four consecutive closes back inside.
  • Block Exhaustion (label Exhaust, off by default): arms when a block is 85% mitigated and CVMI pressure is at an extreme.
  • Block Failure (label Break, off by default): marks the bar where a block’s break level is breached.
  • Alerts when a block is created, tapped, mitigated, swept, exhausted or broken, including JSON webhooks.
IIF on a BTC 4-hour chart with 12-hour order blocks: one bearish block labelled PENDING at 0%, one labelled TAPPED at 54.3%, and one that fills to 100%, prints a Sweep and stays as a dashed history box marked mitigated
IIF on BTC, 4-hour chart, with 12-hour order blocks. Active blocks show their state and mitigation percentage; finished blocks stay as dashed history boxes, here marked mitigated with a check.

Static boxes versus tracked order blocks

Static boxesTracked blocks
CreationAny candle before a move becomes a block.The block must come from displacement that left a gap and broke structure.
The returnEvery touch means the same thing.First tap, partial fill, full mitigation, sweep and failure are separate states.
MitigationTouched or not touched.How much of the gaps inside the block have filled, as a percentage.
InvalidationThe box stays active, or gets widened to survive.The block is retired when price closes beyond its invalidation level.
Old blocksRectangles pile up on the chart.Mitigated, broken and superseded blocks move to history or disappear.
AlertsAn alert on every touch.An alert on a change of state, optionally only above a minimum fill.

Questions about order blocks

What is an order block in trading?

An order block is the zone where a strong move started: usually the last opposing candle or small consolidation before price displaced away. Traders watch it for a reaction when price returns. It is a way of reading charts, not a guarantee; many blocks fail, which is why each one needs an invalidation level.

How do you identify a strong order block?

Look for a move away fast enough to leave a fair value gap, a break of a recent swing high or low, a block price has not revisited, and a clear price where the idea is wrong. Agreement with the higher-timeframe trend helps. None of this makes a block certain to hold.

What is order block mitigation?

Mitigation is price returning into the block and using up part or all of it. One precise way to measure it is by how much of the fair value gaps inside the block price has filled. IIF shows this as a percentage and marks a block mitigated only when every internal gap is filled and price closes outside the zone.

When is an order block invalidated?

When price accepts beyond it: it closes beyond the far edge, or beyond the swing the block protects, and keeps closing there. A wick through the edge followed by closes back inside is a sweep, not an invalidation. Decide the rule before price returns.

Which timeframe is best for order blocks?

The method works on any timeframe, but higher-timeframe blocks come from larger moves and usually carry more weight. A common approach is to mark blocks on a timeframe three to six times the one you trade and read the reaction on your own chart. IIF detects blocks at three times the chart timeframe by default.

Is there an order block indicator for TradingView that tracks mitigation?

Many community scripts draw order blocks, and some remove them once price passes through. IIF’s SOMM measures mitigation from the fair value gaps inside each block, separates tapped, mitigated, swept and broken blocks, and can alert on each change. You can also do everything in this guide by hand.

Track these levels on your own chart

The Institutional Imbalance Framework marks structure, fair value gaps, order blocks, liquidity and imbalance pressure on TradingView, and keeps track of which levels are still active.

This guide is education about reading charts, not financial advice. The concepts describe how traders interpret price; none of them predicts the market, and trading carries a real risk of loss.