The system marks the last opposite candle before a break of the prior 20-bar high or low as an order block. It buys when price retests a bullish block, closes above its midpoint and momentum filters agree, and sells short on the mirror setup.
Best run of 6. Nasdaq 100, 4 hours, spread 3, from run sweeps:2026-10-03-NAS100-4h-opt.tsv:20.
| Period | Up to 2026-10-03 |
| 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-03 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nasdaq 100Best run | 4 hours | n/a | 549 | 34.79 | 4,914 EUR | -2,634 |
| USD/JPY | Daily | n/a | 280 | 33.93 | 11,080 USD | -4,660 |
| Dow Jones | Daily | n/a | 254 | 33.46 | 5,081 EUR | -3,639 |
| Brent Crude | 4 hours | n/a | 267 | 35.58 | 4,056 EUR | -2,964 |
| S&P 500 | Daily | n/a | 290 | 31.38 | 1,142 EUR | -623 |
| Gold | 4 hours | n/a | 510 | 36.86 | 887 EUR | -412 |
Charts
The code
// ============================================================== // Order Block Retest Trend Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long & short // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ONCE bearhi = 0 ONCE bearlo = 0 ONCE bullhi = 0 ONCE bulllo = 0 ONCE bullobhi = 0 ONCE bulloblo = 0 ONCE bearobhi = 0 ONCE bearoblo = 0 ONCE side = 0 ONCE stochraw = 50 ONCE buysig = 0 ONCE sellsig = 0 emafast = ExponentialAverage[50](close) emaslow = ExponentialAverage[200](close) rsival = RSI[14](close) atrval = AverageTrueRange[14](close) hh = highest[14](high) ll = lowest[14](low)
79 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 6 market and timeframe combinations. The best run by trade count was Nasdaq 100, 4 hours, with 549 trades.
The best run had a maximum drawdown of 2,634 EUR at the tested position size, against a net result of 4,914 EUR.
It trades both long and short.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.