The strategy buys when price is above the 200-bar average but below the 10-bar average, and sells when price closes above the 10-bar average. It also exits if the close falls more than 0.10 below the entry price.
Best run of 8. S&P 500, Daily, spread 1, from run pf:2026-10-10-USA500-D.tsv:4.
| Period | Up to 2026-10-10 |
| 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-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| S&P 500Best run | Daily | 1.79 | 902 | 66.96 | 3,955 EUR | -560 |
| Nasdaq 100 | Daily | 1.70 | 740 | 67.43 | 15,200 EUR | -2,512 |
| EUR/USD | Daily | n/a | 547 | 70.75 | 50,017 USD | -28,720 |
| Nikkei 225 | Daily | n/a | 590 | 72.37 | 23,286 USD | -9,919 |
| Dow Jones | Daily | n/a | 857 | 71.65 | 19,885 EUR | -6,967 |
| DAX 40 | Daily | n/a | 860 | 68.37 | 11,275 EUR | -2,941 |
| Dow Jones | 4 hours | n/a | 594 | 74.24 | 7,166 EUR | -3,968 |
| Gold | Daily | n/a | 678 | 65.63 | 1,093 EUR | -636 |
Charts
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // SMA Pullback Long With Stop // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE buyprice = 0 maslow = Average[200](close) mafast = Average[10](close)
23 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,954.60 EUR |
| Net, long run | 3,954.60 EUR |
| Net on the older data alone | 0.00 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 8 market and timeframe combinations. The best run was S&P 500, Daily, with a profit factor of 1.79 over 902 trades.
The best run had a maximum drawdown of 560 EUR at the tested position size, against a net result of 3,955 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.