The strategy buys at market when a two-bar level sits below the prior close and ADXR is below 13. It sells short on the mirror condition with ADXR above 45, and closes when the two states disagree.
Best run of 1. Dow Jones, Daily, spread 3, from run sweeps:2026-10-12-DOW30-D-opt.tsv:74.
| Period | Up to 2026-10-12 |
| Instrument | Dow Jones, Daily |
| Spread | 3 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Dow JonesBest run | Daily | n/a | 1,532 | 47.06 | 16,210 EUR | -8,408 |
Charts
The code
// ============================================================== // EMA Range Filter With ADXR // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE posema = 0 ONCE posadxr = 0 xa = ExponentialAverage[14](close) nhh = max(high, high[1]) nll = min(low, low[1])
41 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 one combination, Dow Jones, Daily, with 1,532 trades.
The best run had a maximum drawdown of 8,408 EUR at the tested position size, against a net result of 16,210 EUR.
It trades both long and short.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.