Join waitlist
Strategies / Breakout / Fifty Bar Channel Breakout

Fifty Bar Channel Breakout

The strategy buys when the close rises above the highest close of the prior 50 bars and sells short when it falls below the lowest. Positions close when the close moves to the opposite side of the prior 50-bar average close.

BreakoutLong & shortSwingUSD/JPYDaily
n/aProfit factor
611,300Net profit USD
49.05%Win rate
1,421Trades
-217,550Max drawdown
430Avg trade

Best run of 3. USD/JPY, Daily, spread 1, from run sweeps:2026-10-07-USDJPY-D-opt.tsv:14.

Entry rules, long

  1. The close is above the highest of the prior 50 closes.

Entry rules, short

  1. The close is below the lowest of the prior 50 closes.

Exit rules

  1. A short closes when the close is below the prior 50-bar average close.

Test conditions

PeriodUp to 2026-10-07
InstrumentUSD/JPY, Daily
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-07

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
USD/JPYBest runDailyn/a 1,42149.05611,300 USD-217,550
GBP/USDDailyn/a 1,40749.898,687 USD-3,611
Brent CrudeDailyn/a 58749.063,282 EUR-3,208

Charts

Results by run

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Fifty Bar Channel Breakout
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Breakout
// Direction: Long & short
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false

myHigh = Highest[50](close)
myLow = Lowest[50](close)
avg = Average[50](close)

15 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

Donchian ChannelSMA
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 Fifty Bar Channel 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 3 market and timeframe combinations. The best run by trade count was USD/JPY, Daily, with 1,421 trades.

How large was the drawdown?

The best run had a maximum drawdown of 217,550 USD at the tested position size, against a net result of 611,300 USD.

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

EMA 8 21 RSI Filtered Bracket

Best run on the same market, USD/JPY.

1.09 PF · 6,194 trades

Big Candle Breakout

Also a breakout strategy.

n/a PF · 4,636 trades

Get the full rules, the complete code and the ProRealAlgos portfolio as a member.

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