Buys when the close is above the 200-bar SMA and at the lowest close of the last 7 bars. Sells when the close reaches the highest close of the last 7 bars.
Best run of 11. S&P 500, Daily, spread 1, from run pf:2026-10-05-USA500-D.tsv:7.
| Period | Up to 2026-10-05 |
| 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-05 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| S&P 500Best run | Daily | 2.21 | 569 | 70.12 | 5,040 EUR | -559 |
| Nasdaq 100 | Daily | 2.10 | 453 | 67.77 | 17,343 EUR | -2,661 |
| Dow Jones | Daily | 1.69 | 548 | 73.18 | 28,143 EUR | -4,569 |
| EUR/USD | Daily | n/a | 333 | 64.86 | 39,597 USD | -30,110 |
| Nikkei 225 | 4 hours | n/a | 830 | 65.66 | 12,490 USD | -6,668 |
| Dow Jones | 4 hours | n/a | 382 | 71.47 | 11,413 EUR | -4,880 |
| Nasdaq 100 | 4 hours | n/a | 1,118 | 68.60 | 10,642 EUR | -2,994 |
| DAX 40 | Daily | n/a | 536 | 68.10 | 6,762 EUR | -5,397 |
| FTSE 100 | 4 hours | n/a | 969 | 68.32 | 2,905 EUR | -2,629 |
| Gold | Daily | n/a | 397 | 62.22 | 1,772 EUR | -609 |
| S&P 500 | 4 hours | n/a | 1,190 | 69.58 | 1,725 EUR | -962 |
Charts
Top 10 of 11 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Double Seven Close Reversion // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false sma = Average[200](close) myHigh = highest[7](close) myLow = lowest[7](close)
11 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,039.96 EUR |
| Net, long run | 5,099.17 EUR |
| Net on the older data alone | 59.21 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 11 market and timeframe combinations. The best run was S&P 500, Daily, with a profit factor of 2.21 over 569 trades.
The best run had a maximum drawdown of 559 EUR at the tested position size, against a net result of 5,040 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.