⬡ SMART MONEY · WITH CODE · 11 MIN READ

Order blocks in practice: the institutional zone.

One of the core Smart Money concepts. We go from what an order block really is to spotting it on the chart, the entry rules and the first steps of automated detection.

By the RoboTraderIA team· updated May 2026· intermediate to advanced level

The order block is probably the most searched concept in Smart Money Concepts (SMC) — and one of the most misunderstood. The marketing version says "it's where the banks buy, just get in there and profit". The reality is soberer: it's a zone of interest with logic behind it, one that works as context, not as a magic button. Here's the honest, practical version.

01What an order block is

An order block is, in the most widely used definition, the last bearish candle before a strong bullish move (a bullish/demand order block) — or the last bullish candle before a sharp drop (a bearish/supply order block). The SMC idea: on that candle, large players ("smart money") supposedly placed institutional orders, and when price comes back to that zone, it tends to react.

Demand order block (buy) ORDER BLOCK strong impulse ↑ return to OB = potential entry
The last bearish candle before the bullish impulse becomes the demand zone. When price returns to it, that's the potential entry.

02How to identify one (the criteria)

A valid order block isn't just any opposing candle. The criteria that increase its validity:

  1. The last opposing candle before the impulse: in a demand order block, it's the last bearish candle before price rips higher.
  2. The impulse has to be strong: the move leaving the block should be impulsive, not a weak bounce.
  3. There must be a break of structure: the impulse should ideally break a relevant high/low (the break of structure — BOS). That confirms something has changed.
  4. Zone not yet "mitigated": an order block is strongest the first time price returns to it. After being tested several times, it loses strength.

The connection to order flow: the logic behind it is the same as in tape reading — where large orders were filled, there is institutional interest. The order block is an attempt to mark that zone on a candlestick chart without needing to watch the order book.

03Entry rules

The classic order block trade: you wait for price to return to the zone and look for an entry in the direction of the original impulse. In a demand zone (buy):

  • Wait for the return: price rallies (the impulse), then pulls back into the order block.
  • Look for confirmation in the zone: don't buy "blind" just because price touched it — wait for a signal (a strong candle, a micro break of structure on the lower timeframe).
  • Stop below the block: if price closes below the order block, the thesis failed — a short, well-defined stop.
  • Target: the next structural level, or a defined risk/reward ratio.

The SMC beginner's mistake: marking order blocks everywhere and buying on any touch. Without the context (trend, break of structure, confirmation), the "order block" is just a random line on the chart. The zone is a point of interest, not an automatic buy trigger.

04Getting started with code detection

Detecting an order block automatically is more complex than a regular indicator, because it involves identifying "impulse" and "structure". A simplified version of the detection logic for a demand order block in Python:

# SIMPLIFIED detection of a demand order block
def detectar_ob_demanda(df, impulso_min=0.003):
    # looks for: a bearish candle followed by a strong bullish impulse
    obs = []
    for i in range(1, len(df)-3):
        vela = df.iloc[i]
        eh_baixa = vela["close"] < vela["open"]
        # impulse: cumulative gain over the next 3 candles
        impulso = (df.iloc[i+3]["close"] - vela["high"]) / vela["high"]
        if eh_baixa and impulso > impulso_min:
            # the OB zone is the body of the bearish candle
            obs.append({
                "indice": i,
                "topo_zona": vela["open"],
                "base_zona": vela["close"],
            })
    return obs

Heads up: this is a simplified, teaching version. Robust order block detection requires bringing in break of structure, mitigation and quality filters — and even then, SMC has a strong subjective component that resists full automation. Use the code as a starting point for study, and validate a lot before trusting it.

The order block is part of a bigger system

See the full Smart Money Concepts guide — structure, BOS, FVG and liquidity together.

Full SMC guide →

05The honest part about order blocks

SMC became a trend and, with it, plenty of hype. It's worth separating what's reasonable from what's marketing:

  • Reasonable: the order block as a zone of interest where relevant activity took place, used with trend context and confirmation. It's a structured way to mark support/resistance with order flow logic.
  • Marketing: "the banks always come back to buy at the order block, just get in and profit". There is no universal statistical guarantee. Price respects order blocks sometimes, and ignores them other times.

How to use it sensibly: treat the order block as one of your reading tools, combined with trend (multi-timeframe), confirmation and risk management. As a zone of interest with good risk/reward, it adds value. As an infallible religion, it disappoints.

06Frequently asked questions

What is an order block?

The last bearish candle before a strong bullish move (a demand order block), or the last bullish candle before a sharp drop (a supply one). SMC says it's where large players placed orders, and that price tends to react when it comes back.

How do I identify an order block?

Look for the last opposing candle before a strong impulse that breaks structure (BOS). The zone is that candle's body. It's most valid the first time price returns to it (before it's "mitigated").

Do order blocks actually work?

It's an institutional order flow reading concept used by many, but with no universal statistical guarantee. It works better as a zone of interest combined with trend and confirmation than as an infallible standalone signal.

Can detection be automated?

Partly. You can code the search for "opposing candle + impulse + break of structure", but SMC has a subjective component (zone quality, mitigation) that resists full automation. Use code as a starting point and validate thoroughly.

What's the difference between an order block and support/resistance?

Conceptually similar — both mark reaction zones. The order block adds the logic of "the origin of an impulsive move with a break of structure", while classic support/resistance is simply where price has reacted before. The order block is a more specific reading.

Read next

🎁 Get the free trading bot (with Quotex, Deriv and IQ Option APIs)

Open source bot + ready-made API code. You edit it by chatting with ChatGPT/Claude — no programming. Free, no spam.

👉 Want the ready-made bot? Go to botbinaryoptions.com →