Buys when the close drops below the 3-bar SMA of lows while remaining above the 30-bar SMA of closes. Sells when the close rises above the 3-bar SMA of highs.
Best run of 11. S&P 500, Daily, spread 1, from run pf:2026-10-05-USA500-D.tsv:10.
| Period | Up to 2026-10-05 |
| Instrument | S&P 500, Daily |
| Spread | 1 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-05 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| S&P 500Best run | Daily | 1.94 | 637 | 67.35 | 3,731 EUR | -392 |
| Nikkei 225 | Daily | 1.86 | 538 | 69.89 | 56,488 USD | -6,274 |
| Nasdaq 100 | Daily | 1.64 | 490 | 59.59 | 9,290 EUR | -2,149 |
| FTSE 100 | Daily | 1.55 | 509 | 69.16 | 6,859 EUR | -1,010 |
| US Crude Oil | Daily | 1.51 | 446 | 70.40 | 14,595 EUR | -3,139 |
| EUR/USD | 30 min | n/a | 6,157 | 63.54 | 30,350 USD | -15,251 |
| EUR/USD | 1 hour | n/a | 5,185 | 64.57 | 20,104 USD | -19,810 |
| Dow Jones | Daily | n/a | 543 | 68.32 | 17,342 EUR | -5,985 |
| Silver | 1 hour | n/a | 3,558 | 60.71 | 15,950 USD | -8,434 |
| Brent Crude | Daily | n/a | 212 | 69.34 | 10,265 EUR | -3,227 |
| Gold | 4 hours | n/a | 1,039 | 66.31 | 1,193 EUR | -852 |
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
// ============================================================== // Three Bar Pullback Trend Buyer // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false malow = Average[3](low) mahigh = Average[3](high) matrend = Average[30](close)
9 more lines: the entry and exit rules.
Setup
S&P 500 had no history beyond the standard run, so both runs used 14,000 bars.
| Bars available | 14,000 |
| Net, standard 200,000-bar run | 3,731.16 EUR |
| Net, long run | 3,790.37 EUR |
| Net on the older data alone | 59.21 EUR |
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 S&P 500, Daily, with a profit factor of 1.94 over 637 trades.
The best run had a maximum drawdown of 392 EUR at the tested position size, against a net result of 3,731 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.