The strategy buys when the percentage drawdown from the 50-bar high falls to 1 standard deviation below its 50-bar average. It exits 35 bars after the signal bar.
Best run of 20. S&P 500, Daily, spread 1, from run pf:2026-10-11-USA500-D.tsv:1.
| Period | Up to 2026-10-11 |
| Instrument | S&P 500, Daily |
| 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| S&P 500Best run | Daily | 2.37 | 268 | 64.18 | 5,921 EUR | -1,223 |
| Nasdaq 100 | Daily | 2.34 | 199 | 62.31 | 23,549 EUR | -5,001 |
| USD/JPY | 10 min | n/a | 3,291 | 53.42 | 269,370 USD | -237,120 |
| Nikkei 225 | Daily | n/a | 199 | 61.81 | 62,738 USD | -16,485 |
| Dow Jones | Daily | n/a | 255 | 65.88 | 45,196 EUR | -12,409 |
| EUR/USD | 15 min | n/a | 3,220 | 47.95 | 43,724 USD | -27,414 |
| Nikkei 225 | 1 hour | n/a | 1,680 | 52.26 | 43,268 USD | -10,986 |
| Nikkei 225 | 4 hours | n/a | 427 | 56.44 | 31,582 USD | -17,193 |
| Nasdaq 100 | 4 hours | n/a | 554 | 59.03 | 18,680 EUR | -5,213 |
| Dow Jones | 1 hour | n/a | 699 | 53.93 | 18,182 EUR | -8,555 |
| Dow Jones | 4 hours | n/a | 183 | 55.74 | 16,776 EUR | -9,450 |
| DAX 40 | Daily | n/a | 254 | 59.45 | 12,369 EUR | -5,649 |
| DAX 40 | 4 hours | n/a | 526 | 58.94 | 11,023 EUR | -5,422 |
| Dow Jones | 30 min | n/a | 1,393 | 52.55 | 9,211 EUR | -7,077 |
| FTSE 100 | Daily | n/a | 198 | 61.62 | 8,317 EUR | -3,082 |
| DAX 40 | 1 hour | n/a | 1,903 | 52.60 | 8,161 EUR | -4,151 |
| Nasdaq 100 | 1 hour | n/a | 2,080 | 52.69 | 7,055 EUR | -5,299 |
| S&P 500 | 4 hours | n/a | 554 | 61.37 | 4,482 EUR | -1,413 |
| S&P 500 | 1 hour | n/a | 2,121 | 53.70 | 2,654 EUR | -1,176 |
| Gold | 4 hours | n/a | 515 | 55.53 | 1,486 EUR | -1,266 |
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
// ============================================================== // Drawdown Mean Reversion Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE entrybar = -1 peak = highest[50](high) dd = (close - peak) / peak * 100 ddstd = STD[50](dd) ddmean = Average[50](dd)
12 more lines: the entry and exit rules.
Setup
S&P 500 had no history beyond the standard run, so both runs used 14,000 bars.
| Bars available | 14,000 |
| Net, standard 200,000-bar run | 5,920.61 EUR |
| Net, long run | 5,920.61 EUR |
| Net on the older data alone | 0.00 EUR |
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, Daily, with a profit factor of 2.37 over 268 trades.
The best run had a maximum drawdown of 1,223 EUR at the tested position size, against a net result of 5,921 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.