Buys when the close drops below the lowest low of the previous 7 bars, with a stop and a target each set 2 times the 10 bar average of true range from the entry price. Long only, exiting only at those two levels.
Best run of 11. Dow Jones, Daily, spread 3, from run pf:2026-10-12-DOW30-D.tsv:30.
| Period | Up to 2026-10-12 |
| Instrument | Dow Jones, 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 |
|---|---|---|---|---|---|---|
| Dow JonesBest run | Daily | 1.46 | 666 | 55.71 | 41,081 EUR | -6,217 |
| S&P 500 | Daily | 1.46 | 760 | 51.45 | 5,340 EUR | -1,061 |
| Dow Jones | 30 min | n/a | 3,675 | 49.52 | 15,091 EUR | -6,107 |
| Dow Jones | 1 hour | n/a | 2,076 | 49.61 | 13,910 EUR | -10,648 |
| Dow Jones | 4 hours | n/a | 517 | 52.03 | 11,872 EUR | -8,171 |
| Nikkei 225 | 4 hours | n/a | 1,216 | 50.33 | 11,578 USD | -9,009 |
| Nasdaq 100 | 4 hours | n/a | 1,547 | 50.42 | 10,666 EUR | -3,404 |
| FTSE 100 | Daily | n/a | 613 | 54.16 | 8,659 EUR | -2,364 |
| FTSE 100 | 4 hours | n/a | 1,448 | 51.93 | 4,293 EUR | -2,362 |
| S&P 500 | 4 hours | n/a | 1,575 | 51.87 | 3,589 EUR | -1,175 |
| Gold | Daily | n/a | 594 | 49.66 | 1,303 EUR | -746 |
Charts
Top 10 of 11 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Dip Buy With True Range Bracket // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false myAtr = Average[10](TR(close)) dip = lowest[7](low)
10 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 11 market and timeframe combinations. The best run was Dow Jones, Daily, with a profit factor of 1.46 over 666 trades.
The best run had a maximum drawdown of 6,216 EUR at the tested position size, against a net result of 41,080 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.