The system looks for a confirmed fractal low or high in the trend direction of the EMA(20), EMA(50), and EMA(100) stack, filtered by RSI(14) momentum. It enters only when flat, with a 3.1% stop and a 0.5% target from entry.
Best run of 10. EUR/USD, Daily, spread 1, from run pf:2026-10-12-EURUSD-D.tsv:1.
| 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.33 | 730 | 88.77 | 93,554 USD | -18,580 |
| USD/JPY | 15 min | n/a | 392 | 88.27 | 383,770 USD | -204,290 |
| USD/JPY | 10 min | n/a | 316 | 88.29 | 359,640 USD | -210,400 |
| Dow Jones | 3 min | n/a | 218 | 88.07 | 7,695 EUR | -6,300 |
| Gold | 5 min | n/a | 686 | 88.19 | 2,405 EUR | -773 |
| Gold | 10 min | n/a | 948 | 87.24 | 1,726 EUR | -649 |
| Gold | 3 min | n/a | 588 | 87.93 | 1,631 EUR | -884 |
| Gold | 2 min | n/a | 477 | 88.05 | 1,618 EUR | -1,252 |
| FTSE 100 | 5 min | n/a | 230 | 87.83 | 1,493 EUR | -1,411 |
| Gold | 15 min | n/a | 1,177 | 86.15 | 859 EUR | -841 |
Charts
The code
// ============================================================== // Fractal Reversal With EMA Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false emaa = ExponentialAverage[20](close) emab = ExponentialAverage[50](close) emac = ExponentialAverage[100](close) myRsi = RSI[14](close)
36 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 10 market and timeframe combinations. The best run was EUR/USD, Daily, with a profit factor of 1.33 over 730 trades.
The best run had a maximum drawdown of 18,580 USD at the tested position size, against a net result of 93,554 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.