The strategy buys when a smoothed oscillator crosses above a slower one while the 480-bar Hull MA rises and price is above it. Stops sit beyond the 14-bar ATR or the 20-bar swing, whichever is further, and targets at 3 times stop distance.
Best run of 15. USD/JPY, Daily, spread 1, from run pf:2026-10-13-USDJPY-D.tsv:7.
| Period | Up to 2026-10-13 |
| 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-13 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 2.45 | 125 | 44.00 | 43,270 USD | -3,820 |
| Silver | Daily | n/a | 61 | 31.15 | 18,829 USD | -9,884 |
| Silver | 4 hours | n/a | 172 | 26.74 | 18,163 USD | -17,334 |
| Dow Jones | Daily | n/a | 86 | 32.56 | 10,498 EUR | -7,143 |
| Nasdaq 100 | Daily | n/a | 61 | 26.23 | 9,296 EUR | -9,040 |
| DAX 40 | 10 min | n/a | 1,050 | 28.86 | 7,825 EUR | -3,255 |
| Nasdaq 100 | 4 hours | n/a | 175 | 29.14 | 6,216 EUR | -5,713 |
| Brent Crude | 10 min | n/a | 1,100 | 27.36 | 5,144 EUR | -2,890 |
| Dow Jones | 5 min | n/a | 1,089 | 26.72 | 4,867 EUR | -4,375 |
| Gold | 1 hour | n/a | 615 | 31.38 | 2,316 EUR | -592 |
| Gold | Daily | n/a | 75 | 38.67 | 1,750 EUR | -869 |
| Gold | 10 min | n/a | 1,027 | 28.33 | 1,445 EUR | -485 |
| Gold | 4 hours | n/a | 161 | 32.30 | 1,434 EUR | -922 |
| Gold | 5 min | n/a | 1,085 | 27.65 | 1,146 EUR | -566 |
| Gold | 30 min | n/a | 987 | 27.76 | 1,059 EUR | -707 |
Charts
Top 10 of 15 runs. The full list is in the table above.
The code
// ============================================================== // Oscillator Cross With Hull Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE hp = 0 ONCE filt = 0 ONCE peak = 0 ONCE filtb = 0 ONCE peakb = 0 myX = 0 xb = 0
48 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 15 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 2.45 over 125 trades.
The best run had a maximum drawdown of 3,820 USD at the tested position size, against a net result of 43,270 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.