The system buys when close crosses above an upper Keltner band that is also above a slower band, and sells short on the mirror breakout. A long closes when close crosses under the 100-period SMA, and a short closes when it crosses over.
Best run of 18. USD/JPY, Daily, spread 1, from run pf:2026-10-10-USDJPY-D.tsv:7.
| Period | Up to 2026-10-10 |
| Instrument | USD/JPY, Daily |
| 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-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 2.48 | 137 | 40.88 | 3,147,460 USD | -341,500 |
| USD/JPY | 30 min | n/a | 2,143 | 33.69 | 475,560 USD | -206,790 |
| USD/JPY | 15 min | n/a | 2,124 | 32.63 | 458,310 USD | -169,190 |
| USD/JPY | 10 min | n/a | 2,264 | 30.30 | 305,080 USD | -146,000 |
| EUR/USD | Daily | n/a | 142 | 41.55 | 113,977 USD | -55,905 |
| Nikkei 225 | Daily | n/a | 133 | 37.59 | 51,917 USD | -17,105 |
| Silver | 4 hours | n/a | 347 | 35.73 | 30,984 USD | -28,820 |
| Nikkei 225 | 1 hour | n/a | 1,173 | 31.80 | 16,988 USD | -9,656 |
| GBP/USD | Daily | n/a | 155 | 36.13 | 16,922 USD | -4,874 |
| Nikkei 225 | 3 min | n/a | 2,314 | 30.34 | 11,117 USD | -7,822 |
| Nikkei 225 | 2 min | n/a | 2,380 | 28.91 | 10,855 USD | -7,719 |
| Nasdaq 100 | Daily | n/a | 129 | 38.76 | 9,288 EUR | -4,581 |
| Gold | Daily | n/a | 164 | 34.76 | 2,260 EUR | -1,262 |
| Gold | 30 min | n/a | 2,186 | 33.99 | 1,674 EUR | -1,145 |
| Gold | 15 min | n/a | 2,174 | 29.35 | 1,357 EUR | -955 |
| Gold | 10 min | n/a | 2,220 | 28.38 | 1,323 EUR | -1,130 |
| Gold | 4 hours | n/a | 369 | 33.06 | 1,315 EUR | -847 |
| Gold | 5 min | n/a | 2,178 | 29.29 | 1,046 EUR | -783 |
Charts
Top 10 of 18 runs. The full list is in the table above.
The code
// ============================================================== // Keltner Dual Breakout SMA Exit // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false myAtr = AverageTrueRange[10](close) basef = ExponentialAverage[20](close) upf = basef + 2.0 * myAtr lof = basef - 2.0 * myAtr bases = ExponentialAverage[100](close) ups = bases + 2.0 * myAtr los = bases - 2.0 * myAtr ma = Average[100](close)
19 more lines: the entry and exit rules.
Setup
USD/JPY had no history beyond the standard run, so both runs used 12,000 bars.
| Bars available | 12,000 |
| Net, standard 200,000-bar run | 3,147,460.00 USD |
| Net, long run | 3,147,470.00 USD |
| Net on the older data alone | 10.00 USD |
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 18 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 2.48 over 137 trades.
The best run had a maximum drawdown of 341,500 USD at the tested position size, against a net result of 3,147,460 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.