The strategy buys when the WaveTrend average rises versus the prior bar while staying below the close. It sells when the average turns down versus the prior bar.
Best run of 13. Gold, 4 hours, spread 0.6, from run pf:2026-10-12-GOLD-4h.tsv:12.
| Period | Up to 2026-10-12 |
| Instrument | Gold, 4 hours |
| Spread | 0.6 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 |
|---|---|---|---|---|---|---|
| GoldBest run | 4 hours | 1.27 | 2,902 | 46.52 | 3,940 EUR | -693 |
| USD/JPY | 4 hours | 1.17 | 3,263 | 47.56 | 1,102,660 USD | -164,290 |
| DAX 40 | 4 hours | 1.15 | 2,775 | 48.07 | 18,187 EUR | -2,909 |
| Nikkei 225 | 4 hours | n/a | 2,321 | 47.13 | 31,913 USD | -14,770 |
| Dow Jones | Daily | n/a | 1,350 | 48.15 | 22,038 EUR | -8,768 |
| Silver | Daily | n/a | 1,146 | 42.67 | 21,912 USD | -13,593 |
| Nasdaq 100 | 4 hours | n/a | 2,914 | 45.98 | 16,643 EUR | -4,929 |
| Nasdaq 100 | Daily | n/a | 1,033 | 46.37 | 10,240 EUR | -5,192 |
| Brent Crude | 4 hours | n/a | 1,625 | 47.14 | 7,693 EUR | -4,999 |
| DAX 40 | Daily | n/a | 1,425 | 45.75 | 6,853 EUR | -4,010 |
| S&P 500 | Daily | n/a | 1,392 | 45.04 | 2,794 EUR | -1,215 |
| Gold | Daily | n/a | 1,291 | 45.08 | 2,337 EUR | -734 |
| S&P 500 | 4 hours | n/a | 2,916 | 46.50 | 2,135 EUR | -1,115 |
Charts
Top 10 of 13 runs. The full list is in the table above.
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // WaveTrend Average Momentum Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ONCE ci = 0 ap = summation[4](TypicalPrice) / 4 esa = ExponentialAverage[10](ap) myD = ExponentialAverage[10](abs(ap - esa))
19 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 13 market and timeframe combinations. The best run was Gold, 4 hours, with a profit factor of 1.27 over 2,902 trades.
The best run had a maximum drawdown of 693 EUR at the tested position size, against a net result of 3,940 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.