⬡ SMART MONEY · WITH CODE · 11 MIN READ

Order block in practice: the institutional zone.

One of the core Smart Money concepts. We'll go from what an order block really is to identifying it on the chart, the entry rules, and the start of automated detection.

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

The order block is probably the most-searched Smart Money Concepts (SMC) idea — and one of the most misunderstood. The marketing version says "it's where the banks buy, get in there and profit." The reality is more sober: it's a zone of interest with logic behind it, working 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 common definition, the last down candle before a strong upward move (a bullish/demand order block) — or the last up 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 returns to that zone, it tends to react.

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

02How to identify it (the criteria)

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

  1. The last opposite candle before the impulse: in a demand order block, it's the last down candle before price shoots up.
  2. The impulse must be strong: the move leaving the block should be impulsive, not a weak bounce.
  3. There must be a break of structure: the impulse ideally breaks a relevant high/low (the break of structure — BOS). That validates that something changed.
  4. The zone is still un-"mitigated": the order block is strongest the first time price returns to it. After being tested several times, it loses force.

Connection to flow: the logic behind it is the same as tape reading — where large orders were executed, there's institutional interest. The order block is an attempt to mark that zone on the candle chart, without needing to see the 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 (buy) zone:

  • Wait for the return: price rises (impulse), then pulls back to the order block.
  • Look for confirmation in the zone: don't buy "blindly" just because it touched — 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 has failed — a short, defined stop.
  • Target: the next structure level, or a defined risk/reward ratio.

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

04Starting to detect it with code

Detecting an order block automatically is more complex than a common 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 detect_demand_ob(df, min_impulse=0.003):
    # look for: a down candle followed by a strong up impulse
    obs = []
    for i in range(1, len(df)-3):
        candle = df.iloc[i]
        is_down = candle["close"] < candle["open"]
        # impulse: cumulative rise over the next 3 candles
        impulse = (df.iloc[i+3]["close"] - candle["high"]) / candle["high"]
        if is_down and impulse > min_impulse:
            # the OB zone is the body of the down candle
            obs.append({
                "index": i,
                "zone_top": candle["open"],
                "zone_base": candle["close"],
            })
    return obs

Caution: this is an instructional, simplified version. Robust order block detection requires incorporating break of structure, mitigation and quality filters — and even then, SMC has a strong subjective component that resists full automation. Use code as a starting point to study, and validate a lot before trusting it.

The order block is part of a larger system

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

Complete SMC guide →

05The honest part about order blocks

SMC became a fad and, with it, a lot 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 occurred, used with trend context and confirmation. It's a structured way to mark support/resistance with flow logic.
  • Marketing: "the banks always come back to buy at the order block, just get in and profit." There's no universal statistical guarantee. Price respects order blocks sometimes, and ignores them at others.

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 down candle before a strong upward move (a demand order block), or the last up candle before a sharp drop (supply). SMC says it's where large players placed orders, and price tends to react when it returns.

How do you identify an order block?

Look for the last opposite 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 being "mitigated").

Do order blocks actually work?

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

Can you automate the detection?

Partially. You can code the search for "opposite 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 a lot.

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 just where price reacted before. The order block is a more specific reading.