Buys after three consecutive bearish bars when ATR(12) is above its 30-bar average. Exits after three consecutive bullish bars, or 22 bars after the signal bar.
Best run of 12. Nasdaq 100, Daily, spread 3, from run pf:2026-10-12-NAS100-D.tsv:25.
| Period | Up to 2026-10-12 |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nasdaq 100Best run | Daily | 3.43 | 271 | 68.63 | 22,834 EUR | -2,325 |
| FTSE 100 | Daily | 1.69 | 262 | 70.61 | 7,692 EUR | -1,769 |
| USD/JPY | 30 min | n/a | 4,199 | 61.42 | 290,200 USD | -213,730 |
| EUR/USD | 10 min | n/a | 4,423 | 55.28 | 44,986 USD | -41,685 |
| Dow Jones | Daily | n/a | 327 | 69.42 | 23,607 EUR | -12,194 |
| EUR/USD | 4 hours | n/a | 1,038 | 57.90 | 22,061 USD | -16,620 |
| Dow Jones | 1 hour | n/a | 912 | 65.24 | 16,110 EUR | -4,082 |
| DAX 40 | Daily | n/a | 222 | 68.92 | 11,406 EUR | -5,567 |
| Dow Jones | 30 min | n/a | 1,674 | 59.56 | 6,112 EUR | -3,789 |
| S&P 500 | Daily | n/a | 325 | 67.38 | 3,029 EUR | -872 |
| Gold | Daily | n/a | 273 | 58.61 | 1,705 EUR | -450 |
| S&P 500 | 4 hours | n/a | 661 | 63.69 | 1,500 EUR | -1,107 |
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
// ============================================================== // Three Red Days Volatility Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE sigbar = 0
19 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 3.43 over 271 trades.
The best run had a maximum drawdown of 2,325 EUR at the tested position size, against a net result of 22,834 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.