1nTest · strategy backtester and trading bot builder

Expansion and consolidation

An expansion is a fast directional move with large candles that takes price out of its previous range; a consolidation is the pause after it, when price compresses into a narrow range.

What it means

Markets alternate between the two. One idea: after an expansion and a consolidation, wait for a deviation of the consolidation range in the direction of the expansion.

Such chains are rare on higher timeframes: in our example on H4 they gave 31 trades over four years on three assets.

How 1nTest computes it

Expansion: a move of at least the set number of ATR(14) within a limited number of candles, a small pullback inside, a minimum slope and several large candles in the direction of the move, breaking out of the previous range.

A down move is calculated by the same code on mirrored prices. An expansion is known at the close of its top candle — never earlier.

Example backtests with this step

Related concepts

← All concepts