Page 1 of 1

Breaking the highest high of the last twenty bars: channel breakouts on M5

Posted: Fri Nov 20, 2026 9:10 am
by Shadow Trader
One of the simplest breakout rules in trading is to buy when price exceeds the highest high of the last N bars and sell when it drops below the lowest low. It goes back decades on daily charts, where it was used for trend following. It is worth asking what happens when the same rule is moved down to a five-minute chart.

The rule has some attractive features for a scalper. It is completely mechanical, so there is no debate about where the level is. It adapts to the market, because the channel widens in active periods and narrows in quiet ones. And it naturally gives a stop location, either the opposite side of the channel or its midpoint.

The problems are also fairly clear. On M5, twenty bars is under two hours, and the highest high of that window is often just the top of an ordinary intraday range. Breaking it does not necessarily mean a trend has started. In a choppy session the rule will buy the top and sell the bottom of the range repeatedly, and each of those false breaks costs the spread as well as the loss.

A few adjustments might help. One is a filter based on the width of the channel compared with recent average range, so that breakouts from very narrow channels in dead periods are skipped. Another is a session filter, only taking breaks during the hours when the pair tends to trend. A third is requiring the break to happen on a candle that closes beyond the level rather than just touching it.

The choice of N matters as well. A shorter window gives more signals and more noise; a longer window gives fewer, later signals that are more likely to coincide with real moves.

Has anyone tested this kind of rule on lower timeframes? It would be interesting to hear which window length, if any, held up after costs.