Strategy family · Price action

Opening range breakout

An opening range breakout marks the high and low of the first stretch of a session, for example the first 30 minutes, and trades a close beyond either side. The window length and the definition of the session open decide the results, so both must be fixed before any test. AKQX lists it as a template that was coming soon at the time of writing.

What is the idea?

Markets often make their first decisive moves shortly after a session opens, so many traders mark the first 15, 30 or 60 minutes and treat that range as a reference. A break above the high is read as strength, a break below the low as weakness, and the opposite end of the range often serves as the stop.

The idea needs a clear session open. For exchange-traded stocks and indices that is unambiguous. For markets that trade around the clock, such as crypto, the open is a convention you choose, for example 00:00 UTC or a particular session start, and a different convention is a different strategy.

Because the range is measured over a short window, the stop is often wide relative to costs but the trade count is limited to roughly one or two per day. That makes sample size the practical constraint: a test needs many sessions before it says anything.

The rules, in order

  1. Define the session open and the window length, for example the first 30 minutes.
  2. At the end of the window, record the high and low of the range.
  3. Enter long when a candle closes above the range high, and short when one closes below the range low.
  4. Place the stop at the other side of the range, or at a defined point inside it.
  5. Set the exit: a multiple of the range, a time-based exit before the session ends, or a trailing stop.
  6. Allow at most one or two trades per session, and cancel the setup if no break occurs by a set time.

The settings the rules hide

Every setting below is a choice, and each one changes which trades the strategy takes. They have to be fixed before a test, and the more of them there are, the more room there is to fit the past.

Settings, what each controls, and what to watch for.
SettingWhat it controlsNote
Session openWhen the range startsA convention for 24-hour markets. A different open is a different strategy.
Window lengthHow long the range is measuredFix it in advance. Choosing it after seeing which length worked is fitting.
Breakout definitionClose beyond the range, or a touchA close filters false starts at the cost of a later entry.
Stop placementOther side of the range, or inside itA wide range means a wide stop and a small position.
ExitTarget multiple, time exit or trailA time exit stops a position carrying into a different regime.
Trades per sessionHow many attempts are allowedMore attempts means more exposure to false breaks.

What AKQX provides for this

AKQX has an opening-range breakout among its planned strategy templates. It was marked coming soon at the time of writing, so check the Templates section in the app for its current status.

Until then, the sections below are about the idea and how to test it. Backtests in AKQX apply estimated fees and slippage and report expectancy, profit factor, drawdown and trade count.

How to backtest it honestly

  1. Fix the session open and the window length before you look at any result, and write them down.
  2. Test a few window lengths as a robustness check, not to pick the best one. If only one length works, treat it as suspect.
  3. Count sessions and trades. With one or two trades a day you need many months before the numbers mean anything.
  4. Separate gap days and days with scheduled news, which tend to behave differently from ordinary ones.
  5. Subtract costs. Range breakouts can have wide stops, which helps, but fast reversals around the break cost slippage.
  6. Test on data you did not tune on, then paper trade through live opens.

The full method is in how to backtest a crypto strategy, and the way results are scored is on the methodology page.

A worked example, with made-up numbers

Illustrative only: the first 30 minutes of the session range between 24,780 and 24,830. A later 5-minute candle closes at 24,836, above the high, so the rule buys with a stop at 24,780 and a target at twice the risk. The range is 50 wide, so risk is about 56 per unit. If no candle closes beyond either side by 14:00, the setup is cancelled and nothing is traded that day.

Where it goes wrong

  • Choosing the window length after seeing which one worked.
  • Using a session open that is convenient for the data but not for the market.
  • Ignoring that many breaks of the range are false and reverse within minutes.
  • Treating a few good months as a result when the sample is a few dozen trades.

Educational only. AKQX is software only. It is not a SEBI-registered Investment Adviser or Research Analyst and gives no investment advice or recommendations. Backtest and paper-trading results are simulated and do not guarantee future results. Crypto products are unregulated and can be highly risky, and there may be no regulatory recourse for any loss.

Questions about opening range breakout

What is an opening range?

It is the high and low of price during the first minutes of a session. A break above it is read as strength and a break below as weakness, and it is used as the trigger for a trade.

What window length is best?

None is best everywhere. Pick one in advance, then test a few others to check the result is not fragile, rather than choosing the length that looks best.

How does this work for crypto, which never closes?

You have to define the open yourself, for example 00:00 UTC or the start of a particular session. The choice is part of the strategy, so keep it fixed during testing.

Can I run this on AKQX today?

AKQX lists an opening-range breakout template, but it was marked coming soon at the time of writing. Check the Templates section in the app for the current status.

Keep reading

Test it instead of taking it on trust

A free account includes 10 backtests a month and 1 paper algo, with no card and no broker connection.