The system buys when RSI(14) is at or below 40 and RSI(10) is below RSI(14). It exits when close falls to a trailing level set 2 times ATR(26) below the close, which only rises, or on an overbought RSI signal.
Best run of 11. Dow Jones, Daily, spread 3, from run pf:2026-10-12-DOW30-D.tsv:16.
| 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.69 | 402 | 44.03 | 45,257 EUR | -8,213 |
| S&P 500 | Daily | 1.65 | 445 | 43.60 | 5,325 EUR | -942 |
| Nasdaq 100 | 4 hours | 1.30 | 995 | 39.70 | 18,663 EUR | -4,120 |
| Dow Jones | 30 min | n/a | 2,468 | 38.29 | 20,820 EUR | -8,170 |
| DAX 40 | Daily | n/a | 563 | 37.83 | 17,240 EUR | -5,444 |
| DAX 40 | 4 hours | n/a | 979 | 40.25 | 11,972 EUR | -4,684 |
| Dow Jones | 1 hour | n/a | 1,287 | 38.23 | 11,267 EUR | -9,555 |
| Nasdaq 100 | Daily | n/a | 316 | 38.29 | 9,861 EUR | -6,685 |
| FTSE 100 | Daily | n/a | 368 | 42.93 | 9,837 EUR | -4,133 |
| Nasdaq 100 | 1 hour | n/a | 3,700 | 36.08 | 9,197 EUR | -6,913 |
| S&P 500 | 4 hours | n/a | 990 | 39.09 | 1,926 EUR | -1,328 |
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
// ============================================================== // RSI Pullback Trailing Stop Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE entryprice = 0 ONCE trailbuf = 0 ONCE stoplevel = 0 atrbuf = AverageTrueRange[26](close) * 2 rrbuf = atrbuf * 3 rsifourteen = RSI[14](close) rsiten = RSI[10](close) stoplevel = max(stoplevel, close - trailbuf) IF NOT LongOnMarket THEN stoplevel = close - trailbuf ENDIF
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 11 market and timeframe combinations. The best run was Dow Jones, Daily, with a profit factor of 1.69 over 402 trades.
The best run had a maximum drawdown of 8,213 EUR at the tested position size, against a net result of 45,257 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.