Buys 1 contract when the 12 period EMA crosses below the 36 period EMA with ADX (14) at 20 or above. Closes the long when the EMAs cross back above with ADX (14) below 20.
Best run of 22. Nikkei 225, 30 min, spread 10, from run sweeps:2026-10-04-NIKKEI-30m-opt.tsv:34.
| Period | Up to 2026-10-04 |
| Instrument | Nikkei 225, 30 minutes |
| Spread | 10 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-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nikkei 225Best run | 30 min | n/a | 871 | 62.46 | 19,300 USD | -11,277 |
| USD/JPY | 4 hours | n/a | 148 | 65.54 | 382,640 USD | -278,160 |
| Nikkei 225 | 4 hours | n/a | 108 | 70.37 | 29,547 USD | -10,875 |
| Dow Jones | Daily | n/a | 59 | 76.27 | 21,711 EUR | -9,029 |
| Silver | 3 min | n/a | 774 | 67.18 | 21,526 USD | -18,070 |
| Nasdaq 100 | 4 hours | n/a | 129 | 67.44 | 20,789 EUR | -5,320 |
| Dow Jones | 1 hour | n/a | 154 | 72.73 | 19,389 EUR | -7,365 |
| Nasdaq 100 | 1 hour | n/a | 476 | 64.71 | 14,100 EUR | -6,245 |
| Dow Jones | 4 hours | n/a | 46 | 71.74 | 12,908 EUR | -10,420 |
| Dow Jones | 30 min | n/a | 349 | 65.33 | 11,841 EUR | -8,355 |
| Nasdaq 100 | Daily | n/a | 42 | 76.19 | 11,678 EUR | -2,745 |
| DAX 40 | Daily | n/a | 49 | 73.47 | 10,636 EUR | -4,462 |
| Nasdaq 100 | 30 min | n/a | 771 | 64.85 | 6,910 EUR | -6,093 |
| FTSE 100 | Daily | n/a | 52 | 78.85 | 5,891 EUR | -3,107 |
| FTSE 100 | 1 hour | n/a | 480 | 64.38 | 5,114 EUR | -2,522 |
| S&P 500 | 1 hour | n/a | 507 | 65.88 | 3,534 EUR | -1,164 |
| S&P 500 | Daily | n/a | 55 | 74.55 | 3,521 EUR | -1,238 |
| S&P 500 | 30 min | n/a | 791 | 68.02 | 3,474 EUR | -1,120 |
| S&P 500 | 4 hours | n/a | 133 | 67.67 | 3,236 EUR | -1,527 |
| FTSE 100 | 4 hours | n/a | 118 | 72.88 | 2,887 EUR | -2,849 |
| S&P 500 | 10 min | n/a | 812 | 62.19 | 1,819 EUR | -1,516 |
| S&P 500 | 2 min | n/a | 725 | 64.97 | 468 EUR | -432 |
Charts
Top 10 of 22 runs. The full list is in the table above.
The code
// ============================================================== // EMA Crossover With ADX Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false emafast = ExponentialAverage[12](close) emaslow = ExponentialAverage[36](close) myAdx = ADX[14]
13 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 22 market and timeframe combinations. The best run by trade count was Nikkei 225, 30 minutes, with 871 trades.
The best run had a maximum drawdown of 11,277 USD at the tested position size, against a net result of 19,300 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.