The strategy buys after 8 consecutive closes lower than the prior close while flat. It holds the position for 7 bars, then sells at market and resets its count.
Best run of 12. Brent Crude, 15 min, spread 3, from run sweeps:2026-10-11-BRENT-15m-opt.tsv:2.
| Period | Up to 2026-10-11 |
| Instrument | Brent Crude, 15 minutes |
| 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Brent CrudeBest run | 15 min | n/a | 251 | 51.00 | 1,001 EUR | -694 |
| Nikkei 225 | 1 hour | n/a | 69 | 62.32 | 4,216 USD | -2,421 |
| Silver | 1 hour | n/a | 78 | 57.69 | 3,264 USD | -1,114 |
| Silver | 3 min | n/a | 165 | 53.33 | 3,007 USD | -2,109 |
| Dow Jones | 1 min | n/a | 243 | 52.26 | 1,120 EUR | -287 |
| GBP/USD | 1 hour | n/a | 161 | 57.14 | 739 USD | -268 |
| Gold | 4 hours | n/a | 28 | 64.29 | 507 EUR | -146 |
| FTSE 100 | Daily | n/a | 10 | 40.00 | 504 EUR | -342 |
| GBP/USD | 30 min | n/a | 191 | 48.17 | 407 USD | -322 |
| GBP/USD | 15 min | n/a | 239 | 53.97 | 371 USD | -224 |
| Gold | 3 min | n/a | 186 | 55.91 | 124 EUR | -68.70 |
| Gold | Daily | n/a | 11 | 54.55 | 97.20 EUR | -38.10 |
Charts
Top 10 of 12 runs. The full list is in the table above.
The code
// ============================================================== // Down Close Streak Long Hold // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: 15 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE winstreak = 0 ONCE lossstreak = 0 ONCE inpos = 0 ONCE hold = 0 rng = high - low isdoji = 0
39 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 by trade count was Brent Crude, 15 minutes, with 251 trades.
The best run had a maximum drawdown of 694 EUR at the tested position size, against a net result of 1,001 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.