Buys when price falls below the outer lower Keltner band and later crosses back above the inner lower band. Shorts mirror this with the upper bands, and each trade has a target equal to its risk distance.
Best run of 7. EUR/USD, 10 min, spread 1, from run sweeps:2026-10-11-EURUSD-10m-opt.tsv:17.
| Period | Up to 2026-10-11 |
| Instrument | EUR/USD, 10 minutes |
| Spread | 1 points |
| Starting capital | 1,000,000 |
| Costs | Spread only. Commissions and overnight financing are not included. |
| Bars | Up to 200,000 bars, fewer where the instrument has less history |
| Last tested | 2026-10-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| EUR/USDBest run | 10 min | n/a | 2,011 | 51.77 | 12,497 USD | -11,141 |
| USD/JPY | 1 hour | n/a | 1,493 | 51.84 | 391,650 USD | -178,600 |
| Dow Jones | Daily | n/a | 149 | 42.28 | 6,799 EUR | -4,072 |
| Brent Crude | Daily | n/a | 77 | 55.84 | 6,052 EUR | -3,576 |
| Dow Jones | 15 min | n/a | 1,848 | 50.49 | 5,464 EUR | -3,920 |
| GBP/USD | 4 hours | n/a | 509 | 52.85 | 3,226 USD | -2,768 |
| Gold | 4 hours | n/a | 407 | 51.11 | 536 EUR | -526 |
Charts
The code
// ============================================================== // Keltner Band Reentry Reversal // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long & short // Timeframe tested: 10 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE lcc = 0 ONCE scc = 0 ONCE slp = 0 ONCE tpp = 0 ONCE slset = 0 ema = ExponentialAverage[50](close) myAtr = AverageTrueRange[10](close) inup = ema + myAtr * 2.75 inlo = ema - myAtr * 2.75 outup = ema + myAtr * 3.75 outlo = ema - myAtr * 3.75
84 more lines: the entry and exit rules.
Setup
Questions
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.
It was tested on 7 market and timeframe combinations. The best run by trade count was EUR/USD, 10 minutes, with 2,011 trades.
The best run had a maximum drawdown of 11,141 USD at the tested position size, against a net result of 12,497 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.