Strategies and backtests

Order block trading: what order blocks are and how to test one

An order block is the last opposite candle before a move that breaks structure. Here is how to mark one, what mitigation and breakers mean, and a version you can test.

[

November 17, 2026

]
•
[

10

 

min to read

]

The short answer

An order block is the last opposite-colored candle before a move that breaks market structure. A bullish order block is the last down candle before price closes above a swing high. A bearish one is the last up candle before a close below a swing low. Traders mark its body or range as a zone to watch when price returns.

What is an order block?

An order block is a zone on the chart, taken from one candle, where traders in the Smart Money Concepts (SMC) community expect price to react when it comes back. The idea is that large participants had to place big orders before the strong move that followed, and that the candle just before the move marks where. That explanation is a belief about who traded and why, not something a chart can show. The chart only shows the candle and what happened after it. The hub article Smart Money Concepts maps where the term sits among the others.

To draw one by hand you need a definition that picks the same candle every time. The one used here has three parts: the candle is the last candle of the opposite color before the move, the move closes beyond the last swing high or low (a break of structure), and the zone is the candle’s body, from its open to its close. Some traders use the full range from low to high instead. Pick one and keep it.

How do you mark a bullish and a bearish order block?

  1. Mark the swing highs and lows (a candle whose high or low is beyond the 2 candles on each side).
  2. Find a candle that closes beyond the last swing high (bullish) or the last swing low (bearish).
  3. Walk back from the start of that move to the last candle of the opposite color.
  4. Draw the zone from that candle’s open to its close, and extend it to the right.
Bullish and bearish order blocks.
Bullish order blockBearish order block
The candleThe last down candle (close below open) before the move upThe last up candle (close above open) before the move down
The move after itCloses above the last swing highCloses below the last swing low
The zoneIts open to its closeIts open to its close
What traders watch forPrice returning down into the zonePrice returning up into the zone
Where the idea failsA candle closes below the zoneA candle closes above the zone

Many writers add that the move should be “impulsive”, meaning big candles with little overlap. That word has no fixed number. A common way to make it objective is to require that the move leaves a fair value gap, a three-candle gap in which candle 1’s high is below candle 3’s low for a bullish move. We will use that in the test.

Why are order blocks hard to define objectively?

Because each part of the definition has a choice in it, and different choices mark different zones on the same chart:

  • Which swing. The size of the swing setting changes which move counts as breaking structure.
  • How far back. “The last opposite candle” is clear for one candle, but traders disagree about whether to take the last down candle, the whole run of down candles, or the candle with the lowest low.
  • Body or range. The two zones can differ a lot in size.
  • What counts as a retest. A touch, a wick into the zone, a close inside it, or a close at the midpoint.
  • Hindsight. On a finished chart the order block is obvious. In real time, you need the break to have happened before you can draw the zone, and many candidate candles never get a break.

That is why two people looking at the same chart can mark different blocks, and why indicators that draw order blocks automatically each use their own settings. If you use one, read its documentation for these choices and treat its zones as one version of the idea.

What does mitigation mean for an order block?

An order block is mitigated when price returns to it. Traders disagree on the exact trigger: some say any trade into the zone, others require a close inside. After mitigation, the usual reading is that the block has been “used”, so many traders only look at unmitigated blocks, those price has not come back to yet. Some keep trading a block until it has been touched more than once.

The distinction that matters for a test is between mitigated and invalidated. If price returns and a candle then closes beyond the far side of the zone (below a bullish block, above a bearish one), the idea has failed. State that exit in the rule, because that close is where your stop belongs.

What is a breaker block?

A breaker block is an order block that failed and flipped roles. A bullish order block that gets broken, with a candle closing below it, becomes a breaker. Traders then watch for price to come back up to it from below and treat it as resistance. A failed bearish order block becomes a breaker that is treated as support. The logic is the same as with a broken support level that turns into resistance, and Fidelity’s technical analysis guide covers support and resistance in that general sense.

A breaker is defined entirely by the failure, so it is only known afterward, and it carries all the ambiguity of the order block it came from. It is a separate idea to test, not a free confirmation.

What does an order block look like on real candles?

Here is one on Hyperliquid’s xyz:GOLD perpetual, 4-hour candles in UTC, pulled from the public API on November 17, 2026. The zone is the body of the candle, and swings use 2 candles on each side.

Seven 4-hour xyz:GOLD candles from November 8 to November 11, 2026.
Candle (UTC)OpenHighLowCloseWhat it shows
Nov 8, 20:004,066.74,075.84,038.74,056.9The last down candle: bullish order block, body 4,056.9 to 4,066.7
Nov 9, 00:004,057.04,135.54,056.64,117.1Closes at 4,117.1, above the 4,081.9 swing high: bullish break of structure
Nov 9, 04:004,117.24,133.04,084.04,087.8Low 4,084.0 is above candle 1’s high of 4,075.8: a bullish fair value gap, 4,075.8 to 4,084.0
Nov 10, 08:004,116.14,122.34,071.74,075.3Trades down through the gap to 4,071.7 and closes at 4,075.3
Nov 10, 12:004,075.74,081.84,035.44,044.4Trades into the block to 4,035.4, closes at 4,044.4 below its body
Nov 10, 16:004,044.14,047.43,994.94,031.4Closes at 4,031.4, below the whole candle’s range: the block has failed
Nov 11, 04:004,047.04,066.14,043.04,059.6Rises to 4,066.1 and closes at 4,059.6, inside the old body: the breaker retest

