Join waitlist
Strategies / Breakout / Narrow Range 7 Breakout

Narrow Range 7 Breakout

Buys when the previous bar's range is the narrowest of the last 7 bars and the close then rises above the prior bar's high. The position is closed once 5 or more bars have passed since entry.

BreakoutLong onlySwingUSD/JPYDaily
1.60Profit factor
1,769Net profit USD
61.02%Win rate
59Trades
-662Max drawdown
29.98Avg trade

Best run of 2. USD/JPY, Daily, spread 1.4, from run pf:2026-10-10-USDJPY-D.tsv:21.

Entry rules, long

  1. The previous bar's high-low range is the lowest of the last 7 bars' ranges.

Exit rules

  1. The position has been held for 5 or more bars, and it is closed at market.

Test conditions

PeriodUp to 2026-10-10
InstrumentUSD/JPY, Daily
Spread1.4 points
Starting capital1,000,000
CostsSpread only. Commissions and overnight financing are not included.
BarsUp to 200,000 bars, fewer where the instrument has less history
Last tested2026-10-10

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
USD/JPYBest runDaily1.60 5961.021,769 USD-662
Brent CrudeDaily1.35 21357.2810,521 EUR-3,367

Charts

Results by run

Above 1.0 made money, below 1.0 lost money.

The code

ProBuilder code, as tested

// ==============================================================
// Narrow Range 7 Breakout
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Breakout
// Direction: Long only
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false
ONCE capital = 10000

21 more lines: the entry and exit rules.

Setup

How to load it

  1. Copy the code with the copy button on the code block.
  2. In ProRealTime, open a chart of the instrument and timeframe you want to test, then open ProOrder > New trading system and choose "Create with programming".
  3. Paste the code, give the system a name and save it.
  4. Click "Backtest", set your own spread and position size, and run it before you consider trading it live.
Read this firstKnown weaknesses2 points
  • The best run has only 59 trades, which is a small sample to judge it on.
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.

Questions

About this strategy

Can I run Narrow Range 7 Breakout in ProOrder?

Yes. The code is ProBuilder and runs as an automated ProOrder system. Backtest it on your own account with your own spread and position size before trading it live.

Which markets was it tested on?

It was tested on 2 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.60 over 59 trades.

How large was the drawdown?

The best run had a maximum drawdown of 662 USD at the tested position size, against a net result of 1,769 USD.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Trend Surfer

Best run on the same market, USD/JPY.

1.04 PF · 10,813 trades

Volatility Band Upside Breakout

Also a breakout strategy.

1.59 PF · 194 trades

Want strategies that are already part of a live portfolio? Join the ProRealAlgos waitlist.

The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.

Past backtest results do not guarantee future results. This is not financial advice. Curated and maintained by ProRealAlgos. ProRealTime™ is a trademark of ProRealTime SAS. prorealalgos.comStatsDocs