The strategy buys when the 20-bar average is above the 50-bar average and price crosses above the 20-bar average with RSI(14) below 70, and sells short on the mirror setup. Each trade uses a 2% stop loss and a 5% profit target.
Best run of 13. EUR/USD, 3 min, spread 1, from run pf:2026-10-12-EURUSD-3m.tsv:2.
| Period | Up to 2026-10-12 |
| Instrument | EUR/USD, 3 minutes |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| EUR/USDBest run | 3 min | 1.59 | 2,924 | 30.88 | 169,368 USD | -27,142 |
| USD/JPY | Daily | n/a | 313 | 31.63 | 954,030 USD | -470,070 |
| USD/JPY | 4 hours | n/a | 530 | 34.15 | 564,880 USD | -318,570 |
| EUR/USD | 2 min | n/a | 2,970 | 29.90 | 93,551 USD | -30,206 |
| EUR/USD | 5 min | n/a | 2,893 | 31.97 | 75,206 USD | -26,515 |
| EUR/USD | 4 hours | n/a | 635 | 35.28 | 45,261 USD | -35,328 |
| Dow Jones | 4 hours | n/a | 170 | 35.88 | 14,079 EUR | -8,412 |
| Nasdaq 100 | Daily | n/a | 462 | 28.57 | 11,588 EUR | -3,864 |
| Dow Jones | Daily | n/a | 468 | 27.99 | 10,121 EUR | -5,921 |
| DAX 40 | 4 hours | n/a | 598 | 33.28 | 8,267 EUR | -5,141 |
| Brent Crude | Daily | n/a | 253 | 33.20 | 7,331 EUR | -2,077 |
| Gold | 10 min | n/a | 2,788 | 33.43 | 1,854 EUR | -1,295 |
| S&P 500 | Daily | n/a | 511 | 25.64 | 1,354 EUR | -1,243 |
Charts
Top 10 of 13 runs. The full list is in the table above.
The code
// ============================================================== // Trend Crossover With RSI Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 3 minutes // ============================================================== DEFPARAM CumulateOrders = false fast = Average[20](close) slow = Average[50](close) myRsi = RSI[14](close)
24 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 13 market and timeframe combinations. The best run was EUR/USD, 3 minutes, with a profit factor of 1.59 over 2,924 trades.
The best run had a maximum drawdown of 27,142 USD at the tested position size, against a net result of 169,368 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.