Buys when the close moves above the upper Keltner Channel while the 200-period SMA is not falling, and sells short when it closes below the lower channel while that SMA is falling. Each trade has a 0.5% stop and a 1.0% target.
Best run of 14. USD/JPY, Daily, spread 1, from run pf:2026-10-05-USDJPY-D.tsv:9.
| Period | Up to 2026-10-05 |
| 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-05 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 1.25 | 979 | 37.28 | 1,107,700 USD | -226,620 |
| USD/JPY | 10 min | n/a | 1,486 | 32.03 | 412,850 USD | -225,060 |
| USD/JPY | 15 min | n/a | 1,568 | 32.65 | 340,120 USD | -146,930 |
| USD/JPY | 30 min | n/a | 2,128 | 33.08 | 325,830 USD | -244,760 |
| USD/JPY | 4 hours | n/a | 973 | 34.43 | 283,020 USD | -276,790 |
| EUR/USD | 1 hour | n/a | 2,518 | 33.48 | 29,272 USD | -26,835 |
| Nikkei 225 | 3 min | n/a | 1,961 | 34.12 | 28,030 USD | -7,995 |
| EUR/USD | 4 hours | n/a | 1,130 | 34.25 | 21,766 USD | -20,101 |
| EUR/USD | Daily | n/a | 840 | 34.64 | 17,796 USD | -13,904 |
| DAX 40 | 5 min | n/a | 1,751 | 31.58 | 4,397 EUR | -4,065 |
| GBP/USD | Daily | n/a | 929 | 34.66 | 3,971 USD | -3,401 |
| Nasdaq 100 | 3 min | n/a | 1,661 | 31.73 | 3,796 EUR | -3,321 |
| Gold | 5 min | n/a | 1,989 | 32.28 | 805 EUR | -581 |
| Gold | 4 hours | n/a | 1,572 | 33.02 | 732 EUR | -348 |
Charts
Top 10 of 14 runs. The full list is in the table above.
The code
// ============================================================== // Keltner Channel Breakout With Slope // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false sma = Average[200](close)
21 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 14 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.25 over 979 trades.
The best run had a maximum drawdown of 226,620 USD at the tested position size, against a net result of 1,107,700 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.