The system tracks a WaveTrend oscillator built from the typical price, and holds a long while its fast line is above the slow line, and a short while below. It exits on opposite crosses in extreme zones or on regular divergence in the oscillator.
Best run of 6. USD/JPY, 4 hours, spread 1, from run sweeps:2026-10-11-USDJPY-4h-opt.tsv:26.
| Period | Up to 2026-10-11 |
| Instrument | USD/JPY, 4 hours |
| 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| USD/JPYBest run | 4 hours | n/a | 6,849 | 37.01 | 1,170,630 USD | -333,500 |
| USD/JPY | Daily | n/a | 2,725 | 36.70 | 1,095,220 USD | -719,700 |
| DAX 40 | 4 hours | n/a | 5,863 | 36.38 | 17,060 EUR | -11,468 |
| GBP/USD | Daily | n/a | 2,775 | 37.69 | 14,781 USD | -6,828 |
| Brent Crude | 4 hours | n/a | 3,368 | 36.25 | 11,214 EUR | -6,428 |
| Gold | 4 hours | n/a | 6,138 | 34.47 | 3,183 EUR | -1,513 |
Charts
The code
// ============================================================== // WaveTrend Divergence Crossover // ProRealAlgos Strategy Library | prorealalgos.com // Type: Momentum // Direction: Long & short // Timeframe tested: 4 hours // ============================================================== DEFPARAM CumulateOrders = false ONCE ci = 0 ONCE topaset = 0 ONCE topaval = 0 ONCE topapr = 0 ONCE topbset = 0 ONCE topbval = 0 ONCE topbpr = 0 ONCE botaset = 0 ONCE botaval = 0 ONCE botapr = 0 ONCE botbset = 0 ONCE botbval = 0 ONCE botbpr = 0 src = TypicalPrice esa = ExponentialAverage[9](src) de = ExponentialAverage[9](ABS(src - esa))
73 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 6 market and timeframe combinations. The best run by trade count was USD/JPY, 4 hours, with 6,849 trades.
The best run had a maximum drawdown of 333,500 USD at the tested position size, against a net result of 1,170,630 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.