Buys when the bar's high-low range ranks at or above the 95th percentile of the prior 50 ranges and the bar closed down. The position is closed on the next bar close, so each trade is held for one bar.
Best run of 7. S&P 500, Daily, spread 1, from run pf:2026-10-12-USA500-D.tsv:13.
| Period | Up to 2026-10-12 |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| S&P 500Best run | Daily | 1.42 | 490 | 41.22 | 1,306 EUR | -300 |
| EUR/USD | 3 min | n/a | 6,376 | 30.93 | 72,622 USD | -54,736 |
| Nikkei 225 | Daily | n/a | 408 | 55.88 | 9,849 USD | -6,689 |
| Dow Jones | Daily | n/a | 508 | 50.79 | 8,543 EUR | -3,338 |
| Nasdaq 100 | Daily | n/a | 425 | 40.00 | 3,271 EUR | -1,419 |
| US Crude Oil | Daily | n/a | 390 | 51.79 | 2,820 EUR | -2,249 |
| FTSE 100 | Daily | n/a | 453 | 53.64 | 1,260 EUR | -1,111 |
Charts
The code
// ============================================================== // Wide Range Down Close Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Volatility // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false myRange = high - low count = 0
17 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 7 market and timeframe combinations. The best run was S&P 500, Daily, with a profit factor of 1.42 over 490 trades.
The best run had a maximum drawdown of 300 EUR at the tested position size, against a net result of 1,306 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.