The system buys when the close clears the prior 30-bar high by 0.5 ATR, with ADX at 22 or above and the close above the 200-period EMA. It exits when the close falls below the prior 30-bar low or 20 bars after entry.
Best run of 19. USD/JPY, 30 min, spread 1, from run sweeps:2026-10-03-USDJPY-30m-opt.tsv:21.
| Period | Up to 2026-10-03 |
| Instrument | USD/JPY, 30 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-03 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | 30 min | n/a | 1,259 | 50.60 | 154,290 USD | -128,710 |
| USD/JPY | 1 hour | n/a | 916 | 51.75 | 153,110 USD | -116,100 |
| USD/JPY | 10 min | n/a | 1,164 | 50.60 | 119,480 USD | -106,100 |
| USD/JPY | 15 min | n/a | 1,179 | 50.72 | 116,380 USD | -88,730 |
| Nikkei 225 | Daily | n/a | 80 | 70.00 | 31,366 USD | -6,701 |
| Silver | 4 hours | n/a | 214 | 57.94 | 23,670 USD | -8,243 |
| EUR/USD | Daily | n/a | 79 | 48.10 | 23,431 USD | -20,878 |
| Silver | 3 min | n/a | 1,016 | 46.16 | 9,510 USD | -4,434 |
| Silver | 5 min | n/a | 1,069 | 46.02 | 7,553 USD | -6,439 |
| Dow Jones | Daily | n/a | 93 | 65.59 | 6,701 EUR | -3,479 |
| DAX 40 | Daily | n/a | 131 | 60.31 | 6,185 EUR | -2,643 |
| Dow Jones | 1 hour | n/a | 281 | 53.38 | 4,585 EUR | -3,422 |
| Nasdaq 100 | Daily | n/a | 88 | 50.00 | 4,478 EUR | -3,215 |
| Nasdaq 100 | 1 hour | n/a | 896 | 51.23 | 4,130 EUR | -1,786 |
| Brent Crude | 4 hours | n/a | 126 | 55.56 | 3,368 EUR | -2,816 |
| Gold | Daily | n/a | 94 | 56.38 | 1,502 EUR | -809 |
| Gold | 4 hours | n/a | 267 | 50.19 | 1,040 EUR | -671 |
| Gold | 5 min | n/a | 1,201 | 47.29 | 895 EUR | -434 |
| Gold | 3 min | n/a | 1,138 | 47.54 | 317 EUR | -311 |
Charts
Top 10 of 19 runs. The full list is in the table above.
The code
// ============================================================== // Donchian Breakout With ADX Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long only // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE entrybar = -1 dchigh = highest[30](high)[1] dclow = lowest[30](low)[1] atrval = AverageTrueRange[14](close) emaslow = ExponentialAverage[200](close) adxval = ADX[14]
28 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 19 market and timeframe combinations. The best run by trade count was USD/JPY, 30 minutes, with 1,259 trades.
The best run had a maximum drawdown of 128,710 USD at the tested position size, against a net result of 154,290 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.