Buys when the low crosses under a dip line, which is the 10 bar average of the low minus 2 times ATR(20). Closes the long on any bar where a buy signal occurred exactly 20 bars earlier.
Best run of 7. Dow Jones, 10 min, spread 3, from run sweeps:2026-10-12-DOW30-10m-opt.tsv:13.
| Period | Up to 2026-10-12 |
| Instrument | Dow Jones, 10 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Dow JonesBest run | 10 min | n/a | 2,570 | 52.72 | 7,829 EUR | -5,348 |
| Dow Jones | Daily | n/a | 150 | 59.33 | 14,353 EUR | -8,962 |
| Nasdaq 100 | Daily | n/a | 149 | 63.09 | 12,657 EUR | -3,350 |
| FTSE 100 | Daily | n/a | 190 | 62.11 | 7,550 EUR | -2,098 |
| DAX 40 | Daily | n/a | 297 | 52.86 | 6,610 EUR | -5,320 |
| S&P 500 | Daily | n/a | 188 | 62.77 | 2,664 EUR | -964 |
| Gold | Daily | n/a | 184 | 54.89 | 1,292 EUR | -467 |
Charts
The code
// ============================================================== // Dip Line Cross With Time Exit // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: 10 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE myBuy = 0 dip = low - AverageTrueRange[20](close) * 2 dipsma = Average[10](dip)
15 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 by trade count was Dow Jones, 10 minutes, with 2,570 trades.
The best run had a maximum drawdown of 5,348 EUR at the tested position size, against a net result of 7,829 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.