In this article
After this article, you can
- Calculate breakout distance relative to range width.
- Define an additional filter and handle a zero denominator.
Terms at hand: Backtesting · Trading Plan · Liquidity · Stop loss · Trailing stop · Take profit (TP) · Limit order
A breakout crosses a previously defined boundary. It may continue or return inside the range. A breakout strategy therefore needs a rule available at decision time, an execution model and a record that includes failed attempts. A convincing chart arrow or a completed candle outside a range does not establish future continuation or profitability.
Define the signal before judging its outcome
One explicit exercise records the highest high and lowest low of the previous 20 completed Bid bars before the signal bar starts. An upward signal occurs if the next bar closes above that recorded upper bound. Twenty is a chosen parameter, not an optimum. The channel need not be a consolidation; any width or duration condition must be defined separately. Range trading inside a consolidation uses different hypotheses while boundaries hold, rather than automatically switching to a profitable breakout mode.
How to recognise a mature consolidation
Do not include the signal candle in the maximum that its own close must exceed. Freeze the boundaries or define exactly when they update. Bollinger Bands, ATR, duration and repeated touches can be additional measurable filters, but none implies stored energy or a guaranteed stronger exit from a longer range. The support and resistance guide explains level selection; record that rule before seeing subsequent prices.
Real breakout versus false breakout
A close beyond the boundary confirms the chosen signal condition, not what later candles will do. To classify a failed break, define an observation horizon and return condition in advance. A wick outside followed by a close inside may fail a close-based entry rule; a close outside can still fail later. Do not use the later label “real breakout” to justify an entry as if its outcome were already known.
This version waits for a completed candle beyond the chosen boundary. Higher-timeframe alignment can be defined as a filter, but a daily breakout is not automatically cleaner or more profitable than an hourly one. Test each timeframe and filter with the same cost and execution assumptions.
Entry, stop and target
A market order after a completed signal, a stop order placed beforehand and a limit order awaiting a return are separate variants. TradingView’s default strategy emulator fills newly created orders no earlier than the next available tick; with default bar-close calculation this is the following bar’s open. Other settings can change simulation timing. This is an emulator rule, not a broker price guarantee. A limit order may remain unfilled, and a chart touch does not alone establish full execution. Specify actual product order rules and quote sides.
One possible invalidation rule puts the stop beyond the opposite side of the range. It creates a wide planned stop distance and can reduce reward relative to risk. Other tested plans use a retest structure or a volatility-based distance. Select the rule before entry and calculate its size; no single placement is universally the only sensible one.
An ATR-multiple distance or the opposite range boundary can be a chosen stop rule. A measured-move target projects a stated multiple of range width from a stated reference. Define the multipliers, partial-exit sizes and any trailing stop rule before entry. Profitability depends on the whole outcome distribution and costs, not merely on the reach of later targets. An ordinary stop does not guarantee its execution price.
A step-by-step hypothetical example
Keep the original illustration as a fictional EUR/USD model: a recorded range 1.0800–1.0900 is 100 pips wide for a 0.0001 pip. A signal-bar Bid close is 1.0923. Assume a later full Ask fill of 5,000 EUR at 1.0925 and, only in the retest branch, a later full Ask fill of another 5,000 EUR at 1.0900. Neither fill is inferred from a candle close or mere level touch. The chosen ordinary stop trigger is 1.0790; targets from the upper boundary are 1.1000, 1.1050 and 1.1100 for one, one-and-a-half and two range widths. These targets are calculation references, not predicted destinations.
From the first assumed fill, the planned stop distance is 135 pips and target distances are 75, 125 and 175 pips. The retest fill has 110 pips to the same stop. Adding it increases exposure: at the assumed stop fill, the first 5,000 EUR loses USD 67.50 and the second loses USD 55, for USD 122.50 gross. A better entry price on the added tranche is not a reduction in total risk.
| Assumed complete exits | Gross result | After total USD 3 commission |
|---|---|---|
| Both tranches sold at Bid 1.1000 | +87.50 | +84.50 |
| Both sold at Bid 1.0790 | −122.50 | −125.50 |
| Half of each tranche at Bid 1.1000; the rest at Bid 1.0790 | −17.50 | −20.50 |
| Both sold worse at Bid 1.0785 | −127.50 | −130.50 |
Gross result is the sum of each EUR volume multiplied by its actual exit Bid minus entry Ask. We assume USD 3 total commission in every listed branch, including split exits; no financing or conversion. These are invented fees for the exercise, not a broker schedule. Spread is already in the fill prices, so do not deduct it twice. Partial profit-taking can still leave a net loss, and a later target does not establish profitability without the complete series of outcomes.
Signal counting is a separate issue. Freeze an upper boundary at 1.1040, with prior close 1.1037 and next closes 1.1045, 1.1048, 1.1038 and 1.1042. “Every close above” marks bars 1, 2 and 4: three signals. “A crossing from at/below to above” marks bars 1 and 4: two events. Define whether an existing position permits another order; a signal, a new event and an allowed trade are different records. These invented closes test counting only, without fills or returns.
Do “two points above” mean the same thing?
Absolute breakout distance and distance relative to the earlier range are different measures.
Scroll sideways to see the full diagram
Explicit custom rule: fictitious prices in one hypothetical unit. Compare predefined ranges [98; 100] and [80; 100]. Both close at 102. An invented additional filter requires (Close − U)/(U − L) ≥ 0.5. We do not present 0.5 as optimal or recommend a trade.
Distance above the upper bound is identical: 102 − 100 = 2. Relative to the narrow width it is 2/2 = 1; relative to the wide width it is 2/20 = 0.1. Both close above U, but only the first passes the extra filter. If U = L, division by zero is invalid: define how the rule handles that input. Strategy documentation shows how signal conditions are expressed; this formula and threshold are our example, without a performance study.
Test filters without assuming they prevent failure
MetaTrader 5 defines tick volume as the number of ticks received during bar formation, distinct from actual deal volume, which may be unavailable for OTC symbols. A broker’s tick count is not total FX turnover, and it need not count only changed prices. Record the feed and test a volume filter separately. A session or macro-release filter likewise changes the sample rather than guaranteeing continuation. The best hours to trade guide and technical analysis section in our library supply context, without establishing that Asian-session breaks always fail or London breaks are strongest.
A close beyond a range is an observable rule. Whether that rule improves net results must be tested, including false breaks and execution costs.
What to do tomorrow
- Record instrument, price basis, interval and channel lookback before the signal bar. State any extra width, volatility or session filter.
- Calculate range width and signal distance, and distinguish absolute distance from the relative filter in the diagram. Define what happens when width is zero.
- Specify order type, quote side, expiry, stop, exit sizes and fee assumptions. Recalculate total risk if a later tranche is added.
- Record when the signal becomes final and when an order can execute. Do not substitute the signal close for a later fill.
- Keep all signals, missing retests, unfilled orders, losses and positions still open at the end. Compare frozen variants on later data rather than select only successful charts.
Related material: range trading in consolidation considers observations inside a recorded range; the wedge pattern uses different boundary geometry; double top and bottom requires its own confirmation rules. No shape alone guarantees a direction change.
Check your understanding
One short exercise
About 2 min · you can try again
Both cases have U100 and Close 102. With L80, (Close−U)/(U−L) is 0.1. What does our ≥0.5 filter do?
- Rejects this candidate, although Close is above U.
- Accepts it because the two-point distance is positive.
- Proves that wider breakouts perform worse.
Check the answer and explanation
Rejects this candidate, although Close is above U.
0.1 is less than 0.5. Crossing U and passing the extra filter are separate conditions.
Frequently asked
How is a real breakout different from a false breakout?
A completed close outside a recorded range satisfies a close-based signal, not a forecast. Define “failure” with a return condition and time horizon before observing the next bars. A wick outside with a close inside can fail that entry rule; a close outside can still return later. Record final-signal time and possible execution time separately. Higher timeframes, tick-volume increases or extra filters do not guarantee a cleaner or more profitable signal.
Is it better to enter immediately on the break or after a pullback (retest)?
Compare explicitly defined variants. A market order after confirmation and a retest limit can produce different fills and eligible cases. The retest may never occur or may not give a full fill; the market fill is not necessarily the signal close. Splitting into tranches is another rule, requiring total-risk and fee calculations. In our retest example, adding 5,000 EUR at a better price increases planned gross loss at the assumed stop from USD 67.50 to USD 122.50. A better added entry does not mean lower total risk or better net returns.
Where do you set the stop loss and how do you size the target on a breakout?
No stop placement or target multiplier is universal. State the invalidation rule, actual fill assumptions and position size before trading. Our range-width target at 1.1000 is 75 pips above the first assumed fill at 1.0925, while the stop trigger at 1.0790 is 135 pips below it. Later targets are separate exit rules rather than a source of guaranteed profitability. Half of each filled tranche closed at the first target and the rest at the assumed stop gives USD −17.50 gross, or −20.50 after our USD 3 model commission. Worse stop execution increases loss.
Does a breakout strategy work on all pairs and at every session hour?
Performance cannot be inferred from a pair label or session name. Fix the product, provider, price basis, signal and cost assumptions, then compare the chosen hours or instruments with the same rules. A narrower sample or higher tick count does not establish improved net returns. Use the actual symbol’s tick/pip specification rather than quote a universal metal-pip range. Include signals near releases, missing retests and failures according to rules chosen beforehand; do not exclude them retrospectively because their outcome was poor.
Sources & bibliography
-
John J. Murphy Technical Analysis of the Financial Markets · New York Institute of Finance, 1999; discusses consolidation patterns and conventional volume-confirmation criteria. archive.org ↗
-
Corporate Finance Institute Trading Range — Overview, How It Works, Strategies · A Corporate Finance Institute explanation of trading ranges, support, resistance and breakouts. corporatefinanceinstitute.com ↗
-
Corporate Finance Institute Horizontal Channel - Overview, Patterns, Support and Resistance · Explains horizontal consolidation channels and the conventional interpretation of possible breakouts. corporatefinanceinstitute.com ↗
-
Bank for International Settlements Triennial Central Bank Survey 2022 · The 2022 survey provides context on foreign-exchange turnover and market structure. www.bis.org ↗
-
TradingView Pine Script strategies — execution and simulated costs · Documents default next-tick fills, configurable same-close simulation and commission inputs. Emulator behavior is distinguished from real broker execution. www.tradingview.com ↗
-
MetaQuotes MetaTrader 5 Price Data — tick count and quote basis · Defines received tick count separately from deal volume and describes Bid-based OTC charts. One feed’s ticks do not measure whole-market Forex turnover. www.metatrader5.com ↗
-
IG UK Order types — limit, stop and slippage · Provider-specific documentation distinguishes price-limited instructions from ordinary stops that can execute worse. It does not guarantee complete fills or breakout profitability. www.ig.com ↗
Go deeper · the complete guide
Inside bar — the breakout strategy from the inside candle — Compare a mother-bar range breakout, separating pattern definition, order activation and expiry.
More in Trading strategies →