Blog / Strategy
Strategy

Previous Day Range Breakout

Disclaimer: This article is for educational and informational purposes only. It does not constitute financial or investment advice. Trading forex and CFDs carries significant risk of loss. Past performance of any strategy — including backtests — does not guarantee future results. Never trade with money you cannot afford to lose.

What Is This Strategy?

The Previous Day Range Breakout strategy is a breakout trading system built around one of the most widely followed reference points in intraday markets: yesterday's high and yesterday's low. These two levels bracket the entire prior trading session, so they act as a natural map of where the market last found agreement between buyers and sellers. A move that decisively pushes beyond either boundary is treated as a signal that price has left that zone of balance and may be trending into fresh territory.

To measure how far price should travel before a breakout is considered valid — and to size its stops and targets — the strategy uses the Average True Range (ATR), an indicator that quantifies recent volatility. Because every distance in the system is expressed as a multiple of ATR rather than a fixed number of points, the logic adapts automatically to different symbols and different volatility regimes without any hard-coded values.

This strategy is best understood as a learning tool for anyone studying how price reacts around obvious, well-watched levels. It is a clean, mirror-image example of directional breakout logic: the long rules and short rules are exact reflections of one another. It is not a shortcut to any particular outcome, and it is presented here so you can study its structure, test it responsibly, and understand both what it is trying to capture and where it can struggle.

How It Works

The strategy tracks the trading day directly from the primary chart's own calendar date — it never reads a second timeframe. Each newly closed bar extends the current day's running high and low. When the calendar date rolls over to a new day, the day that just finished is "frozen" and its high and low become the breakout rails for the new session.

Here is how the strategy operates, step by step:

Every signal is evaluated once per newly closed bar, using the bar that just finished as the decision bar. This "close beyond the level" requirement is what separates a genuine breakout signal from a brief intrabar spike.

previous day range breakout strategy
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
AtrPeriod 14 5 50 Number of bars in the ATR calculation used for the breakout buffer and for stop/target sizing.
AtrStopMult 1.5 0.5 5.0 Stop-loss distance beyond entry, expressed in ATR multiples. Larger values give the trade more room.
RewardRatio 1.8 0.5 5.0 Take-profit distance as a multiple of the ATR stop distance. 1.8 targets a reward 1.8× the risk.
BreakoutBufferAtr 0.10 0.00 1.00 Confirmation buffer beyond the previous-day level, as a fraction of ATR. Filters out marginal pokes.
MaxTradesPerDay 1 1 5 Maximum entries per side (long and short) per session, guarding against re-entry churn.
MaxSpreadPoints 60 0 400 Skips new entries when the current spread in points is wider than this value.
Lots 0.10 0.01 1.00 Base trade volume, normalised to the symbol's volume step and limits.
Magic 5307 0 9,999,999 Unique identifier so the EA manages only its own positions.
previous day range breakout strategy — MQL5 source code

Recommended Chart Settings

The Previous Day Range Breakout strategy was designed for indices and FX majors — for example US30, EURUSD, or XAUUSD (gold) — on M15 or M30 timeframes. These are the classic home of prior-day-level breakout trading, where yesterday's high and low are watched closely by a large number of participants.

The intermediate timeframe matters: it is granular enough to produce a clean breakout close soon after a level is broken, yet slow enough to filter out much of the noise seen on very short charts. Note that results will vary considerably across different symbols, brokers, and market conditions, so any timeframe or symbol you choose should be studied on its own merits rather than assumed to behave identically to another.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Like every breakout approach, this strategy has clear strengths and equally clear limitations, and understanding both is part of studying it properly.

Strengths. The logic is transparent and symmetrical — the long and short rules are exact mirrors, which makes the strategy easy to reason about. Because it references yesterday's high and low, it anchors to levels that many traders monitor, so breakouts can coincide with genuine shifts in participation. The ATR-based buffers, stops, and targets mean the system adapts to volatility automatically rather than relying on fixed point values that only suit one symbol. The daily re-entry cap and spread filter add practical discipline that many raw breakout systems lack.

Known limitations. Breakout strategies are, by nature, vulnerable to false breakouts — the classic pattern where price briefly clears a level, triggers an entry, and then reverses back inside the range. This is most common in ranging, low-momentum markets that lack a clear trend. In such conditions the strategy may repeatedly signal near the edges of the previous day's range and give back small amounts on each attempt, which is exactly why the MaxTradesPerDay cap exists. The strategy also has no time-of-day filter, so it can act on a breakout during thin, illiquid hours where follow-through is less reliable. Finally, because it reconstructs the "day" from UTC calendar dates, the way sessions align to your broker's server time can shift where the day boundary falls, which is worth verifying before relying on the levels.

The honest takeaway is that this strategy tends to be more comfortable in trending, momentum-driven environments and less comfortable in quiet, range-bound ones — a trade-off common to the entire breakout family.

Risk Management Tips

Sound risk management matters far more than any single set of parameters. Consider these general principles as you study the strategy:

Risk Warning

Trading foreign exchange, CFDs, and other leveraged financial instruments involves substantial risk of loss and is not suitable for all investors. The strategies and tools discussed on this page are provided for educational purposes only and do not constitute financial advice, investment recommendations, or solicitation to trade. Always consult a qualified financial adviser before making trading decisions. Past backtest performance is not indicative of future results.

Downloads

← Back to Blog