The strategy buys when the WaveTrend line crosses above its signal line and sells when it crosses below. A 25% stop loss is set on each entry and no profit target is used.
Best run of 13. Gold, 4 hours, spread 0.6, from run pf:2026-10-10-GOLD-4h.tsv:2.
| Period | Up to 2026-10-10 |
| 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-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| GoldBest run | 4 hours | 1.31 | 2,311 | 37.99 | 3,994 EUR | -777 |
| USD/JPY | 4 hours | n/a | 2,638 | 37.30 | 735,590 USD | -232,240 |
| USD/JPY | Daily | n/a | 1,014 | 36.59 | 711,120 USD | -599,500 |
| Nikkei 225 | 4 hours | n/a | 1,885 | 37.88 | 25,835 USD | -9,447 |
| Dow Jones | Daily | n/a | 1,108 | 38.45 | 20,148 EUR | -7,920 |
| DAX 40 | 4 hours | n/a | 2,264 | 39.62 | 14,735 EUR | -4,293 |
| DAX 40 | Daily | n/a | 1,175 | 37.62 | 13,053 EUR | -4,630 |
| Nasdaq 100 | 4 hours | n/a | 2,341 | 36.18 | 11,619 EUR | -4,864 |
| Nasdaq 100 | Daily | n/a | 854 | 37.47 | 6,651 EUR | -4,614 |
| Brent Crude | 4 hours | n/a | 1,281 | 37.24 | 5,082 EUR | -3,103 |
| US Crude Oil | 4 hours | n/a | 1,701 | 37.51 | 5,011 EUR | -4,362 |
| Gold | Daily | n/a | 1,026 | 37.62 | 2,671 EUR | -1,083 |
| S&P 500 | Daily | n/a | 1,167 | 36.59 | 1,684 EUR | -1,455 |
Charts
Top 10 of 13 runs. The full list is in the table above.
The code
// ============================================================== // WaveTrend Signal Line Crossover // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long only // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ap = (high + low + close) / 3 esa = ExponentialAverage[10](ap) absdiff = ABS(ap - esa) myD = ExponentialAverage[10](absdiff) ci = 0
15 more lines: the entry and exit rules.
Setup
Gold had no history beyond the standard run, so both runs used 30,000 bars.
| Bars available | 30,000 |
| Net, standard 200,000-bar run | 3,994.30 EUR |
| Net, long run | 3,994.30 EUR |
| Net on the older data alone | 0.00 EUR |
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.31 over 2,311 trades.
The best run had a maximum drawdown of 777 EUR at the tested position size, against a net result of 3,994 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.