The November 8, 20:00 candle is the last down candle before a close above the swing high, and the move left a fair value gap, so it passes the definition. About a day and a half later, on November 10, price came back, ran through the gap, then through the block, and closed below it. A long entered on the return to the block, with the stop below it, would have been stopped. Later, on November 11, price rose back into the old zone from below, the breaker situation, and the last candle in this data, November 11, 20:00, closed at 3,979.1.

This is one example on one market. It shows the definitions and one way they fail, not what usually happens. A different swing setting, or the full-range zone, would give different levels.

How do traders use order blocks, and what goes wrong?

The usual plan is to wait for a break of structure, mark the order block, wait for price to return, and enter in the direction of the break with a stop beyond the zone. Some require that the zone also overlaps a fair value gap, or sits in the discount half of the swing for a long.

  • Marking after the fact. Blocks drawn on a finished chart are chosen with the answer in view.
  • Taking every block. Most candles are the last opposite candle before something. Without the break and the gap requirement, you mark a zone every few candles.
  • Price never returns. A strong move often leaves the zone behind, so a limit order at the block can sit unfilled while the move runs.
  • No exit for the failure. The example above shows why. Decide in advance that a close beyond the zone ends the trade.

Do order blocks work? What does the research say?

Little or no peer-reviewed research tests order blocks as such. Videos and courses that show chosen examples are not evidence, because the examples were picked with hindsight, and this article does not rely on them.

The nearest academic work asks whether rule-based chart reading carries any information at all. Lo, Mamaysky and Wang (NBER working paper 7613, published in the Journal of Finance in 2000) recognized chart patterns with an algorithm on U.S. stocks from 1962 to 1996 and found some patterns added information beyond the plain return distribution. That supports testing rules like this one. It does not say that order blocks work, or that anything works on gold in 2026. The only way to learn about your version is to define it exactly and test it.

How do you test an order block?

A drawn order block depends on judgment, so a test needs a rule a machine can check. Here is a long version built from the parts above:

  1. Market and time frame: gold (xyz:GOLD), 4-hour candles.
  2. Break: a candle closes above the most recent confirmed swing high (a swing needs 2 candles on each side).
  3. Gap: the move leaves a bullish fair value gap, candle 1’s high below candle 3’s low.
  4. Zone: the gap, or the body of the last down candle before the break.
  5. Entry: the first time price returns into the zone, enter at the next open.
  6. Stop: below the low of the candle that started the move, or earlier on a close below the zone.
  7. Take profit: a fixed multiple of the stop distance.

Then compare results across the zone choices (body, range, gap), swing sizes and exits, on past data that includes rising, falling and flat stretches. If the result only holds for one setting, treat it as noise. The backtesting guide covers the checks.

Be exact about Ethy. Order blocks are not one of its built-in conditions. Its strategy conditions do read swings, breaks of structure, fair value gaps and retests, so the nearest testable rule uses a break of structure, the fair value gap it leaves, and a retest of that zone. That tests the idea through the gap, not the order block candle itself, and the zones differ (in the example above the gap sat above the body). You describe the rule in plain English, check the rules Ethy shows against the definitions here, backtest up to 365 days, optimize, and run it on paper before any real money. See AI backtesting for how the backtester works.

Summary

  • An order block is the last opposite-colored candle before a move that closes beyond a swing high or low.
  • Bullish: last down candle before a close above the swing high. Bearish: last up candle before a close below the swing low.
  • Mitigation means price returned to the zone; a close beyond its far side means the idea failed and the block may become a breaker.
  • The definition has many choices (swing size, body or range, what counts as a retest), so two people mark different blocks.
  • Little or no peer-reviewed research tests order blocks as such; define the rule exactly and test it.
  • Ethy has no order block condition; test the nearest rule with a break of structure, the fair value gap it leaves and a retest.

Questions people ask

What is an order block in trading?

An order block is the last candle of the opposite color before a move that breaks market structure. For a bullish block it is the last down candle before price closes above a swing high. Traders mark its body or range as a zone to watch when price returns to it.

What is a breaker block?

A breaker block is an order block that failed. When a candle closes beyond the far side of the block, traders treat the zone as having flipped role: a broken bullish block is watched as resistance, a broken bearish block as support. It is only known after the failure.

What does it mean when an order block is mitigated?

Mitigated means price has returned to the zone. Traders differ on whether a touch or a close inside is required. Many only look at unmitigated blocks. A close beyond the far side of the zone is different: that invalidates the block rather than just using it.

Does Ethy have an order block condition?

No. Order blocks are not one of Ethy’s built-in conditions. It reads swings, breaks of structure, fair value gaps and retests, so the nearest testable rule uses a break of structure, the fair value gap it leaves, and a retest of that zone.

Are order blocks the same as support and resistance?

Not quite. Support and resistance are levels where price has turned before, drawn from past highs and lows. An order block is a zone taken from a single candle before a break of structure. The ideas overlap, especially once a block fails and becomes a breaker.

Sources

  1. Fidelity Learning Center: What is technical analysis?fidelity.com
  2. Lo, Mamaysky and Wang: Foundations of Technical Analysis (NBER working paper 7613)nber.org
  3. TradingView Pine Script v6 reference (pivot functions)tradingview.com
  4. TradingView Pine Script docs: strategies and backtestingtradingview.com
  5. TradingView Support: what are strategies, backtesting and forward testing?tradingview.com
  6. Hyperliquid API docs: info endpoint (candleSnapshot)hyperliquid.gitbook.io

Trading involves risk, including the loss of your money. Ethy AI is a research and trading tool and does not give investment advice or recommendations. Backtests are simulations on historical data and do not predict future results.

Ethy blog

Read more

The $ETHY ecosystem

Stop watching charts.
Start living.

Deploy your AI trading agent in one click.