Join waitlist
Strategies / Breakout / Reversal Pattern With Weekly Range Breakout

Reversal Pattern With Weekly Range Breakout

The system buys when a stochastic-based close reversal agrees with a bar that trades entirely above the previous week's high, and sells short when the bar trades entirely below the previous week's low. Positions close when the states disagree.

BreakoutLong & shortIntradayUSD/JPY10 min
n/aProfit factor
383,220Net profit USD
38.92%Win rate
1,246Trades
-163,500Max drawdown
308Avg trade

Best run of 7. USD/JPY, 10 min, spread 1, from run sweeps:2026-10-12-USDJPY-10m-opt.tsv:3.

Entry rules, long

  1. The close is above the prior close, and the prior close was below the close 2 bars earlier.
  2. The Stochastic %K (14 periods) is below its 3-period SMA and above 50 on the same bar.
  3. When both states are bullish and no long is open, the system buys 1 contract at market.

Entry rules, short

  1. The close is below the prior close, and the prior close was above the close 2 bars earlier.
  2. The Stochastic %K (14 periods) is above its 3-period SMA and below 50 on the same bar.
  3. When both states are bearish and no short is open, the system sells 1 contract short at market.

Exit rules

  1. When they no longer agree, an open short is bought back at market.

Test conditions

PeriodUp to 2026-10-12
InstrumentUSD/JPY, 10 minutes
Spread1 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-12

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
USD/JPYBest run10 minn/a 1,24638.92383,220 USD-163,500
USD/JPYDailyn/a 29138.491,715,560 USD-806,900
Nikkei 225Dailyn/a 26740.4529,671 USD-17,088
Nikkei 2251 hourn/a 72238.0914,025 USD-12,052
Brent CrudeDailyn/a 11741.888,835 EUR-8,175
Nasdaq 100Dailyn/a 26038.086,117 EUR-5,103
GoldDailyn/a 32734.861,501 EUR-1,201

Charts

Results by run

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Reversal Pattern With Weekly Range Breakout
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Breakout
// Direction: Long & short
// Timeframe tested: 10 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE posrev = 0
ONCE posc = 0
ONCE sincebad = 1000

TIMEFRAME(weekly)
wh = high[1]
wl = low[1]
TIMEFRAME(default)

ll = lowest[14](low)
hh = highest[14](high)

49 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.

Indicators used

Stochastic
Read this firstKnown weaknesses2 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.

Questions

About this strategy

Can I run Reversal Pattern With Weekly Range 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 7 market and timeframe combinations. The best run by trade count was USD/JPY, 10 minutes, with 1,246 trades.

How large was the drawdown?

The best run had a maximum drawdown of 163,500 USD at the tested position size, against a net result of 383,220 USD.

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Reversal Pattern With Chaikin Volatility

Uses the same indicator.

2.26 PF · 6,872 trades

Trend Surfer

Best run on the same market, USD/JPY.

1.04 PF · 10,813 trades

Big Candle Breakout

Also a breakout strategy.

n/a PF · 4,636 trades

See how ProRealAlgos combines strategies like this into one automated portfolio.

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