1nTest · strategy backtester and trading bot builder

Deviation (false breakout)

A deviation is an excursion beyond a range boundary after which price comes back inside and heads for the opposite boundary.

RangeDeviation
Real AUDUSD H4 candles from 2026-04-10; the shapes are drawn from the output of our engine's detector.

What it means

A deviation sweeps the liquidity beyond the boundary, like a sweep of a swing high or low, but the level is the edge of a range. If price settles back and heads for the other side, it was a deviation; if it quickly drops out again for long, the range is breaking.

A common plan: enter once price is back inside, stop beyond the deviation's extreme, target the opposite boundary.

How 1nTest computes it

What matters is the combination: how many candles stayed outside, how far price went, and what happened after the return. Any wick beyond the boundary opens an excursion.

It counts as a deviation once price is back inside and a candle closes past the middle of the range toward the opposite boundary. If before that price falls back outside for long (more than 12 closes beyond the boundary in total) or goes further than the range height, the range is broken.

Option “first deviation only”: trade only the first deviation of a range, with one re-entry from the same side after a stop.

Example backtests with this step

Related concepts

← All concepts