The strategy buys when a 12-bar Hull average crosses above a 5-bar EMA shifted 2 bars, with the close above both and RSI and smoothed stochastics above 50. The mirror image sells short.
Best run of 11. USD/JPY, Daily, spread 1, from run pf:2026-10-12-USDJPY-D.tsv:42.
| Period | Up to 2026-10-12 |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 1.28 | 545 | 40.18 | 18,790 USD | -3,440 |
| Nikkei 225 | Daily | n/a | 389 | 39.85 | 33,885 USD | -9,633 |
| Nikkei 225 | 4 hours | n/a | 825 | 40.36 | 25,611 USD | -8,355 |
| Silver | 4 hours | n/a | 987 | 35.97 | 20,822 USD | -9,141 |
| Silver | Daily | n/a | 405 | 38.52 | 20,108 USD | -12,145 |
| Brent Crude | Daily | n/a | 178 | 41.57 | 13,314 EUR | -6,243 |
| US Crude Oil | Daily | n/a | 419 | 39.86 | 9,140 EUR | -3,843 |
| US Crude Oil | 4 hours | n/a | 741 | 37.92 | 7,854 EUR | -4,353 |
| Nasdaq 100 | Daily | n/a | 410 | 36.34 | 6,735 EUR | -6,171 |
| Gold | 4 hours | n/a | 953 | 40.08 | 2,498 EUR | -679 |
| Gold | Daily | n/a | 454 | 41.19 | 1,422 EUR | -771 |
Charts
Top 10 of 11 runs. The full list is in the table above.
The code
// ============================================================== // Hull Average Crossover With Stochastic Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE ka = 50 ONCE kb = 50 hma = HullAverage[12](close) ema = ExponentialAverage[5](close) emash = ema[2] myRsi = RSI[14](close) rnga = highest[12](high) - lowest[12](low)
37 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 11 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.28 over 545 trades.
The best run had a maximum drawdown of 3,440 USD at the tested position size, against a net result of 18,790 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.