Arms a buy after the 14 period RSI crosses under 31 and enters long when the close crosses above the 120 period average. Arms a sell after the RSI crosses over 69 and closes the long when the close crosses under that average.
Best run of 39. DAX 40, 4 hours, spread 3, from run pf:2026-10-12-DAX40-4h.tsv:9.
| Period | Up to 2026-10-13 |
| Instrument | DAX 40, 4 hours |
| 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-13 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| DAX 40Best run | 4 hours | 2.00 | 175 | 42.86 | 14,995 EUR | -3,688 |
| Nasdaq 100 | 30 min | 1.49 | 978 | 38.45 | 18,229 EUR | -2,639 |
| USD/JPY | 4 hours | n/a | 193 | 36.79 | 340,670 USD | -297,320 |
| USD/JPY | 15 min | n/a | 932 | 33.05 | 292,390 USD | -162,330 |
| USD/JPY | 30 min | n/a | 952 | 32.14 | 243,380 USD | -160,710 |
| Nikkei 225 | 4 hours | n/a | 142 | 42.25 | 31,449 USD | -9,896 |
| Silver | Daily | n/a | 70 | 35.71 | 25,946 USD | -25,287 |
| Dow Jones | Daily | n/a | 75 | 49.33 | 25,848 EUR | -7,472 |
| Nikkei 225 | 1 hour | n/a | 496 | 35.48 | 20,564 USD | -9,189 |
| Nikkei 225 | 2 min | n/a | 897 | 33.89 | 20,206 USD | -7,932 |
| Nasdaq 100 | 4 hours | n/a | 175 | 48.00 | 18,997 EUR | -5,020 |
| Nikkei 225 | 3 min | n/a | 937 | 33.72 | 18,626 USD | -10,092 |
| Dow Jones | 10 min | n/a | 997 | 32.00 | 15,939 EUR | -5,168 |
| Nikkei 225 | 10 min | n/a | 992 | 30.54 | 15,690 USD | -10,537 |
| Dow Jones | 4 hours | n/a | 57 | 50.88 | 15,271 EUR | -8,317 |
| Nasdaq 100 | 1 hour | n/a | 670 | 34.48 | 14,789 EUR | -4,216 |
| Nikkei 225 | 5 min | n/a | 989 | 32.46 | 14,142 USD | -10,768 |
| Nikkei 225 | 30 min | n/a | 978 | 30.78 | 12,581 USD | -12,027 |
| Dow Jones | 5 min | n/a | 946 | 32.66 | 10,976 EUR | -2,957 |
| Nasdaq 100 | Daily | n/a | 51 | 47.06 | 10,649 EUR | -5,027 |
| DAX 40 | 30 min | n/a | 1,036 | 34.07 | 10,015 EUR | -4,743 |
| Dow Jones | 30 min | n/a | 422 | 36.26 | 9,830 EUR | -7,424 |
| DAX 40 | 1 hour | n/a | 606 | 39.44 | 8,778 EUR | -5,547 |
| Nasdaq 100 | 3 min | n/a | 910 | 34.73 | 7,616 EUR | -2,651 |
| US Crude Oil | Daily | n/a | 54 | 37.04 | 7,372 EUR | -5,274 |
| DAX 40 | 15 min | n/a | 985 | 32.59 | 7,229 EUR | -3,885 |
| DAX 40 | Daily | n/a | 68 | 47.06 | 6,528 EUR | -4,946 |
| GBP/USD | Daily | n/a | 62 | 35.48 | 6,436 USD | -6,008 |
| Nasdaq 100 | 5 min | n/a | 930 | 34.73 | 5,887 EUR | -4,695 |
| Nasdaq 100 | 1 min | n/a | 863 | 31.17 | 5,315 EUR | -1,707 |
| S&P 500 | 4 hours | n/a | 176 | 42.05 | 3,779 EUR | -1,412 |
| Nasdaq 100 | 2 min | n/a | 865 | 32.72 | 3,389 EUR | -2,724 |
| S&P 500 | Daily | n/a | 66 | 48.48 | 2,712 EUR | -898 |
| S&P 500 | 30 min | n/a | 966 | 38.30 | 2,149 EUR | -742 |
| Gold | Daily | n/a | 64 | 40.62 | 2,094 EUR | -1,729 |
| Gold | 5 min | n/a | 928 | 33.73 | 1,918 EUR | -521 |
| S&P 500 | 1 hour | n/a | 656 | 37.35 | 1,791 EUR | -1,112 |
| S&P 500 | 5 min | n/a | 897 | 34.56 | 1,464 EUR | -696 |
| Gold | 30 min | n/a | 918 | 32.57 | 1,219 EUR | -1,149 |
Charts
Top 10 of 39 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // RSI Armed SMA Cross // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Long only // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ONCE oswait = 0 ONCE obwait = 0 myRsi = RSI[14](close) sma = Average[120](close)
22 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 39 market and timeframe combinations. The best run was DAX 40, 4 hours, with a profit factor of 2.00 over 175 trades.
The best run had a maximum drawdown of 3,688 EUR at the tested position size, against a net result of 14,995 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.