The system buys when a 2-period EMA crosses above a 5-period average, with the close above it and the Awesome Oscillator rising. It sells when the EMA crosses below the average, with the close below it and the oscillator not rising.
Best run of 18. Dow Jones, Daily, spread 3, from run pf:2026-10-12-DOW30-D.tsv:2.
| 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 | 2.80 | 275 | 56.00 | 38,460 EUR | -3,835 |
| Nikkei 225 | 4 hours | n/a | 505 | 47.72 | 26,758 USD | -13,490 |
| Nasdaq 100 | 1 hour | n/a | 2,505 | 43.51 | 14,218 EUR | -5,311 |
| DAX 40 | Daily | n/a | 326 | 48.77 | 13,901 EUR | -6,168 |
| Dow Jones | 1 hour | n/a | 809 | 45.36 | 11,172 EUR | -6,743 |
| Dow Jones | 4 hours | n/a | 212 | 47.17 | 9,812 EUR | -8,891 |
| Nasdaq 100 | 30 min | n/a | 4,357 | 46.09 | 8,956 EUR | -5,387 |
| DAX 40 | 1 hour | n/a | 2,317 | 46.48 | 8,700 EUR | -5,134 |
| Nasdaq 100 | 4 hours | n/a | 667 | 47.98 | 8,571 EUR | -3,689 |
| Nasdaq 100 | Daily | n/a | 192 | 49.48 | 7,038 EUR | -4,388 |
| FTSE 100 | Daily | n/a | 224 | 51.79 | 4,337 EUR | -2,845 |
| FTSE 100 | 4 hours | n/a | 622 | 45.18 | 3,318 EUR | -2,346 |
| S&P 500 | 1 hour | n/a | 2,495 | 45.01 | 3,004 EUR | -1,202 |
| S&P 500 | Daily | n/a | 257 | 47.08 | 2,296 EUR | -807 |
| Gold | Daily | n/a | 277 | 49.10 | 1,880 EUR | -1,489 |
| Gold | 1 hour | n/a | 2,574 | 44.64 | 1,660 EUR | -567 |
| S&P 500 | 4 hours | n/a | 671 | 47.69 | 1,634 EUR | -973 |
| Gold | 4 hours | n/a | 642 | 48.44 | 1,395 EUR | -1,180 |
Charts
Top 10 of 18 runs. The full list is in the table above.
The code
// ============================================================== // EMA Cross with Oscillator Trend Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false basis = Average[5](close) fast = ExponentialAverage[2](close) ao = Average[5](MedianPrice) - Average[34](MedianPrice)
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 18 market and timeframe combinations. The best run was Dow Jones, Daily, with a profit factor of 2.80 over 275 trades.
The best run had a maximum drawdown of 3,835 EUR at the tested position size, against a net result of 38,460 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.