The strategy buys when the 21-period EMA is above the 89-period EMA, the close is above the 21-period EMA, RSI(14) is between 55 and 75, and ATR is above its 20-bar average. It exits only at a 2.5 ATR stop or 4 ATR target.
Best run of 18. Nikkei 225, 4 hours, spread 10, from run pf:2026-10-05-NIKKEI-4h.tsv:9.
| Period | Up to 2026-10-05 |
| Instrument | Nikkei 225, 4 hours |
| Spread | 10 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-05 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nikkei 225Best run | 4 hours | 1.58 | 360 | 48.33 | 45,915 USD | -6,336 |
| Nikkei 225 | Daily | 1.52 | 181 | 50.83 | 39,017 USD | -7,596 |
| USD/JPY | Daily | 1.50 | 1,399 | 46.39 | 105,600 USD | -5,550 |
| Nasdaq 100 | 4 hours | 1.35 | 547 | 42.23 | 11,839 EUR | -2,298 |
| S&P 500 | 4 hours | 1.27 | 485 | 41.03 | 2,289 EUR | -477 |
| Silver | Daily | n/a | 207 | 39.61 | 18,626 USD | -11,579 |
| Dow Jones | Daily | n/a | 230 | 49.13 | 16,337 EUR | -6,218 |
| Dow Jones | 15 min | n/a | 2,199 | 39.52 | 9,757 EUR | -5,853 |
| Dow Jones | 4 hours | n/a | 146 | 42.47 | 8,769 EUR | -5,224 |
| DAX 40 | 4 hours | n/a | 443 | 40.63 | 6,994 EUR | -3,050 |
| Nasdaq 100 | Daily | n/a | 250 | 44.40 | 6,600 EUR | -5,246 |
| Nasdaq 100 | 1 hour | n/a | 1,923 | 36.97 | 5,069 EUR | -3,642 |
| Nasdaq 100 | 15 min | n/a | 2,772 | 38.96 | 4,863 EUR | -3,188 |
| Gold | 4 hours | n/a | 536 | 44.03 | 1,934 EUR | -695 |
| Gold | Daily | n/a | 249 | 44.98 | 1,698 EUR | -1,194 |
| S&P 500 | Daily | n/a | 269 | 46.47 | 1,651 EUR | -884 |
| Gold | 1 hour | n/a | 1,760 | 40.11 | 1,601 EUR | -1,009 |
| Gold | 30 min | n/a | 2,710 | 38.60 | 1,019 EUR | -866 |
Charts
Top 10 of 18 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // EMA Trend RSI Bracket Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false emaf = ExponentialAverage[21](close) emas = ExponentialAverage[89](close) myRsi = RSI[14](close) myAtr = AverageTrueRange[14](close) atravg = Average[20](myAtr)
14 more lines: the entry and exit rules.
Setup
Nikkei 225 had no history beyond the standard run, so both runs used 22,000 bars.
| Bars available | 22,000 |
| Net, standard 200,000-bar run | 45,914.50 USD |
| Net, long run | 47,181.40 USD |
| Net on the older data alone | 1,266.90 USD |
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 Nikkei 225, 4 hours, with a profit factor of 1.58 over 360 trades.
The best run had a maximum drawdown of 6,336 USD at the tested position size, against a net result of 45,914 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.