Buys a pullback in an uptrend when the close is above the 200 period EMA, Stochastic RSI %K is below 20 and crosses above %D, and SuperTrend is in an up trend. Closes the long when %K is above 80 and crosses below %D.
Best run of 14. S&P 500, Daily, spread 1, from run pf:2026-10-05-USA500-D.tsv:1.
| 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 | 2.47 | 234 | 70.94 | 3,851 EUR | -799 |
| Nasdaq 100 | Daily | 2.41 | 188 | 70.21 | 14,124 EUR | -3,269 |
| Nasdaq 100 | 4 hours | 1.85 | 468 | 67.09 | 16,380 EUR | -2,321 |
| Dow Jones | 4 hours | 1.74 | 151 | 68.87 | 15,642 EUR | -3,822 |
| S&P 500 | 4 hours | 1.59 | 480 | 66.88 | 3,321 EUR | -683 |
| EUR/USD | 4 hours | n/a | 504 | 59.33 | 40,679 USD | -26,062 |
| Nikkei 225 | Daily | n/a | 136 | 66.91 | 35,322 USD | -11,480 |
| EUR/USD | Daily | n/a | 127 | 61.42 | 32,892 USD | -28,970 |
| Dow Jones | Daily | n/a | 228 | 67.11 | 15,176 EUR | -11,230 |
| DAX 40 | Daily | n/a | 216 | 65.28 | 8,705 EUR | -4,162 |
| US Crude Oil | 4 hours | n/a | 270 | 63.33 | 7,152 EUR | -6,014 |
| Dow Jones | 30 min | n/a | 926 | 61.45 | 6,470 EUR | -5,765 |
| Dow Jones | 1 hour | n/a | 479 | 60.33 | 6,052 EUR | -5,646 |
| FTSE 100 | Daily | n/a | 169 | 66.27 | 4,099 EUR | -1,816 |
Charts
Top 10 of 14 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // SuperTrend Uptrend StochRSI Pullback // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE dir = 1 ONCE lb = 0 ONCE ub = 0 ONCE st = 0 myRsi = RSI[14](close) hh = highest[14](myRsi) ll = lowest[14](myRsi)
53 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,850.70 EUR |
| Net, long run | 3,850.70 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 14 market and timeframe combinations. The best run was S&P 500, Daily, with a profit factor of 2.47 over 234 trades.
The best run had a maximum drawdown of 799 EUR at the tested position size, against a net result of 3,851 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.