Buys when RSI(14) crosses above 50 while still below 70 and the close is above its 50-period SMA. Closes the long when RSI(14) crosses below 45 or the close crosses below the SMA.
Best run of 23. DAX 40, 30 min, spread 3, from run sweeps:2026-10-12-DAX40-30m-opt.tsv:17.
| Period | Up to 2026-10-12 |
| Instrument | DAX 40, 30 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| DAX 40Best run | 30 min | n/a | 4,780 | 23.95 | 6,823 EUR | -3,236 |
| USD/JPY | Daily | n/a | 340 | 24.71 | 609,930 USD | -509,900 |
| USD/JPY | 1 hour | n/a | 3,124 | 23.78 | 490,970 USD | -163,610 |
| USD/JPY | 30 min | n/a | 4,688 | 22.35 | 379,880 USD | -289,520 |
| USD/JPY | 4 hours | n/a | 824 | 24.88 | 219,620 USD | -213,810 |
| EUR/USD | Daily | n/a | 261 | 25.29 | 90,682 USD | -39,394 |
| EUR/USD | 4 hours | n/a | 995 | 23.92 | 46,214 USD | -37,022 |
| Silver | Daily | n/a | 266 | 24.44 | 37,619 USD | -23,162 |
| Nikkei 225 | Daily | n/a | 275 | 27.64 | 37,027 USD | -10,304 |
| Nikkei 225 | 4 hours | n/a | 602 | 25.42 | 22,773 USD | -9,026 |
| Silver | 4 hours | n/a | 722 | 22.99 | 20,977 USD | -17,636 |
| Dow Jones | Daily | n/a | 333 | 30.03 | 18,661 EUR | -5,875 |
| Nikkei 225 | 1 hour | n/a | 2,246 | 22.66 | 13,270 USD | -11,207 |
| Brent Crude | Daily | n/a | 131 | 29.77 | 11,704 EUR | -4,071 |
| Nasdaq 100 | Daily | n/a | 271 | 28.78 | 10,225 EUR | -5,127 |
| DAX 40 | 4 hours | n/a | 729 | 27.16 | 7,980 EUR | -3,819 |
| Nasdaq 100 | 4 hours | n/a | 704 | 26.56 | 6,195 EUR | -3,551 |
| Nasdaq 100 | 1 hour | n/a | 2,771 | 24.54 | 5,522 EUR | -3,582 |
| US Crude Oil | Daily | n/a | 276 | 28.99 | 5,319 EUR | -4,278 |
| DAX 40 | Daily | n/a | 346 | 26.59 | 4,842 EUR | -4,127 |
| Gold | Daily | n/a | 330 | 27.58 | 2,938 EUR | -809 |
| Gold | 4 hours | n/a | 671 | 26.83 | 2,465 EUR | -720 |
| S&P 500 | Daily | n/a | 358 | 27.09 | 1,707 EUR | -866 |
Charts
Top 10 of 23 runs. The full list is in the table above.
The code
// ============================================================== // RSI Midline Trend Following // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false sma = Average[50](close) myRsi = RSI[14](close)
11 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 23 market and timeframe combinations. The best run by trade count was DAX 40, 30 minutes, with 4,780 trades.
The best run had a maximum drawdown of 3,236 EUR at the tested position size, against a net result of 6,823 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.