The strategy buys when RSI(14) crosses above 50 with the close above the 200-period EMA and ATR above its 20-period average. It sells short on the mirror RSI cross below 50, and closes a trade when the close moves back through the 50-period EMA.
Best run of 9. Nikkei 225, Daily, spread 10, from run pf:2026-10-05-NIKKEI-D.tsv:8.
| Period | Up to 2026-10-05 |
| Instrument | Nikkei 225, Daily |
| 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 | Daily | 1.64 | 206 | 29.13 | 33,126 USD | -8,267 |
| USD/JPY | Daily | n/a | 279 | 28.32 | 1,586,530 USD | -512,200 |
| USD/JPY | 1 hour | n/a | 2,671 | 24.63 | 320,040 USD | -223,360 |
| Dow Jones | Daily | n/a | 287 | 32.40 | 17,557 EUR | -6,455 |
| DAX 40 | Daily | n/a | 318 | 29.25 | 9,336 EUR | -4,774 |
| Nasdaq 100 | Daily | n/a | 254 | 29.53 | 8,981 EUR | -4,116 |
| US Crude Oil | 4 hours | n/a | 511 | 26.42 | 8,630 EUR | -4,151 |
| S&P 500 | Daily | n/a | 334 | 28.14 | 2,440 EUR | -841 |
| Gold | 4 hours | n/a | 568 | 28.87 | 1,651 EUR | -782 |
Charts
The code
// ============================================================== // RSI Fifty Cross With ATR Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ematrend = ExponentialAverage[200](close) emaexit = ExponentialAverage[50](close) myRsi = RSI[14](close) myAtr = AverageTrueRange[14](close) atrsma = Average[20](myAtr)
24 more lines: the entry and exit rules.
Setup
Nikkei 225 had no history beyond the standard run, so both runs used 11,000 bars.
| Bars available | 11,000 |
| Net, standard 200,000-bar run | 33,125.50 USD |
| Net, long run | 33,125.50 USD |
| Net on the older data alone | 0.00 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 9 market and timeframe combinations. The best run was Nikkei 225, Daily, with a profit factor of 1.64 over 206 trades.
The best run had a maximum drawdown of 8,267 USD at the tested position size, against a net result of 33,126 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.