Buys when the 21-period RSI has stayed above 60 for 15 consecutive bars, and sells short when it has stayed below 40 for 15 bars. Each trade has a stop 3 ATR(14) from entry and a target twice that distance.
Best run of 18. Gold, 15 min, spread 0.6, from run pf:2026-10-12-GOLD-15m.tsv:4.
| Period | Up to 2026-10-12 |
| Instrument | Gold, 15 minutes |
| Spread | 0.6 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 |
|---|---|---|---|---|---|---|
| GoldBest run | 15 min | 1.23 | 954 | 34.38 | 1,685 EUR | -418 |
| Nikkei 225 | Daily | n/a | 61 | 50.82 | 23,981 USD | -6,751 |
| Silver | 5 min | n/a | 774 | 30.88 | 18,622 USD | -6,518 |
| Silver | 1 hour | n/a | 732 | 33.47 | 17,395 USD | -14,435 |
| Silver | 3 min | n/a | 745 | 30.87 | 16,743 USD | -11,549 |
| Dow Jones | 30 min | n/a | 495 | 37.98 | 16,720 EUR | -4,620 |
| Silver | Daily | n/a | 65 | 36.92 | 14,558 USD | -9,568 |
| Nasdaq 100 | 15 min | n/a | 1,144 | 36.19 | 10,111 EUR | -4,443 |
| Nasdaq 100 | Daily | n/a | 81 | 39.51 | 9,085 EUR | -1,980 |
| Nasdaq 100 | 10 min | n/a | 1,022 | 36.89 | 7,965 EUR | -4,034 |
| Nikkei 225 | 3 min | n/a | 913 | 33.63 | 5,632 USD | -5,562 |
| Dow Jones | 10 min | n/a | 945 | 33.44 | 5,375 EUR | -4,982 |
| Gold | 1 hour | n/a | 850 | 36.35 | 2,314 EUR | -603 |
| S&P 500 | 15 min | n/a | 1,079 | 35.03 | 1,591 EUR | -732 |
| S&P 500 | 10 min | n/a | 1,000 | 36.10 | 1,043 EUR | -800 |
| S&P 500 | Daily | n/a | 99 | 42.42 | 983 EUR | -735 |
| Gold | 30 min | n/a | 1,095 | 34.43 | 934 EUR | -696 |
| Gold | Daily | n/a | 79 | 35.44 | 671 EUR | -454 |
Charts
Top 10 of 18 runs. The full list is in the table above.
The code
// ============================================================== // RSI Extended Streak Entry // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: 15 minutes // ============================================================== DEFPARAM CumulateOrders = false myRsi = RSI[21](close)
28 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 was Gold, 15 minutes, with a profit factor of 1.23 over 954 trades.
The best run had a maximum drawdown of 418 EUR at the tested position size, against a net result of 1,685 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.