Buys when the close is above a 20-period EMA, the Hull average is rising and ADX(14) is above 20. Sells short on the mirror setup, skipping signals after a run of three same-direction candles or when price is far from the EMA.
Best run of 4. Brent Crude, Daily, spread 3, from run pf:2026-10-12-BRENT-D.tsv:1.
| Period | Up to 2026-10-13 |
| Instrument | Brent Crude, Daily |
| Spread | 3 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 |
|---|---|---|---|---|---|---|
| Brent CrudeBest run | Daily | 1.27 | 1,400 | 40.14 | 1,561 EUR | -381 |
| USD/JPY | Daily | 1.23 | 3,996 | 37.16 | 624,240 USD | -57,330 |
| GBP/USD | Daily | 1.16 | 4,001 | 36.17 | 5,448 USD | -1,176 |
| EUR/USD | Daily | n/a | 3,871 | 35.96 | 29,274 USD | -7,567 |
Charts
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Hull Trend With ADX Filter // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE hulldir = 0 ONCE bullstreak = 0 ONCE bearstreak = 0 ema = ExponentialAverage[20](close) whalf = WeightedAverage[11](close) wfull = WeightedAverage[21](close) raw = 2 * whalf - wfull hull = WeightedAverage[5](raw) myAdx = ADX[14] myAtr = AverageTrueRange[14](close)
34 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 4 market and timeframe combinations. The best run was Brent Crude, Daily, with a profit factor of 1.27 over 1,400 trades.
The best run had a maximum drawdown of 381 EUR at the tested position size, against a net result of 1,561 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.