Join waitlist
Strategies / Breakout / Keltner Band Breakout With ATR Bracket

Keltner Band Breakout With ATR Bracket

Buys when the close moves above an EMA(30) band set 0.2 times the true range EMA, and sells short below the lower band. Each trade has a stop at 4 times the 14-period ATR and a target at twice that distance.

BreakoutLong & shortSwingUSD/JPYDaily
1.39Profit factor
104,650Net profit USD
40.27%Win rate
976Trades
-10,430Max drawdown
107Avg trade

Best run of 7. USD/JPY, Daily, spread 1, from run pf:2026-10-12-USDJPY-D.tsv:66.

Entry rules, long

  1. The previous signal was not a long.

Entry rules, short

  1. The previous signal was not a short.

Exit rules

  1. An opposite signal reverses the position.
  2. The target sits at twice the stop distance from the entry price.

Test conditions

PeriodUp to 2026-10-13
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-13

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
USD/JPYBest runDaily1.39 97640.27104,650 USD-10,430
Silver4 hoursn/a 2,14524.1532,393 USD-25,510
Nikkei 225Dailyn/a 84327.4028,115 USD-14,085
Dow Jones4 hoursn/a 69528.2010,550 EUR-9,451
Nasdaq 1004 hoursn/a 2,17225.0510,069 EUR-7,471
US Crude Oil4 hoursn/a 1,55928.227,207 EUR-5,441
GoldDailyn/a 98525.581,001 EUR-818

Charts

Results by run

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Keltner Band Breakout With ATR Bracket
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Breakout
// Direction: Long & short
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE inlong = 0
ONCE inshort = 0

base = ExponentialAverage[30](close)
rangema = ExponentialAverage[30](TR(close))
upperk = base + rangema * 0.2
lowerk = base - rangema * 0.2
myAtr = AverageTrueRange[14](close)
sldist = myAtr * 4
tpdist = sldist * 2

20 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

ATREMATrue Range
Read this firstKnown weaknesses2 points
  • Results include the spread only. Commissions and overnight financing are not included.
  • The code is published as it was backtested and has not been compiled again since.

Questions

About this strategy

Can I run Keltner Band Breakout With ATR Bracket 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 was USD/JPY, Daily, with a profit factor of 1.39 over 976 trades.

How large was the drawdown?

The best run had a maximum drawdown of 10,430 USD at the tested position size, against a net result of 104,650 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

Volume Spike Direction Trade

Also a breakout strategy.

1.39 PF · 725 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