The strategy trades EMA(10) and EMA(40) crossovers filtered by RSI(14) and a volatility check, when ATR(5) is not above 2.5 times ATR(20). It sets a stop at 2.5 times ATR(14) and a target at 5.5 times ATR(14) from entry.
Best run of 7. USD/JPY, Daily, spread 1, from run pf:2026-10-05-USDJPY-D.tsv:8.
| Period | Up to 2026-10-05 |
| Instrument | USD/JPY, Daily |
| 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-05 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 1.70 | 367 | 41.42 | 38,880 USD | -3,830 |
| DAX 40 | Daily | n/a | 241 | 35.68 | 17,196 EUR | -4,531 |
| Nasdaq 100 | 4 hours | n/a | 537 | 31.84 | 13,848 EUR | -5,422 |
| Dow Jones | Daily | n/a | 197 | 29.95 | 12,986 EUR | -7,918 |
| Dow Jones | 4 hours | n/a | 165 | 32.73 | 12,730 EUR | -6,520 |
| US Crude Oil | Daily | n/a | 151 | 35.76 | 10,253 EUR | -7,147 |
| S&P 500 | Daily | n/a | 222 | 27.03 | 1,355 EUR | -883 |
Charts
The code
// ============================================================== // EMA Crossover RSI ATR Bracket // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false atrf = AverageTrueRange[5](close) atrs = AverageTrueRange[20](close)
22 more lines: the entry and exit rules.
Setup
USD/JPY had no history beyond the standard run, so both runs used 12,000 bars.
| Bars available | 12,000 |
| Net, standard 200,000-bar run | 38,880.00 USD |
| Net, long run | 38,610.00 USD |
| Net on the older data alone | -270.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 7 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.70 over 367 trades.
The best run had a maximum drawdown of 3,830 USD at the tested position size, against a net result of 38,880 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.