The system compares a 20-period and a 55-period Wilder moving average of the close. It buys when the faster average crosses above the slower one and sells short when it crosses below, staying in the market after the first signal.
Best run of 21. USD/JPY, Daily, spread 1, from run pf:2026-10-04-USDJPY-D.tsv:16.
| Period | Up to 2026-10-04 |
| 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-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 2.07 | 116 | 36.21 | 2,371,990 USD | -501,510 |
| USD/JPY | 10 min | n/a | 1,769 | 30.02 | 458,180 USD | -306,670 |
| USD/JPY | 15 min | n/a | 1,752 | 28.31 | 421,000 USD | -250,830 |
| EUR/USD | 2 min | n/a | 1,991 | 26.47 | 289,975 USD | -109,677 |
| USD/JPY | 5 min | n/a | 1,851 | 28.31 | 287,420 USD | -105,150 |
| EUR/USD | Daily | n/a | 99 | 38.38 | 178,716 USD | -36,681 |
| Nikkei 225 | Daily | n/a | 84 | 36.90 | 62,426 USD | -24,070 |
| Silver | 2 min | n/a | 1,906 | 26.55 | 22,628 USD | -19,994 |
| Nasdaq 100 | Daily | n/a | 84 | 30.95 | 16,627 EUR | -4,687 |
| GBP/USD | Daily | n/a | 118 | 33.05 | 11,854 USD | -10,066 |
| US Crude Oil | Daily | n/a | 112 | 33.04 | 9,186 EUR | -8,861 |
| US Crude Oil | 1 hour | n/a | 834 | 30.34 | 8,919 EUR | -5,426 |
| Gold | Daily | n/a | 108 | 27.78 | 3,397 EUR | -1,108 |
| S&P 500 | Daily | n/a | 111 | 35.14 | 3,190 EUR | -1,624 |
| Gold | 1 hour | n/a | 1,031 | 31.72 | 2,799 EUR | -1,054 |
| Gold | 4 hours | n/a | 295 | 29.15 | 2,765 EUR | -962 |
| Gold | 3 min | n/a | 1,874 | 28.12 | 2,393 EUR | -1,136 |
| Gold | 5 min | n/a | 1,810 | 27.40 | 2,358 EUR | -658 |
| Gold | 15 min | n/a | 1,849 | 26.45 | 1,777 EUR | -1,367 |
| Gold | 10 min | n/a | 1,887 | 27.34 | 1,356 EUR | -939 |
| Gold | 2 min | n/a | 1,898 | 27.61 | 1,102 EUR | -1,037 |
Charts
Top 10 of 21 runs. The full list is in the table above.
The code
// ============================================================== // Wilder Average Crossover Reversal // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false mafast = WilderAverage[20](close) maslow = WilderAverage[55](close)
10 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 21 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 2.07 over 116 trades.
The best run had a maximum drawdown of 501,510 USD at the tested position size, against a net result of 2,371,990 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.