The strategy buys when the gap between price and its 200-period EMA falls below negative 1.7 standard deviations of that gap over 200 periods. It closes the long when the gap crosses zero.
Best run of 30. FTSE 100, 5 min, spread 2, from run sweeps:2026-10-11-FTSE100-5m-opt.tsv:9.
| Period | Up to 2026-10-11 |
| Instrument | FTSE 100, 5 minutes |
| Spread | 2 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| FTSE 100Best run | 5 min | n/a | 684 | 73.68 | 1,191 EUR | -1,151 |
| Nikkei 225 | 4 hours | n/a | 72 | 70.83 | 20,747 USD | -8,226 |
| Nikkei 225 | 15 min | n/a | 584 | 72.09 | 18,950 USD | -9,551 |
| Nikkei 225 | 1 hour | n/a | 259 | 71.04 | 17,673 USD | -9,280 |
| Dow Jones | Daily | n/a | 31 | 80.65 | 16,897 EUR | -8,615 |
| Nasdaq 100 | 1 hour | n/a | 348 | 73.28 | 13,002 EUR | -4,049 |
| Dow Jones | 30 min | n/a | 249 | 75.90 | 11,823 EUR | -7,643 |
| Nikkei 225 | 10 min | n/a | 579 | 68.39 | 11,317 USD | -9,981 |
| Nasdaq 100 | 30 min | n/a | 563 | 69.45 | 10,243 EUR | -4,728 |
| EUR/USD | 5 min | n/a | 674 | 68.84 | 9,276 USD | -3,994 |
| Dow Jones | 15 min | n/a | 500 | 71.60 | 9,275 EUR | -6,739 |
| Dow Jones | 4 hours | n/a | 27 | 77.78 | 8,554 EUR | -6,234 |
| Nasdaq 100 | 4 hours | n/a | 82 | 80.49 | 7,570 EUR | -4,850 |
| FTSE 100 | 4 hours | n/a | 109 | 83.49 | 7,218 EUR | -2,438 |
| Nasdaq 100 | 15 min | n/a | 573 | 70.68 | 6,408 EUR | -5,428 |
| DAX 40 | 15 min | n/a | 596 | 72.82 | 6,368 EUR | -3,674 |
| Nasdaq 100 | Daily | n/a | 22 | 86.36 | 6,154 EUR | -3,611 |
| DAX 40 | 30 min | n/a | 601 | 74.04 | 6,146 EUR | -4,933 |
| Silver | Daily | n/a | 33 | 66.67 | 5,971 USD | -4,709 |
| FTSE 100 | 15 min | n/a | 672 | 75.60 | 3,749 EUR | -1,869 |
| EUR/USD | 3 min | n/a | 669 | 68.31 | 3,581 USD | -3,412 |
| Dow Jones | 2 min | n/a | 680 | 74.26 | 3,085 EUR | -2,755 |
| Dow Jones | 1 min | n/a | 655 | 73.59 | 2,798 EUR | -2,288 |
| FTSE 100 | 10 min | n/a | 681 | 75.48 | 2,360 EUR | -1,017 |
| S&P 500 | 4 hours | n/a | 91 | 78.02 | 2,295 EUR | -1,134 |
| S&P 500 | 1 hour | n/a | 356 | 75.28 | 2,284 EUR | -986 |
| S&P 500 | 15 min | n/a | 598 | 72.74 | 2,215 EUR | -910 |
| S&P 500 | Daily | n/a | 33 | 78.79 | 1,926 EUR | -907 |
| S&P 500 | 30 min | n/a | 575 | 71.48 | 1,829 EUR | -1,084 |
| S&P 500 | 1 min | n/a | 672 | 72.47 | 369 EUR | -366 |
Charts
Top 10 of 30 runs. The full list is in the table above.
The code
// ============================================================== // EMA Deviation Oversold Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: 5 minutes // ============================================================== DEFPARAM CumulateOrders = false ema = ExponentialAverage[200](close) myV = close - ema dev = STD[200](myV) devlimit = -1 * dev * 1.7
11 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 30 market and timeframe combinations. The best run by trade count was FTSE 100, 5 minutes, with 684 trades.
The best run had a maximum drawdown of 1,151 EUR at the tested position size, against a net result of 1,191 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.