Buys when price is above EMA(200) and EMA(50) is above EMA(200), with ADX(14) above 20, price above EMA(20), and RSI(14) crossing above 55. Exits when the close falls below EMA(50), or at an 8% stop.
Best run of 14. USD/JPY, 30 min, spread 1, from run sweeps:2026-10-03-USDJPY-30m-opt.tsv:19.
| Period | Up to 2026-10-03 |
| Instrument | USD/JPY, 30 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-03 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | 30 min | n/a | 1,393 | 28.21 | 199,620 USD | -114,720 |
| USD/JPY | Daily | n/a | 74 | 33.78 | 553,650 USD | -210,800 |
| USD/JPY | 1 hour | n/a | 1,003 | 29.01 | 274,600 USD | -123,330 |
| EUR/USD | Daily | n/a | 85 | 41.18 | 54,126 USD | -16,225 |
| Nikkei 225 | Daily | n/a | 73 | 39.73 | 34,186 USD | -7,139 |
| Silver | 4 hours | n/a | 215 | 29.30 | 24,133 USD | -12,184 |
| Nasdaq 100 | Daily | n/a | 115 | 32.17 | 7,473 EUR | -3,528 |
| Dow Jones | 1 hour | n/a | 331 | 29.00 | 6,033 EUR | -3,084 |
| Dow Jones | 4 hours | n/a | 104 | 34.62 | 5,450 EUR | -4,304 |
| Nasdaq 100 | 1 hour | n/a | 1,067 | 27.93 | 3,736 EUR | -2,413 |
| FTSE 100 | Daily | n/a | 92 | 35.87 | 1,839 EUR | -1,614 |
| Gold | 1 hour | n/a | 893 | 29.90 | 1,792 EUR | -770 |
| Gold | 4 hours | n/a | 235 | 36.17 | 1,764 EUR | -793 |
| S&P 500 | Daily | n/a | 157 | 29.30 | 1,026 EUR | -553 |
Charts
Top 10 of 14 runs. The full list is in the table above.
The code
// ============================================================== // Trend Filter RSI Crossover Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE ready = 0 emafast = ExponentialAverage[20](close) emamid = ExponentialAverage[50](close) emalong = ExponentialAverage[200](close) myRsi = RSI[14](close) myAdx = ADX[14]
17 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 14 market and timeframe combinations. The best run by trade count was USD/JPY, 30 minutes, with 1,393 trades.
The best run had a maximum drawdown of 114,720 USD at the tested position size, against a net result of 199,620 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.