The strategy buys 1 contract when the 9 bar lowest low prints a new low. It closes the long when the 9 bar highest high prints a new high.
Best run of 13. Nasdaq 100, 4 hours, spread 3, from run pf:2026-10-13-NAS100-4h.tsv:9.
| Period | Up to 2026-10-13 |
| Instrument | Nasdaq 100, 4 hours |
| 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 | 4 hours | 1.40 | 1,148 | 68.29 | 17,779 EUR | -3,628 |
| Dow Jones | Daily | n/a | 502 | 70.72 | 27,627 EUR | -11,812 |
| Nikkei 225 | 4 hours | n/a | 865 | 66.24 | 20,554 USD | -10,965 |
| Nasdaq 100 | Daily | n/a | 386 | 68.39 | 17,363 EUR | -4,346 |
| Dow Jones | 4 hours | n/a | 379 | 65.70 | 16,559 EUR | -7,290 |
| DAX 40 | Daily | n/a | 509 | 67.19 | 11,881 EUR | -5,168 |
| Dow Jones | 30 min | n/a | 3,119 | 66.59 | 11,325 EUR | -8,281 |
| FTSE 100 | Daily | n/a | 411 | 71.29 | 8,499 EUR | -2,626 |
| DAX 40 | 4 hours | n/a | 1,122 | 66.40 | 7,112 EUR | -6,461 |
| S&P 500 | Daily | n/a | 528 | 71.40 | 4,824 EUR | -1,259 |
| FTSE 100 | 4 hours | n/a | 1,095 | 68.22 | 4,028 EUR | -3,431 |
| S&P 500 | 4 hours | n/a | 1,160 | 67.84 | 3,662 EUR | -927 |
| Gold | Daily | n/a | 468 | 64.53 | 1,659 EUR | -675 |
Charts
Top 10 of 13 runs. The full list is in the table above.
The code
// ============================================================== // 9 Bar Low Reversion // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false lowestlow = lowest[9](low) highesthigh = highest[9](high)
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 13 market and timeframe combinations. The best run was Nasdaq 100, 4 hours, with a profit factor of 1.40 over 1,148 trades.
The best run had a maximum drawdown of 3,628 EUR at the tested position size, against a net result of 17,779 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.