The system buys when the close is above the 200-period SMA but below the lowest close of the previous 7 bars. It sells when the close rises above the highest close of the previous 7 bars.
Best run of 12. Nasdaq 100, Daily, spread 3, from run pf:2026-10-13-NAS100-D.tsv:5.
| Period | Up to 2026-10-13 |
| Instrument | Nasdaq 100, 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-13 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nasdaq 100Best run | Daily | 1.96 | 386 | 70.21 | 15,685 EUR | -2,870 |
| Nasdaq 100 | 4 hours | 1.50 | 956 | 68.83 | 13,157 EUR | -2,855 |
| Dow Jones | 4 hours | 1.46 | 311 | 72.67 | 15,472 EUR | -3,687 |
| S&P 500 | 4 hours | 1.36 | 996 | 70.18 | 2,901 EUR | -641 |
| EUR/USD | Daily | n/a | 278 | 66.19 | 35,721 USD | -26,980 |
| Dow Jones | Daily | n/a | 464 | 71.98 | 23,481 EUR | -11,022 |
| Nikkei 225 | 4 hours | n/a | 686 | 65.31 | 15,957 USD | -7,432 |
| DAX 40 | Daily | n/a | 445 | 68.76 | 6,277 EUR | -5,397 |
| S&P 500 | Daily | n/a | 498 | 71.89 | 4,033 EUR | -1,156 |
| FTSE 100 | Daily | n/a | 348 | 71.26 | 2,936 EUR | -2,820 |
| FTSE 100 | 4 hours | n/a | 831 | 70.52 | 2,919 EUR | -2,858 |
| Gold | Daily | n/a | 333 | 64.56 | 1,582 EUR | -792 |
Charts
Top 10 of 12 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Seven-Bar Close Extremes Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false sma = Average[200](close) lo = lowest[7](close) hi = highest[7](close)
10 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 12 market and timeframe combinations. The best run was Nasdaq 100, Daily, with a profit factor of 1.96 over 386 trades.
The best run had a maximum drawdown of 2,870 EUR at the tested position size, against a net result of 15,684 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.