The system buys when the Stochastic RSI line crosses above 20 while the close is above both the 200-period and 50-period EMAs. Exits occur when the close falls below 0.95 times the highest high since entry, or when the Stochastic RSI exceeds 97.
Best run of 18. Nasdaq 100, 5 min, spread 3, from run sweeps:2026-10-07-NAS100-5m-opt.tsv:6.
| Period | Up to 2026-10-07 |
| Instrument | Nasdaq 100, 5 minutes |
| 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-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nasdaq 100Best run | 5 min | n/a | 2,131 | 64.20 | 4,729 EUR | -3,188 |
| USD/JPY | 4 hours | n/a | 379 | 67.02 | 515,310 USD | -180,530 |
| EUR/USD | Daily | n/a | 113 | 55.75 | 46,733 USD | -35,767 |
| EUR/USD | 4 hours | n/a | 441 | 62.59 | 32,768 USD | -31,932 |
| Nikkei 225 | 4 hours | n/a | 313 | 63.26 | 11,951 USD | -9,772 |
| Nikkei 225 | 3 min | n/a | 1,909 | 59.72 | 9,043 USD | -7,599 |
| Dow Jones | 30 min | n/a | 853 | 64.01 | 8,860 EUR | -6,319 |
| Dow Jones | 4 hours | n/a | 121 | 70.25 | 7,594 EUR | -4,856 |
| Nasdaq 100 | Daily | n/a | 220 | 56.82 | 7,573 EUR | -4,472 |
| US Crude Oil | 4 hours | n/a | 258 | 62.40 | 6,531 EUR | -3,526 |
| Nasdaq 100 | 4 hours | n/a | 421 | 67.93 | 6,302 EUR | -3,185 |
| DAX 40 | 4 hours | n/a | 354 | 66.67 | 6,298 EUR | -5,201 |
| Brent Crude | 1 hour | n/a | 669 | 63.38 | 3,362 EUR | -3,231 |
| DAX 40 | 5 min | n/a | 1,967 | 60.40 | 2,608 EUR | -2,113 |
| S&P 500 | Daily | n/a | 254 | 65.35 | 2,036 EUR | -867 |
| S&P 500 | 4 hours | n/a | 411 | 65.94 | 1,362 EUR | -601 |
| Gold | 4 hours | n/a | 350 | 66.00 | 1,218 EUR | -525 |
| Gold | 15 min | n/a | 1,913 | 57.34 | 724 EUR | -511 |
Charts
Top 10 of 18 runs. The full list is in the table above.
The code
// ============================================================== // Stochastic RSI Trail Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: 5 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE raw = 0 ONCE trail = 0 emas = ExponentialAverage[200](close) emaf = ExponentialAverage[50](close) myRsi = RSI[14](close) hh = highest[14](myRsi) ll = lowest[14](myRsi)
23 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 18 market and timeframe combinations. The best run by trade count was Nasdaq 100, 5 minutes, with 2,131 trades.
The best run had a maximum drawdown of 3,188 EUR at the tested position size, against a net result of 4,729 EUR.
It only takes long trades.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.