Buys when the 5-period EMA crosses above the 32-period EMA and sells short when it crosses below. Every position has a 5% stop loss and a 10% profit target from the entry price, and an opposite cross reverses the trade.
Best run of 13. EUR/USD, Daily, spread 1, from run pf:2026-10-12-EURUSD-D.tsv:5.
| Period | Up to 2026-10-12 |
| Instrument | EUR/USD, 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| EUR/USDBest run | Daily | 1.57 | 557 | 32.50 | 276,706 USD | -40,091 |
| USD/JPY | Daily | 1.39 | 629 | 27.66 | 2,672,810 USD | -519,100 |
| US Crude Oil | Daily | 1.27 | 552 | 31.88 | 16,126 EUR | -3,320 |
| USD/JPY | 1 hour | n/a | 6,427 | 26.31 | 730,670 USD | -342,980 |
| EUR/USD | 3 min | n/a | 10,375 | 21.30 | 238,616 USD | -111,243 |
| EUR/USD | 2 min | n/a | 10,558 | 19.53 | 226,309 USD | -131,431 |
| EUR/USD | 5 min | n/a | 10,208 | 22.04 | 118,215 USD | -85,183 |
| Silver | 4 hours | n/a | 1,457 | 24.78 | 26,634 USD | -11,881 |
| Dow Jones | Daily | n/a | 665 | 27.52 | 20,696 EUR | -10,286 |
| Dow Jones | 4 hours | n/a | 474 | 29.96 | 14,943 EUR | -7,896 |
| DAX 40 | Daily | n/a | 677 | 28.21 | 5,403 EUR | -5,311 |
| Gold | 4 hours | n/a | 1,416 | 27.97 | 2,695 EUR | -866 |
| Gold | Daily | n/a | 661 | 26.93 | 2,412 EUR | -699 |
Charts
Top 10 of 13 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // EMA 5 32 Fixed Percent Bracket // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false fast = ExponentialAverage[5](close) slow = ExponentialAverage[32](close)
14 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, Daily, with a profit factor of 1.57 over 557 trades.
The best run had a maximum drawdown of 40,091 USD at the tested position size, against a net result of 276,706 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.