Buys when ATR(10) is above its 5-period EMA, the 10-period average Ease of Movement is positive, and the 10-bar Vortex average is above 1. Sells the long when all three conditions reverse together.
Best run of 20. S&P 500, 4 hours, spread 1, from run pf:2026-10-12-USA500-4h.tsv:9.
| Period | Up to 2026-10-12 |
| Instrument | S&P 500, 4 hours |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| S&P 500Best run | 4 hours | 1.71 | 265 | 53.58 | 3,825 EUR | -563 |
| Dow Jones | 4 hours | 1.55 | 187 | 47.06 | 18,103 EUR | -4,023 |
| USD/JPY | Daily | n/a | 87 | 50.57 | 496,930 USD | -218,040 |
| USD/JPY | 1 hour | n/a | 2,569 | 41.42 | 417,140 USD | -253,140 |
| EUR/USD | 2 min | n/a | 2,644 | 29.69 | 31,532 USD | -27,493 |
| Nikkei 225 | 1 hour | n/a | 1,147 | 42.72 | 25,463 USD | -7,602 |
| Nasdaq 100 | Daily | n/a | 40 | 60.00 | 14,630 EUR | -2,917 |
| Nikkei 225 | Daily | n/a | 54 | 46.30 | 11,982 USD | -10,357 |
| Dow Jones | 30 min | n/a | 1,283 | 47.47 | 10,935 EUR | -7,199 |
| DAX 40 | 4 hours | n/a | 273 | 51.65 | 10,046 EUR | -3,619 |
| DAX 40 | 1 hour | n/a | 937 | 48.03 | 8,172 EUR | -5,109 |
| Nasdaq 100 | 1 hour | n/a | 852 | 46.24 | 7,044 EUR | -4,890 |
| DAX 40 | Daily | n/a | 48 | 52.08 | 6,625 EUR | -5,634 |
| Nasdaq 100 | 4 hours | n/a | 279 | 48.39 | 4,944 EUR | -4,577 |
| Gold | 30 min | n/a | 2,926 | 39.41 | 2,361 EUR | -1,165 |
| Gold | 1 hour | n/a | 1,866 | 38.96 | 2,277 EUR | -704 |
| Gold | Daily | n/a | 80 | 51.25 | 1,813 EUR | -598 |
| S&P 500 | Daily | n/a | 48 | 60.42 | 1,629 EUR | -1,209 |
| S&P 500 | 1 hour | n/a | 920 | 46.85 | 1,581 EUR | -754 |
| FTSE 100 | Daily | n/a | 52 | 51.92 | 1,539 EUR | -1,211 |
Charts
Top 10 of 20 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Ease of Movement Vortex Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false myAtr = AverageTrueRange[10](close) emaatr = ExponentialAverage[5](myAtr) hltwo = MedianPrice
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 20 market and timeframe combinations. The best run was S&P 500, 4 hours, with a profit factor of 1.71 over 265 trades.
The best run had a maximum drawdown of 563 EUR at the tested position size, against a net result of 3,825 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.