Buys when the 9-period EMA crosses above the 20-period EMA with momentum, trend and candle strength filters all confirming. Shorts use the mirror conditions, and a new signal needs more than 2 bars since the last one.
Best run of 13. US Crude Oil, 5 min, spread 3, from run sweeps:2026-10-07-CRUDE-5m-opt.tsv:2.
| Period | Up to 2026-10-07 |
| Instrument | US Crude Oil, 5 minutes |
| 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-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| US Crude OilBest run | 5 min | n/a | 766 | 47.52 | 2,344 EUR | -1,741 |
| USD/JPY | Daily | n/a | 79 | 5.06 | 31,510 USD | -19,660 |
| DAX 40 | 10 min | n/a | 655 | 44.58 | 8,885 EUR | -3,485 |
| DAX 40 | 5 min | n/a | 535 | 44.11 | 6,637 EUR | -3,402 |
| Nasdaq 100 | 10 min | n/a | 707 | 44.55 | 4,996 EUR | -3,757 |
| Nasdaq 100 | 4 hours | n/a | 182 | 68.13 | 4,974 EUR | -1,645 |
| Dow Jones | Daily | n/a | 78 | 70.51 | 3,267 EUR | -2,870 |
| Brent Crude | 2 min | n/a | 671 | 45.60 | 2,875 EUR | -2,604 |
| DAX 40 | Daily | n/a | 47 | 78.72 | 2,775 EUR | -985 |
| US Crude Oil | 3 min | n/a | 705 | 47.09 | 2,388 EUR | -1,622 |
| US Crude Oil | 2 min | n/a | 654 | 46.02 | 2,255 EUR | -1,748 |
| Gold | 2 min | n/a | 544 | 44.67 | 1,642 EUR | -609 |
| Gold | 15 min | n/a | 650 | 45.08 | 1,534 EUR | -606 |
Charts
Top 10 of 13 runs. The full list is in the table above.
The code
// ============================================================== // Dual RSI ADX Confirmed EMA Crossover // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 5 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE lastsig = -1000 emafast = ExponentialAverage[9](close) emamid = ExponentialAverage[20](close) ematrend = ExponentialAverage[50](close) rsishort = RSI[7](close) rsimid = RSI[9](close) myAdx = ADX[14]
33 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 13 market and timeframe combinations. The best run by trade count was US Crude Oil, 5 minutes, with 766 trades.
The best run had a maximum drawdown of 1,741 EUR at the tested position size, against a net result of 2,344 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.